3
* Copyright (c) 2005 Jasper Huijsmans <jasper@xfce.org>
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published
7
* by the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
10
* This program 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
13
* GNU Library General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20
#ifndef __PANEL_APP_H__
21
#define __PANEL_APP_H__
24
#include <gtk/gtkwidget.h>
28
typedef struct _XfceMonitor XfceMonitor;
30
#if defined(TIMER) && defined(G_HAVE_ISO_VARARGS)
31
void xfce_panel_program_log (const char *file, const int line,
32
const char *format, ...);
35
xfce_panel_program_log (__FILE__, __LINE__, __VA_ARGS__)
39
#define MARK(fmt,args...) do {} while(0)
48
GdkRectangle geometry;
49
guint has_neighbor_left : 1;
50
guint has_neighbor_right : 1;
51
guint has_neighbor_above : 1;
52
guint has_neighbor_below : 1;
72
int panel_app_init (void);
74
int panel_app_run (gchar *client_id);
76
void panel_app_queue_save (void);
81
void panel_app_customize (void);
83
void panel_app_customize_items (GtkWidget *active_item);
85
void panel_app_save (void);
87
void panel_app_restart (void);
89
void panel_app_quit (void);
91
void panel_app_quit_noconfirm (void);
93
void panel_app_quit_nosave (void);
95
void panel_app_add_panel (void);
97
void panel_app_remove_panel (GtkWidget *panel);
99
void panel_app_about (GtkWidget *panel);
101
Window panel_app_get_ipc_window (void);
103
XfceMonitor *panel_app_get_monitor (guint n);
105
guint panel_app_get_n_monitors (void);
107
gboolean panel_app_monitors_equal_height (void);
109
gboolean panel_app_monitors_equal_width (void);
111
/* keep track of open dialogs */
112
void panel_app_register_dialog (GtkWidget *dialog);
114
/* keep track of active panel */
115
void panel_app_set_current_panel (gpointer *panel);
117
void panel_app_unset_current_panel (gpointer *panel);
119
int panel_app_get_current_panel (void);
122
const GPtrArray *panel_app_get_panel_list (void);
127
#endif /* !__PANEL_APP_H__ */