Mercurial > pidgin.yaz
comparison pidgin/gtkdocklet.h @ 20889:d41c5443f443
merge of 'bb426e3c52ba2442bfbf7ec6159714fca242cb92'
and 'd35dd87d97af4087e74e0a16d574533ab62dad8f'
author | Casey Harkins <charkins@pidgin.im> |
---|---|
date | Sun, 28 Oct 2007 17:08:49 +0000 |
parents | d3e0eb05ac94 |
children | 584063555949 |
comparison
equal
deleted
inserted
replaced
20887:8c5e34b6782d | 20889:d41c5443f443 |
---|---|
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_ */ |