Skip to content

Commit

Permalink
SampleIndicator: GTK4 prep
Browse files Browse the repository at this point in the history
  • Loading branch information
leolost2605 committed Sep 10, 2024
1 parent 423f84e commit ffd164c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sample/SampleIndicator.vala
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ public class Sample.Indicator : Wingpanel.Indicator {
margin_bottom = 3
};

var hide_button = new Gtk.ModelButton ();
hide_button.text = _("Hide me!");
var hide_button = new Gtk.Button.with_label (_("Hide me!"));
hide_button.get_style_context ().add_class (Gtk.STYLE_CLASS_FLAT);
hide_button.get_style_context ().add_class (Gtk.STYLE_CLASS_MENUITEM);

var compositing_switch = new Granite.SwitchModelButton (_("Composited Icon"));

Expand Down

0 comments on commit ffd164c

Please sign in to comment.