[gnome-games/wip/exalm/gtk4: 20/29] application: Stop using gtk_widget_hide_on_delete()



commit 3d7e6818bafee48befed843618ee5609f5f3d29a
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Sun Jul 29 13:36:35 2018 +0500

    application: Stop using gtk_widget_hide_on_delete()
    
    Use GtkWindow's hide_on_close property instead.

 src/ui/application.vala | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/src/ui/application.vala b/src/ui/application.vala
index d8e13ad4..24005321 100644
--- a/src/ui/application.vala
+++ b/src/ui/application.vala
@@ -400,10 +400,7 @@ public class Games.Application : Gtk.Application {
                dialog.documenters = Credits.DOCUMENTERS;
                dialog.translator_credits = _("translator-credits");
 
-               dialog.response.connect ((response_id) => {
-                       if (response_id == Gtk.ResponseType.CANCEL || response_id == 
Gtk.ResponseType.DELETE_EVENT)
-                               dialog.hide_on_delete ();
-               });
+               dialog.hide_on_close = true;
 
                dialog.present_with_time (Gtk.get_current_event_time ());
        }


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