Commit 0b790587 authored by Andrei Lișiță's avatar Andrei Lișiță 🎮
Browse files

window: Call set_help_overlay() before pane_changed() to avoid a null warning

parent 842c4985
......@@ -68,6 +68,11 @@ public class Window : Hdy.ApplicationWindow {
settings = new Settings ("org.gnome.clocks.state.window");
settings.delay ();
// We need to set this manually, otherwise it fails in the devel version
var builder = new Gtk.Builder.from_resource ("/org/gnome/clocks/gtk/help-overlay.ui");
var dialog = (Gtk.ShortcutsWindow)builder.get_object ("help_overlay");
set_help_overlay (dialog);
// GSettings gives us the nick, which matches the stack page name
stack.visible_child_name = settings.get_string ("panel-id");
......@@ -114,11 +119,6 @@ public class Window : Hdy.ApplicationWindow {
stack.child_set_property (timer, "needs-attention", timer.is_running);
});
// We need to set this manually, otherwise it fails in the devel version
var builder = new Gtk.Builder.from_resource ("/org/gnome/clocks/gtk/help-overlay.ui");
var dialog = (Gtk.ShortcutsWindow)builder.get_object ("help_overlay");
set_help_overlay (dialog);
unowned Gtk.BindingSet binding_set = Gtk.BindingSet.by_class (get_class ());
// plain ctrl+page_up/down is easten by the scrolled window...
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment