pidgin/gtkdocklet.c

branch
charkins.dockletgeom
changeset 20967
682e3ca82041
parent 20966
d5476c3d62e8
parent 20964
19466559b62c
child 20968
2f6aa52eacdb
--- a/pidgin/gtkdocklet.c	Sun Oct 28 17:07:48 2007 +0000
+++ b/pidgin/gtkdocklet.c	Sun Oct 28 17:08:46 2007 +0000
@@ -712,14 +712,16 @@
 gboolean
 pidgin_docklet_get_geometry(gint *x, gint *y, gint *w, gint *h)
 {
-	if(visible && ui_ops && ui_ops->get_geometry) return ui_ops->get_geometry(x, y, w, h);
+	if(!visible) return FALSE;
+	if(ui_ops && ui_ops->get_geometry) return ui_ops->get_geometry(x, y, w, h);
 	return FALSE;
 }
 
 GObject *
 pidgin_docklet_get_gdk_screen()
 {
-	if(visible && ui_ops && ui_ops->get_gdk_screen) return ui_ops->get_gdk_screen();
+	if(!visible) return NULL;
+	if(ui_ops && ui_ops->get_gdk_screen) return ui_ops->get_gdk_screen();
 	return NULL;
 }
 

mercurial