Skip to content

Commit 46d02a2

Browse files
committed
Indicator: GTK4 prep
1 parent 6769bd2 commit 46d02a2

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/Indicator.vala

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ public class DateTime.Indicator : Wingpanel.Indicator {
8585
component_listbox.set_sort_func (sort_function);
8686

8787
var scrolled_window = new Gtk.ScrolledWindow (null, null) {
88-
hscrollbar_policy = Gtk.PolicyType.NEVER
88+
hscrollbar_policy = Gtk.PolicyType.NEVER,
89+
child = component_listbox
8990
};
90-
scrolled_window.add (component_listbox);
9191

9292
var settings_button = new Gtk.ModelButton () {
9393
text = _("Date & Time Settings…")
@@ -135,8 +135,7 @@ public class DateTime.Indicator : Wingpanel.Indicator {
135135
"dialog-error"
136136
);
137137
dialog.show_error_details (e.message);
138-
dialog.run ();
139-
dialog.destroy ();
138+
dialog.present ();
140139
}
141140
close ();
142141
}

0 commit comments

Comments
 (0)