2
* panel-menu-bar-object.h: a base class for menu bar objects
4
* Copyright (C) 2003 Sun Microsystems, Inc.
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License as
8
* published by the Free Software Foundation; either version 2 of the
9
* License, or (at your option) any later version.
11
* This program is distributed in the hope that it will be useful, but
12
* WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* 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, write to the Free Software
18
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22
* Mark McLoughlin <mark@skynet.ie>
25
#ifndef __PANEL_MENU_BAR_OBJECT_H__
26
#define __PANEL_MENU_BAR_OBJECT_H__
30
#include "panel-widget.h"
34
#define PANEL_TYPE_MENU_BAR_OBJECT (panel_menu_bar_object_get_type ())
35
#define PANEL_MENU_BAR_OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), PANEL_TYPE_MENU_BAR_OBJECT, PanelMenuBarObject))
36
#define PANEL_MENU_BAR_OBJECT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), PANEL_TYPE_MENU_BAR_OBJECT, PanelMenuBarObjectClass))
37
#define PANEL_IS_MENU_BAR_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), PANEL_TYPE_MENU_BAR_OBJECT))
38
#define PANEL_IS_MENU_BAR_OBJECT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), PANEL_TYPE_MENU_BAR_OBJECT))
39
#define PANEL_MENU_BAR_OBJECT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), PANEL_TYPE_MENU_BAR_OBJECT, PanelMenuBarObjectClass))
41
typedef struct _PanelMenuBarObject PanelMenuBarObject;
42
typedef struct _PanelMenuBarObjectClass PanelMenuBarObjectClass;
43
typedef struct _PanelMenuBarObjectPrivate PanelMenuBarObjectPrivate;
45
struct _PanelMenuBarObject{
48
PanelMenuBarObjectPrivate *priv;
51
struct _PanelMenuBarObjectClass {
52
GtkMenuBarClass menubar_class;
55
GType panel_menu_bar_object_get_type (void) G_GNUC_CONST;
57
void panel_menu_bar_object_object_load_finish (PanelMenuBarObject *menubar,
60
void panel_menu_bar_object_change_background (PanelMenuBarObject *menubar);
62
void panel_menu_bar_object_set_orientation (PanelMenuBarObject *menubar,
63
PanelOrientation orientation);
64
PanelOrientation panel_menu_bar_object_get_orientation (PanelMenuBarObject *menubar);
68
#endif /* __PANEL_MENU_BAR_OBJECT_H__ */