diff options
author | Stefano Karapetsas <[email protected]> | 2013-11-15 00:36:25 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-11-15 00:36:25 +0100 |
commit | 18f1c77e939af90f5d882a4b3704c86942b6e019 (patch) | |
tree | 507ebc88c95ea3cf572f6b70d3e0aeb69a73f538 | |
parent | 58c59f238b7d4e44371031b2e5c20ed17695da15 (diff) | |
download | mate-panel-18f1c77e939af90f5d882a4b3704c86942b6e019.tar.bz2 mate-panel-18f1c77e939af90f5d882a4b3704c86942b6e019.tar.xz |
Fix not expanded applets list in GTK3 addto dialog
-rw-r--r-- | mate-panel/panel-addto.c | 17 |
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, |