# HG changeset patch # User Casey Harkins # Date 1193591293 0 # Node ID cb9edb91a2e52866455ae9a038ecdbcce5aee03d # Parent e26c39c96f266c9f016fe52266c4a5ac0751fe21 disapproval of revision '17626bcf11654137e855476a7318abfa3687aa8c' diff -r e26c39c96f26 -r cb9edb91a2e5 pidgin/gtkdocklet.c --- a/pidgin/gtkdocklet.c Fri Oct 12 15:16:48 2007 +0000 +++ b/pidgin/gtkdocklet.c Sun Oct 28 17:08:13 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; }