Mercurial > pidgin.yaz
changeset 20883:e26c39c96f26
This is probably a little more readable.
author | Casey Harkins <charkins@pidgin.im> |
---|---|
date | Fri, 12 Oct 2007 15:16:48 +0000 |
parents | 38c4fe48ebb5 |
children | 33822d7271e5 cb9edb91a2e5 |
files | pidgin/gtkdocklet.c |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkdocklet.c Fri Oct 12 02:47:48 2007 +0000 +++ b/pidgin/gtkdocklet.c Fri Oct 12 15:16:48 2007 +0000 @@ -712,16 +712,14 @@ 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; }