WIP
This commit is contained in:
parent
dd6425e898
commit
0bf607cd2d
48 changed files with 319 additions and 325 deletions
|
@ -101,7 +101,7 @@ pub trait Item: View {
|
|||
fn tab_description<'a>(&'a self, _: usize, _: &'a AppContext) -> Option<Cow<str>> {
|
||||
None
|
||||
}
|
||||
fn tab_content<V: View>(
|
||||
fn tab_content<V: 'static>(
|
||||
&self,
|
||||
detail: Option<usize>,
|
||||
style: &theme::Tab,
|
||||
|
@ -943,7 +943,7 @@ pub mod test {
|
|||
})
|
||||
}
|
||||
|
||||
fn tab_content<V: View>(
|
||||
fn tab_content<V: 'static>(
|
||||
&self,
|
||||
detail: Option<usize>,
|
||||
_: &theme::Tab,
|
||||
|
|
|
@ -1864,12 +1864,12 @@ impl NavHistoryState {
|
|||
}
|
||||
}
|
||||
|
||||
pub struct PaneBackdrop<V: View> {
|
||||
pub struct PaneBackdrop<V> {
|
||||
child_view: usize,
|
||||
child: AnyElement<V>,
|
||||
}
|
||||
|
||||
impl<V: View> PaneBackdrop<V> {
|
||||
impl<V> PaneBackdrop<V> {
|
||||
pub fn new(pane_item_view: usize, child: AnyElement<V>) -> Self {
|
||||
PaneBackdrop {
|
||||
child,
|
||||
|
@ -1878,7 +1878,7 @@ impl<V: View> PaneBackdrop<V> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<V: View> Element<V> for PaneBackdrop<V> {
|
||||
impl<V: 'static> Element<V> for PaneBackdrop<V> {
|
||||
type LayoutState = ();
|
||||
|
||||
type PaintState = ();
|
||||
|
|
|
@ -7,7 +7,7 @@ use gpui::{
|
|||
geometry::{rect::RectF, vector::Vector2F},
|
||||
platform::MouseButton,
|
||||
scene::MouseUp,
|
||||
AppContext, Element, EventContext, MouseState, Quad, View, ViewContext, WeakViewHandle,
|
||||
AppContext, Element, EventContext, MouseState, Quad, ViewContext, WeakViewHandle,
|
||||
};
|
||||
use project::ProjectEntryId;
|
||||
|
||||
|
@ -107,7 +107,7 @@ where
|
|||
handler
|
||||
}
|
||||
|
||||
pub fn handle_dropped_item<V: View>(
|
||||
pub fn handle_dropped_item<V: 'static>(
|
||||
event: MouseUp,
|
||||
workspace: WeakViewHandle<Workspace>,
|
||||
pane: &WeakViewHandle<Pane>,
|
||||
|
|
|
@ -104,7 +104,7 @@ impl Item for SharedScreen {
|
|||
}
|
||||
}
|
||||
|
||||
fn tab_content<V: View>(
|
||||
fn tab_content<V: 'static>(
|
||||
&self,
|
||||
_: Option<usize>,
|
||||
style: &theme::Tab,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue