Mercurial > pidgin.yaz
comparison plugins/docklet/docklet.c @ 10268:d082b2a71ee7
[gaim-migrate @ 11414]
Added an optional docklet ui op for positioning the GtkMenu that we pop up
on right-click. I haven't touched the Windows part of this, but the Linux
part aligns it appropriately with the icon so that it drops down in a
cleaner way, much like nearly every other polished applet.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Fri, 26 Nov 2004 05:21:58 +0000 |
parents | 23e101b522f1 |
children | bf1ebc8f3bf3 |
comparison
equal
deleted
inserted
replaced
10267:9cafe038c95e | 10268:d082b2a71ee7 |
---|---|
229 | 229 |
230 #ifdef _WIN32 | 230 #ifdef _WIN32 |
231 g_signal_connect(menu, "leave-notify-event", G_CALLBACK(docklet_menu_leave), NULL); | 231 g_signal_connect(menu, "leave-notify-event", G_CALLBACK(docklet_menu_leave), NULL); |
232 #endif | 232 #endif |
233 gtk_widget_show_all(menu); | 233 gtk_widget_show_all(menu); |
234 gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, 0, gtk_get_current_event_time()); | 234 gtk_menu_popup(GTK_MENU(menu), NULL, NULL, |
235 ui_ops->position_menu, | |
236 NULL, 0, gtk_get_current_event_time()); | |
235 } | 237 } |
236 | 238 |
237 static gboolean | 239 static gboolean |
238 docklet_blink_icon() | 240 docklet_blink_icon() |
239 { | 241 { |