2
* This file is a part of the Cairo-Dock project
4
* Copyright : (C) see the 'copyright' file.
5
* E-mail : see the 'copyright' file.
7
* This program is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU General Public License
9
* as published by the Free Software Foundation; either version 3
10
* of the License, or (at your option) any later version.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program. If not, see <http://www.gnu.org/licenses/>.
20
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
22
* Copyright (C) 2002 Anders Carlsson <andersca@gnu.org>
23
* Copyright (C) 2003-2006 Vincent Untz
25
* This library is free software; you can redistribute it and/or
26
* modify it under the terms of the GNU Lesser General Public
27
* License as published by the Free Software Foundation; either
28
* version 2 of the License, or (at your option) any later version.
30
* This library is distributed in the hope that it will be useful,
31
* but WITHOUT ANY WARRANTY; without even the implied warranty of
32
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
33
* Lesser General Public License for more details.
35
* You should have received a copy of the GNU Lesser General Public
36
* License along with this library; if not, write to the
37
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
38
* Boston, MA 02111-1307, USA.
40
* Used to be: eggtraymanager.h
43
#ifndef __NA_TRAY_MANAGER_H__
44
#define __NA_TRAY_MANAGER_H__
46
#include <gtk/gtkwidget.h>
47
#ifdef GDK_WINDOWING_X11
53
#define NA_TYPE_TRAY_MANAGER (na_tray_manager_get_type ())
54
#define NA_TRAY_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NA_TYPE_TRAY_MANAGER, NaTrayManager))
55
#define NA_TRAY_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NA_TYPE_TRAY_MANAGER, NaTrayManagerClass))
56
#define NA_IS_TRAY_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NA_TYPE_TRAY_MANAGER))
57
#define NA_IS_TRAY_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NA_TYPE_TRAY_MANAGER))
58
#define NA_TRAY_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NA_TYPE_TRAY_MANAGER, NaTrayManagerClass))
60
typedef struct _NaTrayManager NaTrayManager;
61
typedef struct _NaTrayManagerClass NaTrayManagerClass;
62
typedef struct _NaTrayManagerChild NaTrayManagerChild;
66
GObject parent_instance;
68
#ifdef GDK_WINDOWING_X11
69
GdkAtom selection_atom;
75
GtkOrientation orientation;
78
GHashTable *socket_table;
81
struct _NaTrayManagerClass
83
GObjectClass parent_class;
85
void (* tray_icon_added) (NaTrayManager *manager,
86
NaTrayManagerChild *child);
87
void (* tray_icon_removed) (NaTrayManager *manager,
88
NaTrayManagerChild *child);
90
void (* message_sent) (NaTrayManager *manager,
91
NaTrayManagerChild *child,
96
void (* message_cancelled) (NaTrayManager *manager,
97
NaTrayManagerChild *child,
100
void (* lost_selection) (NaTrayManager *manager);
103
GType na_tray_manager_get_type (void);
105
gboolean na_tray_manager_check_running (GdkScreen *screen);
106
NaTrayManager *na_tray_manager_new (void);
107
gboolean na_tray_manager_manage_screen (NaTrayManager *manager,
109
char *na_tray_manager_get_child_title (NaTrayManager *manager,
110
NaTrayManagerChild *child);
111
void na_tray_manager_set_orientation (NaTrayManager *manager,
112
GtkOrientation orientation);
113
GtkOrientation na_tray_manager_get_orientation (NaTrayManager *manager);
117
#endif /* __NA_TRAY_MANAGER_H__ */