You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

127 lines
2.8 KiB

/* $Id$
*
* Copyright (c) 2005 Jasper Huijsmans <jasper@xfce.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published
* by the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef __PANEL_APP_H__
#define __PANEL_APP_H__
#include <X11/Xlib.h>
#include <gtk/gtkwidget.h>
G_BEGIN_DECLS
typedef struct _XfceMonitor XfceMonitor;
#if defined(TIMER) && defined(G_HAVE_ISO_VARARGS)
void xfce_panel_program_log (const char *file, const int line,
const char *format, ...);
#define MARK(...) \
xfce_panel_program_log (__FILE__, __LINE__, __VA_ARGS__)
#else
#define MARK(fmt,args...) do {} while(0)
#endif /* TIMER */
struct _XfceMonitor
{
GdkScreen *screen;
gint num;
GdkRectangle geometry;
guint has_neighbor_left : 1;
guint has_neighbor_right : 1;
guint has_neighbor_above : 1;
guint has_neighbor_below : 1;
};
/* return status */
enum {
INIT_SUCCESS,
INIT_RUNNING,
INIT_FAILURE
};
enum {
RUN_SUCCESS,
RUN_RESTART,
RUN_FAILURE,
};
/* run control */
int panel_app_init (void);
int panel_app_run (gchar *client_id);
void panel_app_queue_save (void);
/* actions */
void panel_app_customize (void);
void panel_app_customize_items (GtkWidget *active_item);
void panel_app_save (void);
void panel_app_restart (void);
void panel_app_quit (void);
void panel_app_quit_noconfirm (void);
void panel_app_quit_nosave (void);
void panel_app_add_panel (void);
void panel_app_remove_panel (GtkWidget *panel);
void panel_app_about (GtkWidget *panel);
Window panel_app_get_ipc_window (void);
XfceMonitor *panel_app_get_monitor (guint n);
guint panel_app_get_n_monitors (void);
gboolean panel_app_monitors_equal_height (void);
gboolean panel_app_monitors_equal_width (void);
/* keep track of open dialogs */
void panel_app_register_dialog (GtkWidget *dialog);
/* keep track of active panel */
void panel_app_set_current_panel (gpointer *panel);
void panel_app_unset_current_panel (gpointer *panel);
int panel_app_get_current_panel (void);
/* get panel list */
const GPtrArray *panel_app_get_panel_list (void);
G_END_DECLS
#endif /* !__PANEL_APP_H__ */