comparison pidgin/gtkdocklet.c @ 20882:38c4fe48ebb5

Add new API to the docklet for retrieving the geometry (x,y,w,h) and the GdkScreen (if available). The win32 implementation of this is really ugly and could use some testing. Refs #521 and #1632.
author Casey Harkins <charkins@pidgin.im>
date Fri, 12 Oct 2007 02:47:48 +0000
parents c7b20abc3885
children e26c39c96f26 d3e0eb05ac94
comparison
equal deleted inserted replaced
20881:c7b20abc3885 20882:38c4fe48ebb5
707 { 707 {
708 static int i; 708 static int i;
709 return &i; 709 return &i;
710 } 710 }
711 711
712 gboolean
713 pidgin_docklet_get_geometry(gint *x, gint *y, gint *w, gint *h)
714 {
715 if(!visible) return FALSE;
716 if(ui_ops && ui_ops->get_geometry) return ui_ops->get_geometry(x, y, w, h);
717 return FALSE;
718 }
719
720 GObject *
721 pidgin_docklet_get_gdk_screen()
722 {
723 if(!visible) return NULL;
724 if(ui_ops && ui_ops->get_gdk_screen) return ui_ops->get_gdk_screen();
725 return NULL;
726 }
727
712 void 728 void
713 pidgin_docklet_init() 729 pidgin_docklet_init()
714 { 730 {
715 void *conn_handle = purple_connections_get_handle(); 731 void *conn_handle = purple_connections_get_handle();
716 void *conv_handle = purple_conversations_get_handle(); 732 void *conv_handle = purple_conversations_get_handle();