summaryrefslogtreecommitdiff
path: root/libslab/app-shell.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-04-26 17:09:18 +0200
committerStefano Karapetsas <[email protected]>2014-04-26 17:09:18 +0200
commitb4ff6c7fafc624f1db379675f36889ac70edef8e (patch)
treeac75013f77e5af5abd3ee211a519b0423b5ddfe4 /libslab/app-shell.c
parentfa57a223d377109563f067c708847c26428a7aae (diff)
downloadmate-control-center-b4ff6c7fafc624f1db379675f36889ac70edef8e.tar.bz2
mate-control-center-b4ff6c7fafc624f1db379675f36889ac70edef8e.tar.xz
libslab: GTK3 fixes
Diffstat (limited to 'libslab/app-shell.c')
-rw-r--r--libslab/app-shell.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libslab/app-shell.c b/libslab/app-shell.c
index 7c4f8f13..e5844be3 100644
--- a/libslab/app-shell.c
+++ b/libslab/app-shell.c
@@ -132,7 +132,9 @@ create_main_window (AppShellData * app_data, const gchar * app_name, const gchar
app_data->main_app = main_app;
gtk_widget_set_name (main_app, app_name);
gtk_window_set_title (GTK_WINDOW (main_app), title);
- /* gtk_window_set_default_size(GTK_WINDOW(main_app), width, height); */
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gtk_window_set_default_size(GTK_WINDOW(main_app), width, height);
+#endif
gtk_window_set_icon_name (GTK_WINDOW (main_app), window_icon);
gtk_container_add (GTK_CONTAINER (main_app), app_data->shell);