From f8a419aab1c7d8de1af846e2455236ac241fd79f Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Tue, 14 Oct 2014 17:17:44 +0200 Subject: [PATCH] Add an opening tab to the main window It displays a message stating there are no configured GitLab instances --- src/gg-window.vala | 5 ++++ src/resources/ui/gg-window.ui | 43 +++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) 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 + + + +