im.pidgin.charkins.dockletgeom: 17626bcf11654137e855476a7318abfa3687aa8c
charkins at pidgin.im
charkins at pidgin.im
Fri Oct 12 11:25:48 EDT 2007
-----------------------------------------------------------------
Revision: 17626bcf11654137e855476a7318abfa3687aa8c
Ancestor: 03054fd9afde1bcdafb721ed7712638568c3a3e1
Author: charkins at pidgin.im
Date: 2007-10-12T15:16:48
Branch: im.pidgin.charkins.dockletgeom
Modified files:
pidgin/gtkdocklet.c
ChangeLog:
This is probably a little more readable.
-------------- next part --------------
============================================================
--- pidgin/gtkdocklet.c f94b4f2e5579b5ee87895d4c7d5542e99ff28dae
+++ pidgin/gtkdocklet.c 1eef515ddf47568d5b8b7394dd666aefb73fd0a0
@@ -712,16 +712,14 @@ pidgin_docklet_get_geometry(gint *x, gin
gboolean
pidgin_docklet_get_geometry(gint *x, gint *y, gint *w, gint *h)
{
- if(!visible) return FALSE;
- if(ui_ops && ui_ops->get_geometry) return ui_ops->get_geometry(x, y, w, h);
+ if(visible && 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) return NULL;
- if(ui_ops && ui_ops->get_gdk_screen) return ui_ops->get_gdk_screen();
+ if(visible && ui_ops && ui_ops->get_gdk_screen) return ui_ops->get_gdk_screen();
return NULL;
}
More information about the Commits
mailing list