[gnome-photos] dlna_renderers-dialog: Directly connect to gtk_widget_destroy



commit 8bb5080780410d9538c812dad1ff2c8bda91422f
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Jan 31 11:00:37 2014 +0100

    dlna_renderers-dialog: Directly connect to gtk_widget_destroy

 src/photos-dlna-renderers-dialog.c |   11 +----------
 1 files changed, 1 insertions(+), 10 deletions(-)
---
diff --git a/src/photos-dlna-renderers-dialog.c b/src/photos-dlna-renderers-dialog.c
index a60c62b..985f3d8 100644
--- a/src/photos-dlna-renderers-dialog.c
+++ b/src/photos-dlna-renderers-dialog.c
@@ -216,15 +216,6 @@ photos_dlna_renderers_dialog_add_renderer (PhotosDlnaRenderersDialog *self, Phot
 
 
 static void
-photos_dlna_renderers_dialog_response_cb (GtkDialog *dialog,
-                                          gint       response_id,
-                                          gpointer   user_data)
-{
-  gtk_widget_destroy (GTK_WIDGET (dialog));
-}
-
-
-static void
 photos_dlna_renderers_dialog_init (PhotosDlnaRenderersDialog *self)
 {
   PhotosDlnaRenderersDialogPrivate *priv;
@@ -252,7 +243,7 @@ photos_dlna_renderers_dialog_init (PhotosDlnaRenderersDialog *self)
       renderers = g_list_delete_link (renderers, renderers);
     }
 
-  g_signal_connect (self, "response", G_CALLBACK (photos_dlna_renderers_dialog_response_cb), NULL);
+  g_signal_connect (self, "response", G_CALLBACK (gtk_widget_destroy), NULL);
 }
 
 


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