On Wed, 2006-08-30 at 11:05 +0200, Colossus wrote: > Hi, > > I have an icon in the systray with eggstatusicon.c. I connected the > "activated" signal to it and I can receive double click events. > > Is it possible to detect single click also? I know I can do it with > eggtrayicon.c but using it I will miss blinking facility I have with > eggstatusicon.c > > Thanks, > Giuseppe Torelli
Change if (event->button == 1 && event->type == GDK_2BUTTON_PRESS) to if (event->button == 1 && event->type == GDK_BUTTON_PRESS) in egg_status_icon_button_press(). Alternatively use GtkStatusIcon, which is in from 2.10. Ed _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list