[gnome-clocks/bilelmoussaoui/window/help-overlay] Window: set the help overlay manually
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks/bilelmoussaoui/window/help-overlay] Window: set the help overlay manually
- Date: Mon, 3 Feb 2020 12:24:55 +0000 (UTC)
commit aba5af4c8d66b489d7bf2ef9e7b13cf0f5ddf612
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date: Mon Feb 3 12:24:34 2020 +0000
Window: set the help overlay manually
It seems somehow, set_resource_base_path doesn't fix the show help overlay
in the development version. By setting this manually we can ensure it always works.
src/window.vala | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/src/window.vala b/src/window.vala
index 03b5649..029587c 100644
--- a/src/window.vala
+++ b/src/window.vala
@@ -109,6 +109,11 @@ public class Window : Gtk.ApplicationWindow {
timer.notify["state"].connect ((w) => {
stack.child_set_property (timer, "needs-attention", timer.state == Timer.Face.State.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 ());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]