Skip to content

Commit

Permalink
Don't cache menubutton
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit committed Jun 6, 2024
1 parent dd2faec commit f34fa31
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Widgets/EntryPopover/Generic.vala
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ public abstract class Tasks.Widgets.EntryPopover.Generic<T> : Gtk.EventBox {
public string placeholder { get; construct; }
public T value { get; set; }

private Gtk.MenuButton popover_button;
private T value_on_popover_show;

private Gtk.EventControllerMotion motion_controller;
Expand All @@ -29,7 +28,7 @@ public abstract class Tasks.Widgets.EntryPopover.Generic<T> : Gtk.EventBox {
}

construct {
popover = new Gtk.Popover (popover_button);
popover = new Gtk.Popover (null);

var label = new Gtk.Label (placeholder);

Expand All @@ -39,7 +38,7 @@ public abstract class Tasks.Widgets.EntryPopover.Generic<T> : Gtk.EventBox {
}
popover_button_box.add (label);

popover_button = new Gtk.MenuButton () {
var popover_button = new Gtk.MenuButton () {
child = popover_button_box,
popover = popover,
always_show_image = icon_name != null
Expand Down

0 comments on commit f34fa31

Please sign in to comment.