eggtrayicon.h
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/gtk.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 Atom orientation_atom;
00049 Window manager_window;
00050
00051 GtkOrientation orientation;
00052 };
00053
00054 struct _EggTrayIconClass
00055 {
00056 GtkPlugClass parent_class;
00057 };
00058
00059 GType egg_tray_icon_get_type (void);
00060
00061 #if GTK_CHECK_VERSION(2,1,0)
00062 EggTrayIcon *egg_tray_icon_new_for_screen (GdkScreen *screen,
00063 const gchar *name);
00064 #endif
00065
00066 EggTrayIcon *egg_tray_icon_new (const gchar *name);
00067
00068 guint egg_tray_icon_send_message (EggTrayIcon *icon,
00069 gint timeout,
00070 const char *message,
00071 gint len);
00072 void egg_tray_icon_cancel_message (EggTrayIcon *icon,
00073 guint id);
00074
00075 GtkOrientation egg_tray_icon_get_orientation (EggTrayIcon *icon);
00076
00077 G_END_DECLS
00078
00079 #endif