Skip to content

Commit

Permalink
Misc GTK4 prep
Browse files Browse the repository at this point in the history
  • Loading branch information
leolost2605 committed Jul 11, 2024
1 parent 544081a commit c91c649
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions sample/SampleIndicator.vala
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ public class Sample.Indicator : Wingpanel.Indicator {
};

/* Create a new composited icon */
display_widget = new Gtk.Overlay ();
display_widget.add (main_image);
display_widget = new Gtk.Overlay () {
child = main_image
};
display_widget.add_overlay (overlay_image);

var separator = new Gtk.Separator (Gtk.Orientation.HORIZONTAL) {
Expand Down
2 changes: 1 addition & 1 deletion src/Utils.vala
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@

namespace Wingpanel.Utils {
public static bool is_wayland () {
return !(Gdk.Display.get_default () is Gdk.X11.Display);
return Gdk.Display.get_default () is Gdk.Wayland.Display;
}
}
2 changes: 1 addition & 1 deletion src/Widgets/IndicatorPopover.vala
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class Wingpanel.Widgets.IndicatorPopover : Gtk.Popover {
margin_bottom = 3
};

add (container);
child = container;
}

public void set_content (Gtk.Widget? content) {
Expand Down

0 comments on commit c91c649

Please sign in to comment.