[Xfce4-commits] [xfce/thunar] 01/02: Fixed warning: ‘dialog’ may be used uninitialized in function ‘thunar_window_delete’. - Usage of window instead of dialog itself as parent widget

noreply at xfce.org noreply at xfce.org
Mon Sep 23 23:13:05 CEST 2019


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

a   l   e   x       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/thunar.

commit e8f5eedbe76da706542223e1c07be340fdac1c47
Author: Alexander Schwinn <alexxcons at xfce.org>
Date:   Mon Sep 23 12:48:11 2019 +0200

    Fixed warning: ‘dialog’ may be used uninitialized in function
    ‘thunar_window_delete’.
    - Usage of window instead of dialog itself as parent widget
---
 thunar/thunar-window.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/thunar/thunar-window.c b/thunar/thunar-window.c
index 2b06cf8..72a45c9 100644
--- a/thunar/thunar-window.c
+++ b/thunar/thunar-window.c
@@ -1120,7 +1120,7 @@ static gboolean thunar_window_delete( GtkWidget *widget,
 
   /* ask the user for confirmation */
   dialog = gtk_dialog_new_with_buttons (_("Warning"),
-                                        GTK_WINDOW (dialog),
+                                        GTK_WINDOW (widget),
                                         GTK_DIALOG_MODAL|GTK_DIALOG_DESTROY_WITH_PARENT,
                                         _("_Cancel"), GTK_RESPONSE_CANCEL,
                                         _("Close T_ab"), GTK_RESPONSE_CLOSE,

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


More information about the Xfce4-commits mailing list