/home/fernape/Projects/lkmonitor/src/eggtrayicon.h

Go to the documentation of this file.
00001 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
00002 /* eggtrayicon.h
00003  * Copyright (C) 2002 Anders Carlsson <andersca@gnu.org>
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Lesser General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Lesser General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Lesser General Public
00016  * License along with this library; if not, write to the
00017  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00018  * Boston, MA 02111-1307, USA.
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 /* __EGG_TRAY_ICON_H__ */

Generated on Tue Apr 1 22:52:51 2008 for lkmonitor by  doxygen 1.5.1