diff --git a/src/gg-window.vala b/src/gg-window.vala index 8a6f915..a8db31b 100644 --- a/src/gg-window.vala +++ b/src/gg-window.vala @@ -12,6 +12,9 @@ namespace GnomeGitlab [GtkChild] private Gtk.HeaderBar header_bar; + [GtkChild] + private Gtk.Label no_instance_label; + private GLib.Settings settings; public Window (Application app) @@ -20,6 +23,8 @@ namespace GnomeGitlab add_action_entries (action_entries, this); + no_instance_label.set_markup("%s".printf(_("No instances configured. Go to preferences to set things up!"))); + settings = new Settings ("eu.polonkai.gergely.gnome-gitlab.state.window"); settings.delay (); diff --git a/src/resources/ui/gg-window.ui b/src/resources/ui/gg-window.ui index 807fb34..ee1717d 100644 --- a/src/resources/ui/gg-window.ui +++ b/src/resources/ui/gg-window.ui @@ -8,5 +8,48 @@ + + + + + + + vertical + + + 1 + 1 + system-software-install-symbolic + 6 + + + True + True + + + + + + No instances configured. Go to preferences to set things up! + 0.3 + + + True + True + + + + + no-instances + + + + + 1 + 0 + + + +