summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-11-19 15:08:23 -0500
committerMatthias Clasen <mclasen@redhat.com>2010-11-19 15:08:23 -0500
commitd7b2e3144d488101c31ec8d6c83f05f7a77a8f46 (patch)
tree02831984d2596d7b77d513c1a6eefd7c4a7bc73e /shell
parent1865429130f02f586543b59bd59f917a8cea8b01 (diff)
shell: start in the right size
When starting up with a single panel, we don't want to show the full-height window initially.
Diffstat (limited to 'shell')
-rw-r--r--shell/control-center.c10
-rw-r--r--shell/gnome-control-center.c2
2 files changed, 9 insertions, 3 deletions
diff --git a/shell/control-center.c b/shell/control-center.c
index c3322c44b..ae9a12b76 100644
--- a/shell/control-center.c
+++ b/shell/control-center.c
@@ -38,6 +38,8 @@ application_command_line_cb (GApplication *application,
char **argv;
int retval = 0;
+ gnome_control_center_show (shell, GTK_APPLICATION (application));
+
argv = g_application_command_line_get_arguments (command_line, &argc);
if (argc == 2)
{
@@ -58,6 +60,9 @@ application_command_line_cb (GApplication *application,
}
}
}
+
+ gnome_control_center_present (shell);
+
g_strfreev (argv);
return retval;
}
@@ -66,8 +71,9 @@ static void
application_startup_cb (GApplication *application,
GnomeControlCenter *shell)
{
- gnome_control_center_show (shell, GTK_APPLICATION (application));
- gnome_control_center_present (shell);
+ /* nothing to do here, we don't want to show a window before
+ * we've looked at the commandline
+ */
}
int
diff --git a/shell/gnome-control-center.c b/shell/gnome-control-center.c
index 4ea6a788f..0f79f5230 100644
--- a/shell/gnome-control-center.c
+++ b/shell/gnome-control-center.c
@@ -1007,5 +1007,5 @@ gnome_control_center_show (GnomeControlCenter *center,
GtkApplication *app)
{
gtk_window_set_application (GTK_WINDOW (center->priv->window), app);
- gtk_widget_show_all (center->priv->window);
+ gtk_widget_show_all (gtk_bin_get_child (GTK_BIN (center->priv->window)));
}