[gnome-software] trivial: Simple code simplification



commit 3f3a62b7077f6e6dea9cd9839a98ede347519b57
Author: Richard Hughes <richard hughsie com>
Date:   Tue Nov 19 15:42:56 2013 +0000

    trivial: Simple code simplification

 src/gs-utils.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)
---
diff --git a/src/gs-utils.c b/src/gs-utils.c
index 4b1af7e..aba511f 100644
--- a/src/gs-utils.c
+++ b/src/gs-utils.c
@@ -144,17 +144,6 @@ gs_app_notify_installed (GsApp *app)
 }
 
 /**
- * gs_app_notify_failed_modal_response_cb:
- **/
-static void
-gs_app_notify_failed_modal_response_cb (GtkDialog *dialog,
-                                       gint response_id,
-                                       gpointer user_data)
-{
-       gtk_widget_destroy (GTK_WIDGET (dialog));
-}
-
-/**
  * gs_app_notify_failed_modal:
  **/
 void
@@ -194,7 +183,7 @@ gs_app_notify_failed_modal (GtkBuilder *builder,
        gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
                                                  "%s", msg);
        g_signal_connect (dialog, "response",
-                         G_CALLBACK (gs_app_notify_failed_modal_response_cb), NULL);
+                         G_CALLBACK (gtk_widget_destroy), NULL);
        gtk_window_present (GTK_WINDOW (dialog));
 }
 


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