comparison pidgin/gtkdocklet.h @ 20888:d3e0eb05ac94

disapproval of revision '03054fd9afde1bcdafb721ed7712638568c3a3e1'
author Casey Harkins <charkins@pidgin.im>
date Sun, 28 Oct 2007 17:08:24 +0000
parents 38c4fe48ebb5
children 584063555949
comparison
equal deleted inserted replaced
20882:38c4fe48ebb5 20888:d3e0eb05ac94
33 void (*destroy)(void); 33 void (*destroy)(void);
34 void (*update_icon)(PurpleStatusPrimitive, gboolean, gboolean); 34 void (*update_icon)(PurpleStatusPrimitive, gboolean, gboolean);
35 void (*blank_icon)(void); 35 void (*blank_icon)(void);
36 void (*set_tooltip)(gchar *); 36 void (*set_tooltip)(gchar *);
37 GtkMenuPositionFunc position_menu; 37 GtkMenuPositionFunc position_menu;
38 gboolean (*get_geometry)(gint *x, gint *y, gint *w, gint *h);
39 GObject *(*get_gdk_screen)(void);
40 }; 38 };
41 39
42 40
43 /* functions in gtkdocklet.c */ 41 /* functions in gtkdocklet.c */
44 void pidgin_docklet_update_icon(void); 42 void pidgin_docklet_update_icon(void);
49 void pidgin_docklet_unload(void); 47 void pidgin_docklet_unload(void);
50 void pidgin_docklet_init(void); 48 void pidgin_docklet_init(void);
51 void pidgin_docklet_uninit(void); 49 void pidgin_docklet_uninit(void);
52 void*pidgin_docklet_get_handle(void); 50 void*pidgin_docklet_get_handle(void);
53 51
54 /**
55 * Get the geometry of the docklet. Any of the parameters may be
56 * NULL if that value is not desired.
57 *
58 * @param x x coordinate of the top left corner of the docklet in screen coordinates
59 * @param y y coordinate of the top left corner of the docklet in screen coordinates
60 * @param w width of the docklet
61 * @param h height of the docklet
62 *
63 * @return TRUE if the geometry was found, otherwise FALSE
64 */
65 gboolean pidgin_docklet_get_geometry(gint *x, gint *y, gint *w, gint *h);
66
67 /**
68 * Get the GdkScreen of the docklet. If the GdkScreen is not available, including
69 * running on versions of Gtk/Gdk where GdkScreen does not exist (<2.2), NULL is
70 * returned.
71 *
72 * @return GdkScreen if available, otherwise NULL
73 */
74 GObject *pidgin_docklet_get_gdk_screen(void);
75
76 /* function in gtkdocklet-{x11,win32}.c */ 52 /* function in gtkdocklet-{x11,win32}.c */
77 void docklet_ui_init(void); 53 void docklet_ui_init(void);
78 54
79 #endif /* _GTKDOCKLET_H_ */ 55 #endif /* _GTKDOCKLET_H_ */