Re: Single click with eggstatusicon.c: possible?



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




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]