From ffd164ccfb657e46e52d2be5940343aa57dbd17f Mon Sep 17 00:00:00 2001 From: Leonhard Kargl Date: Tue, 10 Sep 2024 17:15:18 +0200 Subject: [PATCH] SampleIndicator: GTK4 prep --- sample/SampleIndicator.vala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sample/SampleIndicator.vala b/sample/SampleIndicator.vala index f4dc8152..807ef5b9 100644 --- a/sample/SampleIndicator.vala +++ b/sample/SampleIndicator.vala @@ -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"));