summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mate-panel/panel-addto.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/mate-panel/panel-addto.c b/mate-panel/panel-addto.c
index 77e915e0..1841d1c8 100644
--- a/mate-panel/panel-addto.c
+++ b/mate-panel/panel-addto.c
@@ -1223,7 +1223,9 @@ panel_addto_dialog_new (PanelWidget *panel_widget)
{
PanelAddtoDialog *dialog;
GtkWidget *dialog_vbox;
+#if !GTK_CHECK_VERSION (3, 0, 0)
GtkWidget *vbox;
+#endif
GtkWidget *inner_vbox;
GtkWidget *find_hbox;
GtkWidget *sw;
@@ -1268,19 +1270,30 @@ panel_addto_dialog_new (PanelWidget *panel_widget)
gtk_container_set_border_width (GTK_CONTAINER (dialog->addto_dialog), 5);
dialog_vbox = gtk_dialog_get_content_area (GTK_DIALOG (dialog->addto_dialog));
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gtk_box_set_spacing (GTK_BOX (dialog_vbox), 12);
+ gtk_container_set_border_width (GTK_CONTAINER (dialog_vbox), 5);
+#else
gtk_box_set_spacing (GTK_BOX (dialog_vbox), 2);
+#endif
g_signal_connect (G_OBJECT (dialog->addto_dialog), "response",
G_CALLBACK (panel_addto_dialog_response), dialog);
g_signal_connect (dialog->addto_dialog, "destroy",
G_CALLBACK (panel_addto_dialog_destroy), dialog);
+#if !GTK_CHECK_VERSION (3, 0, 0)
vbox = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
gtk_container_add (GTK_CONTAINER (dialog_vbox), vbox);
+#endif
inner_vbox = gtk_vbox_new (FALSE, 6);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gtk_box_pack_start (GTK_BOX (dialog_vbox), inner_vbox, TRUE, TRUE, 0);
+#else
gtk_box_pack_start (GTK_BOX (vbox), inner_vbox, TRUE, TRUE, 0);
+#endif
find_hbox = gtk_hbox_new (FALSE, 6);
gtk_box_pack_start (GTK_BOX (inner_vbox), find_hbox, FALSE, FALSE, 0);
@@ -1362,7 +1375,11 @@ panel_addto_dialog_new (PanelWidget *panel_widget)
gtk_container_add (GTK_CONTAINER (sw), dialog->tree_view);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gtk_widget_show_all (dialog_vbox);
+#else
gtk_widget_show_all (vbox);
+#endif
panel_toplevel_push_autohide_disabler (dialog->panel_widget->toplevel);
panel_widget_register_open_dialog (panel_widget,