first try to journal_store_get_latest_id() for sqlite
[k8lowj.git] / src / eggtrayicon.h
blob7879ea49c207b2a548c7396fc0fca352362da3ea
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /* eggtrayicon.h
3 * Copyright (C) 2002 Anders Carlsson <andersca@gnu.org>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
20 #ifndef __EGG_TRAY_ICON_H__
21 #define __EGG_TRAY_ICON_H__
23 #include <gtk/gtkplug.h>
24 #include <gdk/gdkx.h>
26 G_BEGIN_DECLS
27 #define EGG_TYPE_TRAY_ICON (egg_tray_icon_get_type ())
28 #define EGG_TRAY_ICON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EGG_TYPE_TRAY_ICON, EggTrayIcon))
29 #define EGG_TRAY_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EGG_TYPE_TRAY_ICON, EggTrayIconClass))
30 #define EGG_IS_TRAY_ICON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EGG_TYPE_TRAY_ICON))
31 #define EGG_IS_TRAY_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EGG_TYPE_TRAY_ICON))
32 #define EGG_TRAY_ICON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EGG_TYPE_TRAY_ICON, EggTrayIconClass))
34 typedef struct _EggTrayIcon EggTrayIcon;
35 typedef struct _EggTrayIconClass EggTrayIconClass;
38 struct _EggTrayIcon {
39 GtkPlug parent_instance;
40 guint stamp;
41 Atom selection_atom;
42 Atom manager_atom;
43 Atom system_tray_opcode_atom;
44 Window manager_window;
48 struct _EggTrayIconClass {
49 GtkPlugClass parent_class;
53 extern GType egg_tray_icon_get_type (void);
54 #if HAVE_GTK_MULTIHEAD
55 extern EggTrayIcon *egg_tray_icon_new_for_screen (GdkScreen *screen, const gchar *name);
56 #endif
57 extern EggTrayIcon *egg_tray_icon_new (const gchar *name);
58 extern guint egg_tray_icon_send_message (EggTrayIcon *icon, gint timeout, const char *message, gint len);
59 extern void egg_tray_icon_cancel_message (EggTrayIcon *icon, guint id);
62 G_END_DECLS
63 #endif /* __EGG_TRAY_ICON_H__ */