diff options
| author | Simeon Simeonov | 2018-02-26 11:23:00 +0100 |
|---|---|---|
| committer | Simeon Simeonov | 2018-02-26 11:23:00 +0100 |
| commit | 0b3cbf57875fd692e4ba0b336fefa4bee1ed00dc (patch) | |
| tree | af916a30553c78ce9d4f2d8658656a175c5b6921 /src/eggtrayicon.h | |
Initial commit for sylpheed 3.7.0
Diffstat (limited to 'src/eggtrayicon.h')
| -rw-r--r-- | src/eggtrayicon.h | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/src/eggtrayicon.h b/src/eggtrayicon.h new file mode 100644 index 0000000..c0abfc0 --- /dev/null +++ b/src/eggtrayicon.h | |||
| @@ -0,0 +1,84 @@ | |||
| 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> | ||
| 4 | * | ||
| 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. | ||
| 9 | * | ||
| 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. | ||
| 14 | * | ||
| 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. | ||
| 19 | */ | ||
| 20 | |||
| 21 | #ifndef __EGG_TRAY_ICON_H__ | ||
| 22 | #define __EGG_TRAY_ICON_H__ | ||
| 23 | |||
| 24 | #include <gdkconfig.h> | ||
| 25 | #include <gtk/gtkversion.h> | ||
| 26 | |||
| 27 | #if !GTK_CHECK_VERSION(2, 10, 0) && defined(GDK_WINDOWING_X11) | ||
| 28 | #include <gtk/gtkplug.h> | ||
| 29 | #include <gdk/gdkx.h> | ||
| 30 | |||
| 31 | G_BEGIN_DECLS | ||
| 32 | |||
| 33 | #define EGG_TYPE_TRAY_ICON (egg_tray_icon_get_type ()) | ||
| 34 | #define EGG_TRAY_ICON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EGG_TYPE_TRAY_ICON, EggTrayIcon)) | ||
| 35 | #define EGG_TRAY_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EGG_TYPE_TRAY_ICON, EggTrayIconClass)) | ||
| 36 | #define EGG_IS_TRAY_ICON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EGG_TYPE_TRAY_ICON)) | ||
| 37 | #define EGG_IS_TRAY_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EGG_TYPE_TRAY_ICON)) | ||
| 38 | #define EGG_TRAY_ICON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EGG_TYPE_TRAY_ICON, EggTrayIconClass)) | ||
| 39 | |||
| 40 | typedef struct _EggTrayIcon EggTrayIcon; | ||
| 41 | typedef struct _EggTrayIconClass EggTrayIconClass; | ||
| 42 | |||
| 43 | struct _EggTrayIcon | ||
| 44 | { | ||
| 45 | GtkPlug parent_instance; | ||
| 46 | |||
| 47 | guint stamp; | ||
| 48 | |||
| 49 | Atom selection_atom; | ||
| 50 | Atom manager_atom; | ||
| 51 | Atom system_tray_opcode_atom; | ||
| 52 | Atom orientation_atom; | ||
| 53 | Window manager_window; | ||
| 54 | |||
| 55 | GtkOrientation orientation; | ||
| 56 | }; | ||
| 57 | |||
| 58 | struct _EggTrayIconClass | ||
| 59 | { | ||
| 60 | GtkPlugClass parent_class; | ||
| 61 | }; | ||
| 62 | |||
| 63 | GType egg_tray_icon_get_type (void); | ||
| 64 | |||
| 65 | #if GTK_CHECK_VERSION(2,1,0) | ||
| 66 | EggTrayIcon *egg_tray_icon_new_for_screen (GdkScreen *screen, | ||
| 67 | const gchar *name); | ||
| 68 | #endif | ||
| 69 | |||
| 70 | EggTrayIcon *egg_tray_icon_new (const gchar *name); | ||
| 71 | |||
| 72 | guint egg_tray_icon_send_message (EggTrayIcon *icon, | ||
| 73 | gint timeout, | ||
| 74 | const char *message, | ||
| 75 | gint len); | ||
| 76 | void egg_tray_icon_cancel_message (EggTrayIcon *icon, | ||
| 77 | guint id); | ||
| 78 | |||
| 79 | GtkOrientation egg_tray_icon_get_orientation (EggTrayIcon *icon); | ||
| 80 | |||
| 81 | G_END_DECLS | ||
| 82 | |||
| 83 | #endif /* GDK_WINDOWING_X11 */ | ||
| 84 | #endif /* __EGG_TRAY_ICON_H__ */ | ||
