1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
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.1 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 Free Software
17
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
#ifndef __EGG_TRAY_ICON_H__
21
#define __EGG_TRAY_ICON_H__
24
#ifdef GDK_WINDOWING_X11
27
#if GTK_CHECK_VERSION(2,99,3)
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))
40
typedef struct _EggTrayIcon EggTrayIcon;
41
typedef struct _EggTrayIconClass EggTrayIconClass;
45
GtkPlug parent_instance;
49
#ifdef GDK_WINDOWING_X11
52
Atom system_tray_opcode_atom;
53
Atom orientation_atom;
54
Window manager_window;
56
GtkOrientation orientation;
59
struct _EggTrayIconClass
61
GtkPlugClass parent_class;
64
GType egg_tray_icon_get_type (void);
66
EggTrayIcon *egg_tray_icon_new_for_screen (GdkScreen *screen,
69
EggTrayIcon *egg_tray_icon_new (const gchar *name);
71
guint egg_tray_icon_send_message (EggTrayIcon *icon,
75
void egg_tray_icon_cancel_message (EggTrayIcon *icon,
78
GtkOrientation egg_tray_icon_get_orientation (EggTrayIcon *icon);
82
#endif /* __EGG_TRAY_ICON_H__ */