summaryrefslogtreecommitdiff
path: root/thunar
diff options
context:
space:
mode:
authorAndre Miranda <andreldm@xfce.org>2020-04-02 22:08:11 -0300
committerAndre Miranda <andreldm@xfce.org>2020-04-02 22:08:11 -0300
commit2d1bbe5737677a268c4badb8955d20e0639f7d23 (patch)
tree649975a2fe4b6596f7ee0f74cd047e6eae9925da /thunar
parent48e6157775b83c621e894f1a77b15db468779341 (diff)
downloadthunar-2d1bbe5737677a268c4badb8955d20e0639f7d23.tar.gz
Support libxfce4ui XfceTitledDialog new API (Bug #16616)
Diffstat (limited to 'thunar')
-rw-r--r--thunar/thunar-preferences-dialog.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/thunar/thunar-preferences-dialog.c b/thunar/thunar-preferences-dialog.c
index f32a322f..1d2e48f5 100644
--- a/thunar/thunar-preferences-dialog.c
+++ b/thunar/thunar-preferences-dialog.c
@@ -249,18 +249,30 @@ thunar_preferences_dialog_init (ThunarPreferencesDialog *dialog)
gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE);
gtk_window_set_title (GTK_WINDOW (dialog), _("File Manager Preferences"));
+#if LIBXFCE4UI_CHECK_VERSION (4, 15, 1)
+ xfce_titled_dialog_create_action_area (XFCE_TITLED_DIALOG (dialog));
+#endif
+
/* add the "Close" button */
button = gtk_button_new_with_mnemonic (_("_Close"));
image = gtk_image_new_from_icon_name ("window-close", GTK_ICON_SIZE_BUTTON);
gtk_button_set_image (GTK_BUTTON (button), image);
+#if LIBXFCE4UI_CHECK_VERSION (4, 15, 1)
+ xfce_titled_dialog_add_action_widget (XFCE_TITLED_DIALOG (dialog), button, GTK_RESPONSE_CLOSE);
+#else
gtk_dialog_add_action_widget (GTK_DIALOG (dialog), button, GTK_RESPONSE_CLOSE);
+#endif
gtk_widget_show (button);
/* add the "Help" button */
button = gtk_button_new_with_mnemonic (_("_Help"));
image = gtk_image_new_from_icon_name ("help-browser", GTK_ICON_SIZE_BUTTON);
gtk_button_set_image (GTK_BUTTON (button), image);
+#if LIBXFCE4UI_CHECK_VERSION (4, 15, 1)
+ xfce_titled_dialog_add_action_widget (XFCE_TITLED_DIALOG (dialog), button, GTK_RESPONSE_HELP);
+#else
gtk_dialog_add_action_widget (GTK_DIALOG (dialog), button, GTK_RESPONSE_HELP);
+#endif
gtk_widget_show (button);
notebook = gtk_notebook_new ();