summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mate-panel/panel-widget.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/mate-panel/panel-widget.c b/mate-panel/panel-widget.c
index b040fb5a..6a6a3033 100644
--- a/mate-panel/panel-widget.c
+++ b/mate-panel/panel-widget.c
@@ -1938,7 +1938,11 @@ panel_widget_init (PanelWidget *panel)
panel->packed = FALSE;
panel->orient = GTK_ORIENTATION_HORIZONTAL;
+#if GTK_CHECK_VERSION (3, 0, 0)
+ panel->size = 0;
+#else
panel->size = G_MAXINT;
+#endif
panel->applet_list = NULL;
panel->master_widget = NULL;
panel->drop_widget = widget;
@@ -1966,21 +1970,25 @@ panel_widget_new (PanelToplevel *toplevel,
panel = g_object_new (PANEL_TYPE_WIDGET, NULL);
- gtk_widget_set_has_window (GTK_WIDGET (panel), TRUE);
- gtk_widget_set_can_focus (GTK_WIDGET (panel), TRUE);
+ gtk_widget_set_has_window (GTK_WIDGET (panel), TRUE);
+ gtk_widget_set_can_focus (GTK_WIDGET (panel), TRUE);
panel->orient = orient;
panel->sz = sz;
panel->packed = packed;
+#if GTK_CHECK_VERSION (3, 0, 0)
+ panel->size = 0;
+#else
if (packed)
panel->size = 0;
else
panel->size = G_MAXINT;
+#endif
panel->toplevel = toplevel;
panel->drop_widget = GTK_WIDGET (toplevel);
-
+
return GTK_WIDGET (panel);
}