[gedit/dbus2: 7/9] Fix warning for unsupported method



commit 347619f915f978206086228d56342e5d747d0d23
Author: Jesse van den Kieboom <jessevdk gnome org>
Date:   Mon May 3 00:40:47 2010 +0200

    Fix warning for unsupported method

 gedit/gedit-dbus.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gedit/gedit-dbus.c b/gedit/gedit-dbus.c
index 62b1182..a4dc738 100644
--- a/gedit/gedit-dbus.c
+++ b/gedit/gedit-dbus.c
@@ -766,8 +766,10 @@ dbus_command_line_method_call_cb (GDBusConnection       *connection,
 	{
 		dbus_handle_open (user_data, parameters, invocation);
 	}
-
-	g_warning ("Unsupported method called on gedit service: %s", method_name);
+	else
+	{
+		g_warning ("Unsupported method called on gedit service: %s", method_name);
+	}
 }
 
 /* Introspection data for the service we are exporting */



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