[Xfce4-commits] [apps/xfce4-screenshooter] 01/01: Restore libxfce4ui 4.12 compatibility

noreply at xfce.org noreply at xfce.org
Fri Aug 30 03:55:17 CEST 2019


This is an automated email from the git hooks/post-receive script.

a   n   d   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-screenshooter.

commit f2eac1ba774c3be959c2f39eacc35d7a7359aeab
Author: Andre Miranda <andreldm at xfce.org>
Date:   Thu Aug 29 22:54:50 2019 -0300

    Restore libxfce4ui 4.12 compatibility
---
 lib/screenshooter-dialogs.c | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/lib/screenshooter-dialogs.c b/lib/screenshooter-dialogs.c
index 651b397..2c65bf1 100644
--- a/lib/screenshooter-dialogs.c
+++ b/lib/screenshooter-dialogs.c
@@ -657,22 +657,39 @@ GtkWidget *screenshooter_region_dialog_new (ScreenshotData *sd, gboolean plugin)
   /* Create the dialog */
   if (plugin)
     {
+#if LIBXFCE4UI_CHECK_VERSION (4,14,0)
       dlg = xfce_titled_dialog_new_with_mixed_buttons (_("Screenshot"),
         NULL, GTK_DIALOG_DESTROY_WITH_PARENT,
         "help-browser", _("_Help"), GTK_RESPONSE_HELP,
         "window-close", _("_Close"), GTK_RESPONSE_OK,
         NULL);
+#else
+      dlg = xfce_titled_dialog_new_with_buttons (_("Screenshot"),
+        NULL, GTK_DIALOG_DESTROY_WITH_PARENT,
+        "gtk-help", GTK_RESPONSE_HELP,
+        "gtk-close", GTK_RESPONSE_OK,
+        NULL);
+#endif
 
       xfce_titled_dialog_set_subtitle (XFCE_TITLED_DIALOG (dlg), _("Preferences"));
     }
   else
     {
+#if LIBXFCE4UI_CHECK_VERSION (4,14,0)
       dlg = xfce_titled_dialog_new_with_mixed_buttons (_("Screenshot"),
         NULL, GTK_DIALOG_DESTROY_WITH_PARENT,
         "help-browser", _("_Help"), GTK_RESPONSE_HELP,
         "", _("_Cancel"), GTK_RESPONSE_CANCEL,
         "", _("_OK"), GTK_RESPONSE_OK,
         NULL);
+#else
+      dlg = xfce_titled_dialog_new_with_buttons (_("Screenshot"),
+        NULL, GTK_DIALOG_DESTROY_WITH_PARENT,
+        "gtk-help", GTK_RESPONSE_HELP,
+        "gtk-cancel", GTK_RESPONSE_CANCEL,
+        "gtk-ok", GTK_RESPONSE_OK,
+        NULL);
+#endif
 
       xfce_titled_dialog_set_subtitle (XFCE_TITLED_DIALOG (dlg), _("Take a screenshot"));
     }
@@ -884,12 +901,21 @@ GtkWidget *screenshooter_actions_dialog_new (ScreenshotData *sd)
   GtkWidget *preview, *preview_ebox, *preview_box, *preview_label;
   GdkPixbuf *thumbnail;
 
+#if LIBXFCE4UI_CHECK_VERSION (4,14,0)
   dlg = xfce_titled_dialog_new_with_mixed_buttons (_("Screenshot"),
     NULL, GTK_DIALOG_DESTROY_WITH_PARENT,
     "help-browser", _("_Help"), GTK_RESPONSE_HELP,
     "", _("_Cancel"), GTK_RESPONSE_CANCEL,
     "", _("_OK"), GTK_RESPONSE_OK,
     NULL);
+#else
+  dlg = xfce_titled_dialog_new_with_buttons (_("Screenshot"),
+    NULL, GTK_DIALOG_DESTROY_WITH_PARENT,
+    "gtk-help", GTK_RESPONSE_HELP,
+    "gtk-cancel", GTK_RESPONSE_CANCEL,
+    "gtk-ok", GTK_RESPONSE_OK,
+    NULL);
+#endif
 
   xfce_titled_dialog_set_subtitle (XFCE_TITLED_DIALOG (dlg), _("Action"));
   gtk_window_set_position (GTK_WINDOW (dlg), GTK_WIN_POS_CENTER);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list