00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __EGG_TRAY_ICON_H__
00022 #define __EGG_TRAY_ICON_H__
00023
00024 #include <gtk/gtkplug.h>
00025 #include <gdk/gdkx.h>
00026
00027 G_BEGIN_DECLS
00028
00029 #define EGG_TYPE_TRAY_ICON (egg_tray_icon_get_type ())
00030 #define EGG_TRAY_ICON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EGG_TYPE_TRAY_ICON, EggTrayIcon))
00031 #define EGG_TRAY_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EGG_TYPE_TRAY_ICON, EggTrayIconClass))
00032 #define EGG_IS_TRAY_ICON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EGG_TYPE_TRAY_ICON))
00033 #define EGG_IS_TRAY_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EGG_TYPE_TRAY_ICON))
00034 #define EGG_TRAY_ICON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EGG_TYPE_TRAY_ICON, EggTrayIconClass))
00035
00036 typedef struct _EggTrayIcon EggTrayIcon;
00037 typedef struct _EggTrayIconClass EggTrayIconClass;
00038
00039 struct _EggTrayIcon
00040 {
00041 GtkPlug parent_instance;
00042
00043 guint stamp;
00044
00045 Atom selection_atom;
00046 Atom manager_atom;
00047 Atom system_tray_opcode_atom;
00048 Window manager_window;
00049 };
00050
00051 struct _EggTrayIconClass
00052 {
00053 GtkPlugClass parent_class;
00054 };
00055
00056 GType egg_tray_icon_get_type (void);
00057
00058 #if EGG_TRAY_ENABLE_MULTIHEAD
00059 EggTrayIcon *egg_tray_icon_new_for_screen (GdkScreen *screen,
00060 const gchar *name);
00061 #endif
00062
00063 EggTrayIcon *egg_tray_icon_new (const gchar *name);
00064
00065 guint egg_tray_icon_send_message (EggTrayIcon *icon,
00066 gint timeout,
00067 const char *message,
00068 gint len);
00069 void egg_tray_icon_cancel_message (EggTrayIcon *icon,
00070 guint id);
00071
00072
00073
00074 G_END_DECLS
00075
00076 #endif