Re: Gtkmm's StatusIcon



CCing the list, because someone forget to do it before.

>> Hi,
>>
>> For Workrave (www.workrave.org) I've written some Windows specific code
>> to
>> enable tray icons on Windows. However, these days GTK+ also contains out
>> of
>> the box support for tray icons, so I am looking into it what it would
>> take
>> to strike away my own home grown code.
>>
>> So far I was able to successfully display a tray icon. However, the
>> Workrave
>> tray icon also supports a popup-menu and a default action. For that
>> purpose,
>> I would like access to the popup-menu and activate signals.
>
> Do you know of C example code that uses these signals with GtkStatusIcon?
> I would like to implement this functionality in a gtkmm example.
>
>> I was a bit
>> surprised to see that these were not present in Gtkmm. After some
>> searching,
>> I ran into this mail:
>>
>> http://www.mail-archive.com/gtkmm-list gnome org/msg05752.html
>>
>>> _IGNORE_SIGNAL(activate) //Keybinding signal.
>>>
>>> Which indicates that this is a keybinding (or "action") signal that is
>>> not meant to be used by most application developers. It's useful for
>>> widget implementation, particularly for accessibility issues.
>>
>> How can I implement a popup-menu (e.g. right-click tray icon) and
>> default
>> action without these signals?
>
> For now, you can use the C API, with gobj().
>
> For gtkmm 2.12, we need to find out whether these should indeed be
> wrapped. A mail to gtk-list or example code would help with that. In
> general, we try to avoid wrapping signals that appear to be keybinding
> signals:
> http://marc.theaimsgroup.com/?l=gtk-devel&m=114502267513784&w=2


Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




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