changeset 20750:0ee0cad488b4

merge of '40d389dd2daa85ead2860fa3617e9fc354476bf8' and 'ef27aa2268c20c7b9bc1cde4850481b6442ac22d'
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Tue, 02 Oct 2007 03:46:43 +0000
parents 9071ddcd48df (current diff) 2e711c2d080e (diff)
children fe77cc691f78
files
diffstat 2 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/purple-remote	Tue Oct 02 03:44:49 2007 +0000
+++ b/libpurple/purple-remote	Tue Oct 02 03:46:43 2007 +0000
@@ -9,7 +9,12 @@
 
 xml.dom.minidom.Element.all   = xml.dom.minidom.Element.getElementsByTagName
 
-obj = dbus.SessionBus().get_object("im.pidgin.purple.PurpleService", "/im/pidgin/purple/PurpleObject")
+obj = None
+try:
+    obj = dbus.SessionBus().get_object("im.pidgin.purple.PurpleService", "/im/pidgin/purple/PurpleObject")
+except:
+    pass
+
 purple = dbus.Interface(obj, "im.pidgin.purple.PurpleInterface")
 
 class CheckedObject:
@@ -212,7 +217,10 @@
 
 if len(sys.argv) == 1:
     show_help()
-
+elif (obj == None):
+    print "No existing libpurple instance detected."
+    sys.exit(1);
+    
 for arg in sys.argv[1:]:
     output = execute(arg)
 
--- a/pidgin/plugins/gestures/stroke-draw.c	Tue Oct 02 03:44:49 2007 +0000
+++ b/pidgin/plugins/gestures/stroke-draw.c	Tue Oct 02 03:46:43 2007 +0000
@@ -11,6 +11,7 @@
 #include <stdio.h>
 #include <glib.h>
 #include <gtk/gtk.h>
+#include <gdk/gdkx.h>
 
 #include "gstroke.h"
 #include "gstroke-internal.h"