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

#include <gtk/gtkplug.h>
#include <gdk/gdkx.h>

Go to the source code of this file.

Data Structures

struct  _EggTrayIcon
struct  _EggTrayIconClass

Defines

#define EGG_TYPE_TRAY_ICON   (egg_tray_icon_get_type ())
#define EGG_TRAY_ICON(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), EGG_TYPE_TRAY_ICON, EggTrayIcon))
#define EGG_TRAY_ICON_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), EGG_TYPE_TRAY_ICON, EggTrayIconClass))
#define EGG_IS_TRAY_ICON(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EGG_TYPE_TRAY_ICON))
#define EGG_IS_TRAY_ICON_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), EGG_TYPE_TRAY_ICON))
#define EGG_TRAY_ICON_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), EGG_TYPE_TRAY_ICON, EggTrayIconClass))

Typedefs

typedef _EggTrayIcon EggTrayIcon
typedef _EggTrayIconClass EggTrayIconClass

Functions

GType egg_tray_icon_get_type (void)
EggTrayIconegg_tray_icon_new (const gchar *name)
guint egg_tray_icon_send_message (EggTrayIcon *icon, gint timeout, const char *message, gint len)
void egg_tray_icon_cancel_message (EggTrayIcon *icon, guint id)


Define Documentation

#define EGG_IS_TRAY_ICON ( obj   )     (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EGG_TYPE_TRAY_ICON))

Definition at line 32 of file eggtrayicon.h.

Referenced by egg_tray_icon_cancel_message(), and egg_tray_icon_send_message().

#define EGG_IS_TRAY_ICON_CLASS ( klass   )     (G_TYPE_CHECK_CLASS_TYPE ((klass), EGG_TYPE_TRAY_ICON))

Definition at line 33 of file eggtrayicon.h.

#define EGG_TRAY_ICON ( obj   )     (G_TYPE_CHECK_INSTANCE_CAST ((obj), EGG_TYPE_TRAY_ICON, EggTrayIcon))

Definition at line 30 of file eggtrayicon.h.

#define EGG_TRAY_ICON_CLASS ( klass   )     (G_TYPE_CHECK_CLASS_CAST ((klass), EGG_TYPE_TRAY_ICON, EggTrayIconClass))

Definition at line 31 of file eggtrayicon.h.

#define EGG_TRAY_ICON_GET_CLASS ( obj   )     (G_TYPE_INSTANCE_GET_CLASS ((obj), EGG_TYPE_TRAY_ICON, EggTrayIconClass))

Definition at line 34 of file eggtrayicon.h.

#define EGG_TYPE_TRAY_ICON   (egg_tray_icon_get_type ())

Definition at line 29 of file eggtrayicon.h.

Referenced by egg_tray_icon_new_for_xscreen().


Typedef Documentation

typedef struct _EggTrayIcon EggTrayIcon

Definition at line 36 of file eggtrayicon.h.

typedef struct _EggTrayIconClass EggTrayIconClass

Definition at line 37 of file eggtrayicon.h.


Function Documentation

void egg_tray_icon_cancel_message ( EggTrayIcon icon,
guint  id 
)

Definition at line 332 of file eggtrayicon.c.

References EGG_IS_TRAY_ICON, and SYSTEM_TRAY_CANCEL_MESSAGE.

00334 {
00335   g_return_if_fail (EGG_IS_TRAY_ICON (icon));
00336   g_return_if_fail (id > 0);
00337   
00338   egg_tray_icon_send_manager_message (icon, SYSTEM_TRAY_CANCEL_MESSAGE,
00339                                       (Window)gtk_plug_get_id (GTK_PLUG (icon)),
00340                                       id, 0, 0);
00341 }

GType egg_tray_icon_get_type ( void   ) 

Definition at line 37 of file eggtrayicon.c.

00038 {
00039   static GType our_type = 0;
00040 
00041   if (our_type == 0)
00042     {
00043       static const GTypeInfo our_info =
00044       {
00045         sizeof (EggTrayIconClass),
00046         (GBaseInitFunc) NULL,
00047         (GBaseFinalizeFunc) NULL,
00048         (GClassInitFunc) egg_tray_icon_class_init,
00049         NULL, /* class_finalize */
00050         NULL, /* class_data */
00051         sizeof (EggTrayIcon),
00052         0,    /* n_preallocs */
00053         (GInstanceInitFunc) egg_tray_icon_init
00054       };
00055 
00056       our_type = g_type_register_static (GTK_TYPE_PLUG, "EggTrayIcon", &our_info, 0);
00057     }
00058 
00059   return our_type;
00060 }

EggTrayIcon* egg_tray_icon_new ( const gchar *  name  ) 

Definition at line 262 of file eggtrayicon.c.

References egg_tray_icon_new_for_xscreen().

Referenced by lkmonitor_create_tray_icon().

00263 {
00264   return egg_tray_icon_new_for_xscreen (DefaultScreenOfDisplay (gdk_display), name);
00265 }

guint egg_tray_icon_send_message ( EggTrayIcon icon,
gint  timeout,
const char *  message,
gint  len 
)


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