Skip to content

Commit

Permalink
fix(panel_item): fix set_toplevel_size signal
Browse files Browse the repository at this point in the history
  • Loading branch information
technobaboo committed Feb 10, 2024
1 parent c458624 commit a2b061e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/nodes/items/panel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,7 @@ impl<B: Backend + ?Sized> PanelItem<B> {
node.add_local_signal("apply_surface_material", Self::apply_surface_material_flex);
node.add_local_signal("close_toplevel", Self::close_toplevel_flex);
node.add_local_signal("auto_size_toplevel", Self::auto_size_toplevel_flex);
node.add_local_signal(
"set_toplevel_size_changed",
Self::set_toplevel_size_changed_flex,
);
node.add_local_signal("set_toplevel_size", Self::set_toplevel_size_flex);

node.add_local_signal("pointer_motion", Self::pointer_motion_flex);
node.add_local_signal("pointer_button", Self::pointer_button_flex);
Expand Down Expand Up @@ -412,7 +409,7 @@ impl<B: Backend + ?Sized> PanelItem<B> {

flex_no_args!(close_toplevel_flex, close_toplevel);
flex_no_args!(auto_size_toplevel_flex, auto_size_toplevel);
flex_deserialize!(set_toplevel_size_changed_flex, set_toplevel_size);
flex_deserialize!(set_toplevel_size_flex, set_toplevel_size);

fn pointer_motion_flex(
node: Arc<Node>,
Expand Down

0 comments on commit a2b061e

Please sign in to comment.