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 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.
21
#ifndef __EGG_TRAY_MANAGER_H__
22
#define __EGG_TRAY_MANAGER_H__
24
#include <gtk/gtkwidget.h>
29
#define EGG_TYPE_TRAY_MANAGER (egg_tray_manager_get_type ())
30
#define EGG_TRAY_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EGG_TYPE_TRAY_MANAGER, EggTrayManager))
31
#define EGG_TRAY_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EGG_TYPE_TRAY_MANAGER, EggTrayManagerClass))
32
#define EGG_IS_TRAY_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EGG_TYPE_TRAY_MANAGER))
33
#define EGG_IS_TRAY_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EGG_TYPE_TRAY_MANAGER))
34
#define EGG_TRAY_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EGG_TYPE_TRAY_MANAGER, EggTrayManagerClass))
36
typedef struct _EggTrayManager EggTrayManager;
37
typedef struct _EggTrayManagerClass EggTrayManagerClass;
38
typedef struct _EggTrayManagerChild EggTrayManagerChild;
40
struct _EggTrayManager
42
GObject parent_instance;
46
Atom message_data_atom;
47
Atom orientation_atom;
51
GtkOrientation orientation;
54
GHashTable *socket_table;
57
struct _EggTrayManagerClass
59
GObjectClass parent_class;
61
void (* tray_icon_added) (EggTrayManager *manager,
62
EggTrayManagerChild *child);
63
void (* tray_icon_removed) (EggTrayManager *manager,
64
EggTrayManagerChild *child);
66
void (* message_sent) (EggTrayManager *manager,
67
EggTrayManagerChild *child,
72
void (* message_cancelled) (EggTrayManager *manager,
73
EggTrayManagerChild *child,
76
void (* lost_selection) (EggTrayManager *manager);
79
GType egg_tray_manager_get_type (void);
81
gboolean egg_tray_manager_check_running (GdkScreen *screen);
82
EggTrayManager *egg_tray_manager_new (void);
83
gboolean egg_tray_manager_manage_screen (EggTrayManager *manager,
85
char *egg_tray_manager_get_child_title (EggTrayManager *manager,
86
EggTrayManagerChild *child);
87
void egg_tray_manager_set_orientation (EggTrayManager *manager,
88
GtkOrientation orientation);
89
GtkOrientation egg_tray_manager_get_orientation (EggTrayManager *manager);
93
#endif /* __EGG_TRAY_MANAGER_H__ */