[gnome-user-share] extension: Remove unused parameter



commit 7f97a5fb17efd138cc3b2d6babc21ea332af3de6
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Jan 15 17:35:21 2013 +0100

    extension: Remove unused parameter

 src/share-extension.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/share-extension.c b/src/share-extension.c
index f862868..5e1c270 100644
--- a/src/share-extension.c
+++ b/src/share-extension.c
@@ -80,7 +80,7 @@ launch_process (char **argv, GtkWindow *parent)
 }
 
 static void
-launch_prefs_on_window (GtkWindow *window)
+launch_prefs_on_window (void)
 {
 	GDesktopAppInfo *app_info;
 	GError *error = NULL;
@@ -112,9 +112,8 @@ bar_response_cb (NautilusShareBar *bar,
                  gint response,
                  gpointer         data)
 {
-        if (response == NAUTILUS_SHARE_BAR_RESPONSE_PREFERENCES) {
-                launch_prefs_on_window (GTK_WINDOW (data));
-        }
+        if (response == NAUTILUS_SHARE_BAR_RESPONSE_PREFERENCES)
+                launch_prefs_on_window ();
 }
 
 static void



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