[Xfce4-commits] [xfce/libxfce4ui] 01/01: Fix condition in confirm dialog

noreply at xfce.org noreply at xfce.org
Fri Jun 30 03:48:00 CEST 2017


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

e   r   i   c       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 xfce/libxfce4ui.

commit e3c255de0b38be5eb92cfaf3ef7243b2c4817dc6
Author: Viktor Odintsev <zakhams at gmail.com>
Date:   Thu Jun 29 12:37:51 2017 +0300

    Fix condition in confirm dialog
    
    This patch also adds default "Yes" label for yes/no dialogs
    when "gtk-yes" stock_id passed.
    
    Signed-off-by: Eric Koegel <eric.koegel at gmail.com>
---
 libxfce4ui/xfce-dialogs.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libxfce4ui/xfce-dialogs.c b/libxfce4ui/xfce-dialogs.c
index 07ff515..60a2340 100644
--- a/libxfce4ui/xfce-dialogs.c
+++ b/libxfce4ui/xfce-dialogs.c
@@ -486,10 +486,12 @@ xfce_dialog_confirm (GtkWindow   *parent,
   va_end (args);
 
   /* whether this will be a yes/no dialog */
-  if (stock_id != NULL && (strcmp (stock_id, "gtk-yes") == 0 || strcmp (stock_id, "yes")) == 0)
+  if (stock_id != NULL && (strcmp (stock_id, "gtk-yes") == 0 || strcmp (stock_id, "yes") == 0))
     {
 #if GTK_CHECK_VERSION (3, 10, 0)
       no_stock_id = _("No");
+      if (confirm_label == NULL)
+        confirm_label = _("Yes");
 #else
       no_stock_id = GTK_STOCK_NO;
 #endif

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


More information about the Xfce4-commits mailing list