[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtk-app-devel
Subject:    Re: Single click with eggstatusicon.c: possible?
From:       Edward Catmur <ed () catmur ! co ! uk>
Date:       2006-08-30 11:24:21
Message-ID: 1156937061.12198.7.camel () capella ! catmur ! co ! uk
[Download RAW message or body]

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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic