]>
Commit | Line | Data |
---|---|---|
8d6f95db | 1 | /* |
526954c5 | 2 | Permission to use this file under wxWindows licence granted by |
8d6f95db VZ |
3 | the copyright holder, see eggtrayicon.c for details. |
4 | */ | |
5 | ||
33d4eef0 VS |
6 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ |
7 | /* eggtrayicon.h | |
8 | * Copyright (C) 2002 Anders Carlsson <andersca@gnu.org> | |
9 | * | |
10 | * This library is free software; you can redistribute it and/or | |
11 | * modify it under the terms of the GNU Lesser General Public | |
12 | * License as published by the Free Software Foundation; either | |
13 | * version 2 of the License, or (at your option) any later version. | |
14 | * | |
15 | * This library is distributed in the hope that it will be useful, | |
16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
18 | * Lesser General Public License for more details. | |
19 | * | |
20 | * You should have received a copy of the GNU Lesser General Public | |
21 | * License along with this library; if not, write to the | |
22 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
23 | * Boston, MA 02111-1307, USA. | |
24 | */ | |
25 | ||
26 | #ifndef __EGG_TRAY_ICON_H__ | |
27 | #define __EGG_TRAY_ICON_H__ | |
28 | ||
29 | #include <gtk/gtkplug.h> | |
b055d991 | 30 | #ifdef GDK_WINDOWING_X11 |
33d4eef0 | 31 | #include <gdk/gdkx.h> |
b055d991 | 32 | #endif |
33d4eef0 VS |
33 | |
34 | G_BEGIN_DECLS | |
35 | ||
a8a3ccb8 VZ |
36 | #define EGG_TYPE_TRAY_ICON (egg_tray_icon_get_type ()) |
37 | #define EGG_TRAY_ICON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EGG_TYPE_TRAY_ICON, EggTrayIcon)) | |
38 | #define EGG_TRAY_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EGG_TYPE_TRAY_ICON, EggTrayIconClass)) | |
39 | #define EGG_IS_TRAY_ICON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EGG_TYPE_TRAY_ICON)) | |
40 | #define EGG_IS_TRAY_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EGG_TYPE_TRAY_ICON)) | |
41 | #define EGG_TRAY_ICON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EGG_TYPE_TRAY_ICON, EggTrayIconClass)) | |
42 | ||
43 | typedef struct _EggTrayIcon EggTrayIcon; | |
33d4eef0 VS |
44 | typedef struct _EggTrayIconClass EggTrayIconClass; |
45 | ||
46 | struct _EggTrayIcon | |
47 | { | |
48 | GtkPlug parent_instance; | |
49 | ||
50 | guint stamp; | |
a8a3ccb8 | 51 | |
b055d991 | 52 | #ifdef GDK_WINDOWING_X11 |
33d4eef0 VS |
53 | Atom selection_atom; |
54 | Atom manager_atom; | |
55 | Atom system_tray_opcode_atom; | |
b055d991 | 56 | Atom orientation_atom; |
33d4eef0 | 57 | Window manager_window; |
b055d991 RR |
58 | #endif |
59 | GtkOrientation orientation; | |
33d4eef0 VS |
60 | }; |
61 | ||
62 | struct _EggTrayIconClass | |
63 | { | |
64 | GtkPlugClass parent_class; | |
65 | }; | |
66 | ||
67 | GType egg_tray_icon_get_type (void); | |
68 | ||
69 | EggTrayIcon *egg_tray_icon_new_for_screen (GdkScreen *screen, | |
a8a3ccb8 | 70 | const gchar *name); |
33d4eef0 VS |
71 | |
72 | EggTrayIcon *egg_tray_icon_new (const gchar *name); | |
73 | ||
74 | guint egg_tray_icon_send_message (EggTrayIcon *icon, | |
a8a3ccb8 VZ |
75 | gint timeout, |
76 | const char *message, | |
77 | gint len); | |
33d4eef0 | 78 | void egg_tray_icon_cancel_message (EggTrayIcon *icon, |
a8a3ccb8 | 79 | guint id); |
33d4eef0 | 80 | |
b055d991 | 81 | GtkOrientation egg_tray_icon_get_orientation (EggTrayIcon *icon); |
a8a3ccb8 | 82 | |
33d4eef0 VS |
83 | G_END_DECLS |
84 | ||
85 | #endif /* __EGG_TRAY_ICON_H__ */ |