ekiga r6382 - trunk/src/components



Author: jpuydt
Date: Mon Jun  9 13:03:00 2008
New Revision: 6382
URL: http://svn.gnome.org/viewvc/ekiga?rev=6382&view=rev

Log:
Fix error messages, and made it possible to use ekiga without DBUS (!)


Modified:
   trunk/src/components/dbus.cpp

Modified: trunk/src/components/dbus.cpp
==============================================================================
--- trunk/src/components/dbus.cpp	(original)
+++ trunk/src/components/dbus.cpp	Mon Jun  9 13:03:00 2008
@@ -206,7 +206,7 @@
   if (!bus) {
     PTRACE (1, "Couldn't connect to session bus : " << error->message);
     g_error_free (error);
-    return FALSE;
+    return TRUE; // if we return FALSE here, ekiga won't even start without DBUS
   }
 
   bus_proxy = dbus_g_proxy_new_for_name (bus, "org.freedesktop.DBus",
@@ -285,7 +285,7 @@
 {
   DBusGProxy *proxy = get_ekiga_client_proxy ();
 
-  g_return_if_fail (proxy);
+  g_return_if_fail (DBUS_IS_G_PROXY (proxy));
 
   dbus_g_proxy_call_no_reply (proxy, "Call", G_TYPE_STRING, uri, G_TYPE_INVALID);
   g_object_unref (proxy);
@@ -299,7 +299,7 @@
 {
   DBusGProxy *proxy = get_ekiga_client_proxy ();
 
-  g_return_if_fail (proxy);
+  g_return_if_fail (DBUS_IS_G_PROXY (proxy));
 
   dbus_g_proxy_call_no_reply (proxy, "Show", G_TYPE_INVALID);
   g_object_unref (proxy);



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