]> Pileus Git - ~andy/gtk/commit
Include gtkstatusicon.c on all platforms.
authorTor Lillqvist <tml@novell.com>
Thu, 3 Nov 2005 13:17:01 +0000 (13:17 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Thu, 3 Nov 2005 13:17:01 +0000 (13:17 +0000)
commit3d18823ae12fbbae01006c2506bff82066c4b43b
tree5186b504e1907d91c778daf341ea8a69e1ec04da
parent542aedc182abdd4e0d18f649c2dac76109c8f9f7
Include gtkstatusicon.c on all platforms.

2005-11-03  Tor Lillqvist  <tml@novell.com>

* gtk/Makefile.am: Include gtkstatusicon.c on all platforms.

* gtk/gtkstatusicon.c: Implement for Win32. Use code from
gtktrayicon-win32.c as applicable. (gtktrayicon-win32.c is not
necessary and can be removed from CVS. It has never been mentioned
in gtk/Makefile.am.) No tray icon widget, GtkImage or GtkTooltips
are used on Win32. One label widget is used (but never shown) as
gtk_widget_render_icon() needs a widget.

Ifdefs used as necessary in several places. It might be cleaner to
split out the backend-specific parts to separate files, or at
least collect them into separate blocks in the file.

(wndproc): New function. Window procedure to monitor mouse events
in the system tray icon. Call gtk_status_icon_button_press() as
needed.
(create_tray_observer): New function. Creates a hidden window that
only serves as a tray icon message observer.
ChangeLog
ChangeLog.pre-2-10
gtk/Makefile.am
gtk/gtkstatusicon.c