diff options
author | raveit65 <[email protected]> | 2016-07-05 21:29:18 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2016-07-06 17:47:43 +0200 |
commit | 2a7321bebb76d5f0010f3111a2842e1f909d7ca4 (patch) | |
tree | 2a0f959eb3b82306379bbc03da607e665461397f /libcaja-private | |
parent | d03daa940e87400b53bee9c065bac9dd0b1bbf41 (diff) | |
download | caja-2a7321bebb76d5f0010f3111a2842e1f909d7ca4.tar.bz2 caja-2a7321bebb76d5f0010f3111a2842e1f909d7ca4.tar.xz |
GTK+-3 open-with-dialog: use widget properties instead of GtkAlignment
Diffstat (limited to 'libcaja-private')
-rw-r--r-- | libcaja-private/caja-open-with-dialog.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libcaja-private/caja-open-with-dialog.c b/libcaja-private/caja-open-with-dialog.c index 43b58ee2..b9967f6f 100644 --- a/libcaja-private/caja-open-with-dialog.c +++ b/libcaja-private/caja-open-with-dialog.c @@ -836,7 +836,9 @@ caja_open_with_dialog_init (CajaOpenWithDialog *dialog) GtkWidget *vbox; GtkWidget *vbox2; GtkWidget *label; +#if !GTK_CHECK_VERSION (3, 0, 0) GtkWidget *align; +#endif GtkWidget *scrolled_window; GtkWidget *expander; GtkTreeSelection *selection; @@ -972,15 +974,21 @@ caja_open_with_dialog_init (CajaOpenWithDialog *dialog) gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); +#if !GTK_CHECK_VERSION (3, 0, 0) align = gtk_alignment_new (0.5, 0.5, 0.0, 0.0); gtk_widget_show (align); +#endif gtk_widget_show (dialog->details->button); gtk_widget_set_can_default (dialog->details->button, TRUE); +#if GTK_CHECK_VERSION (3, 0, 0) + gtk_container_add (GTK_CONTAINER (dialog->details->button), hbox); +#else gtk_container_add (GTK_CONTAINER (align), hbox); gtk_container_add (GTK_CONTAINER (dialog->details->button), align); +#endif gtk_dialog_add_action_widget (GTK_DIALOG (dialog), dialog->details->button, RESPONSE_OPEN); |