Mercurial > pidgin.yaz
comparison pidgin/gtkdocklet.c @ 20886:cb9edb91a2e5
disapproval of revision '17626bcf11654137e855476a7318abfa3687aa8c'
author | Casey Harkins <charkins@pidgin.im> |
---|---|
date | Sun, 28 Oct 2007 17:08:13 +0000 |
parents | e26c39c96f26 |
children | 8c5e34b6782d |
comparison
equal
deleted
inserted
replaced
20883:e26c39c96f26 | 20886:cb9edb91a2e5 |
---|---|
710 } | 710 } |
711 | 711 |
712 gboolean | 712 gboolean |
713 pidgin_docklet_get_geometry(gint *x, gint *y, gint *w, gint *h) | 713 pidgin_docklet_get_geometry(gint *x, gint *y, gint *w, gint *h) |
714 { | 714 { |
715 if(visible && ui_ops && ui_ops->get_geometry) return ui_ops->get_geometry(x, y, w, h); | 715 if(!visible) return FALSE; |
716 if(ui_ops && ui_ops->get_geometry) return ui_ops->get_geometry(x, y, w, h); | |
716 return FALSE; | 717 return FALSE; |
717 } | 718 } |
718 | 719 |
719 GObject * | 720 GObject * |
720 pidgin_docklet_get_gdk_screen() | 721 pidgin_docklet_get_gdk_screen() |
721 { | 722 { |
722 if(visible && ui_ops && ui_ops->get_gdk_screen) return ui_ops->get_gdk_screen(); | 723 if(!visible) return NULL; |
724 if(ui_ops && ui_ops->get_gdk_screen) return ui_ops->get_gdk_screen(); | |
723 return NULL; | 725 return NULL; |
724 } | 726 } |
725 | 727 |
726 void | 728 void |
727 pidgin_docklet_init() | 729 pidgin_docklet_init() |