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.
 
 
 
 

71 lines
3.0 KiB

/*
* Copyright (c) 2002 Anders Carlsson <andersca@gnu.org>
* Copyright (c) 2003-2004 Benedikt Meurer <benny@xfce.org>
* Copyright (c) 2003-2004 Olivier Fourdan <fourdan@xfce.org>
* Copyright (c) 2003-2006 Vincent Untz
* Copyright (c) 2007-2010 Nick Schermer <nick@xfce.org>
*
* This library 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 library 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 General Public License for
* more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __SYSTRAY_MANAGER_H__
#define __SYSTRAY_MANAGER_H__
#include <gtk/gtk.h>
typedef struct _SystrayManagerClass SystrayManagerClass;
typedef struct _SystrayManager SystrayManager;
typedef struct _SystrayMessage SystrayMessage;
#define XFCE_TYPE_SYSTRAY_MANAGER (systray_manager_get_type ())
#define XFCE_SYSTRAY_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), XFCE_TYPE_SYSTRAY_MANAGER, SystrayManager))
#define XFCE_SYSTRAY_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), XFCE_TYPE_SYSTRAY_MANAGER, SystrayManagerClass))
#define XFCE_IS_SYSTRAY_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), XFCE_TYPE_SYSTRAY_MANAGER))
#define XFCE_IS_SYSTRAY_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), XFCE_TYPE_SYSTRAY_MANAGER))
#define XFCE_SYSTRAY_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), XFCE_TYPE_SYSTRAY_MANAGER, SystrayManagerClass))
#define XFCE_SYSTRAY_MANAGER_ERROR (systray_manager_error_quark())
enum
{
XFCE_SYSTRAY_MANAGER_ERROR_SELECTION_FAILED
};
GType systray_manager_get_type (void) G_GNUC_CONST;
void systray_manager_register_type (XfcePanelTypeModule *type_module);
GQuark systray_manager_error_quark (void);
SystrayManager *systray_manager_new (void) G_GNUC_MALLOC;
#if 0
gboolean systray_manager_check_running (GdkScreen *screen);
#endif
gboolean systray_manager_register (SystrayManager *manager,
GdkScreen *screen,
GError **error);
void systray_manager_unregister (SystrayManager *manager);
void systray_manager_set_orientation (SystrayManager *manager,
GtkOrientation orientation);
#endif /* !__SYSTRAY_MANAGER_H__ */