[gnome-bluetooth/wip/hadess/sendto-fixes: 7/7] sendto: Fix warning when closing file chooser




commit c05589f82b6b35f3d0fb4c08315bc319441b49c1
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Feb 23 14:07:48 2022 +0100

    sendto: Fix warning when closing file chooser
    
    Fix a warning when closing the file chooser without selecting a file,
    using keyboard shortcuts.
    
     GLib-GObject-WARNING **: invalid unclassed pointer in cast to 'GtkWindow'

 sendto/main.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/sendto/main.c b/sendto/main.c
index 2f36f592..8dc2b122 100644
--- a/sendto/main.c
+++ b/sendto/main.c
@@ -688,6 +688,7 @@ show_select_dialog(void)
                               "title", _("Choose files to send"),
                               "action", GTK_FILE_CHOOSER_ACTION_OPEN,
                               "use-header-bar", 1,
+                              "hide-on-close", TRUE,
                               NULL);
        gtk_dialog_add_buttons(GTK_DIALOG (dialog),
                               _("_Cancel"), GTK_RESPONSE_CANCEL,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]