[gupnp-tools] Hide DIDL-dialog on delete-event



commit f745d99c8f64fd312857d2df9b0149e94e3a9177
Author: Jussi Kukkonen <jussi kukkonen intel com>
Date:   Wed Jan 15 11:16:57 2014 +0200

    Hide DIDL-dialog on delete-event
    
    Closing the DIDL-Lite dialog with the "x" button used to destroy the
    window, making it unusable from that point on.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=722245

 src/av-cp/playlist-treeview.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/av-cp/playlist-treeview.c b/src/av-cp/playlist-treeview.c
index a63cf15..e425225 100644
--- a/src/av-cp/playlist-treeview.c
+++ b/src/av-cp/playlist-treeview.c
@@ -355,6 +355,9 @@ setup_playlist_treeview (GtkBuilder *builder)
 
         didl_dialog = GTK_WIDGET (gtk_builder_get_object (builder,
                                                           "didl-dialog"));
+        g_signal_connect (didl_dialog, "delete-event",
+                          G_CALLBACK (gtk_widget_hide_on_delete), NULL);
+
         didl_textview = GTK_WIDGET (gtk_builder_get_object (builder,
                                                           "didl-textview"));
 #ifdef HAVE_GTK_SOURCEVIEW


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