diff --git a/thunar/thunar-preferences-dialog.c b/thunar/thunar-preferences-dialog.c index f32a322f7..04f0c1d77 100644 --- a/thunar/thunar-preferences-dialog.c +++ b/thunar/thunar-preferences-dialog.c @@ -250,17 +250,26 @@ thunar_preferences_dialog_init (ThunarPreferencesDialog *dialog) gtk_window_set_title (GTK_WINDOW (dialog), _("File Manager Preferences")); /* add the "Close" button */ +#if LIBXFCE4UI_CHECK_VERSION (4,15,1) + xfce_titled_dialog_create_action_area (XFCE_TITLED_DIALOG (dialog)); + button = xfce_titled_dialog_add_button (XFCE_TITLED_DIALOG (dialog), _("_Close"), GTK_RESPONSE_CLOSE); +#else button = gtk_button_new_with_mnemonic (_("_Close")); + gtk_dialog_add_action_widget (GTK_DIALOG (dialog), button, GTK_RESPONSE_CLOSE); +#endif image = gtk_image_new_from_icon_name ("window-close", GTK_ICON_SIZE_BUTTON); gtk_button_set_image (GTK_BUTTON (button), image); - gtk_dialog_add_action_widget (GTK_DIALOG (dialog), button, GTK_RESPONSE_CLOSE); gtk_widget_show (button); /* add the "Help" button */ +#if LIBXFCE4UI_CHECK_VERSION (4,15,1) + button = xfce_titled_dialog_add_button (XFCE_TITLED_DIALOG (dialog), _("_Help"), GTK_RESPONSE_HELP); +#else button = gtk_button_new_with_mnemonic (_("_Help")); + gtk_dialog_add_action_widget (GTK_DIALOG (dialog), button, GTK_RESPONSE_HELP); +#endif image = gtk_image_new_from_icon_name ("help-browser", GTK_ICON_SIZE_BUTTON); gtk_button_set_image (GTK_BUTTON (button), image); - gtk_dialog_add_action_widget (GTK_DIALOG (dialog), button, GTK_RESPONSE_HELP); gtk_widget_show (button); notebook = gtk_notebook_new ();