~ubuntu-branches/ubuntu/oneiric/gnome-panel/oneiric

« back to all changes in this revision

Viewing changes to gnome-panel/panel-user-menu.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2011-05-30 11:04:49 UTC
  • mfrom: (1.3.4 upstream)
  • mto: This revision was merged to the branch mainline in revision 204.
  • Revision ID: james.westby@ubuntu.com-20110530110449-ut1tc5t61rpvf9e3
Tags: upstream-3.0.2
ImportĀ upstreamĀ versionĀ 3.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * panel-user-menu.h: user status menu
 
3
 *
 
4
 * Copyright (C) 2003 Sun Microsystems, Inc.
 
5
 *
 
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.
 
10
 *
 
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.
 
15
 *
 
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
 
19
 * 02111-1307, USA.
 
20
 *
 
21
 * Authors:
 
22
 *      Mark McLoughlin <mark@skynet.ie>
 
23
 */
 
24
 
 
25
#ifndef __PANEL_USER_MENU_H__
 
26
#define __PANEL_USER_MENU_H__
 
27
 
 
28
#include <gtk/gtk.h>
 
29
 
 
30
#include "panel-menu-bar-object.h"
 
31
#include "panel-widget.h"
 
32
 
 
33
G_BEGIN_DECLS
 
34
 
 
35
#define PANEL_TYPE_USER_MENU         (panel_user_menu_get_type ())
 
36
#define PANEL_USER_MENU(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), PANEL_TYPE_USER_MENU, PanelUserMenu))
 
37
#define PANEL_USER_MENU_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), PANEL_TYPE_USER_MENU, PanelUserMenuClass))
 
38
#define PANEL_IS_USER_MENU(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), PANEL_TYPE_USER_MENU))
 
39
#define PANEL_IS_USER_MENU_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), PANEL_TYPE_USER_MENU))
 
40
#define PANEL_USER_MENU_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), PANEL_TYPE_USER_MENU, PanelUserMenuClass))
 
41
 
 
42
typedef struct _PanelUserMenu        PanelUserMenu;
 
43
typedef struct _PanelUserMenuClass   PanelUserMenuClass;
 
44
typedef struct _PanelUserMenuPrivate PanelUserMenuPrivate;
 
45
 
 
46
struct _PanelUserMenu{
 
47
        PanelMenuBarObject    usermenu;
 
48
 
 
49
        PanelUserMenuPrivate  *priv;
 
50
};
 
51
 
 
52
struct _PanelUserMenuClass {
 
53
        PanelMenuBarObjectClass usermenu_class;
 
54
};
 
55
 
 
56
GType      panel_user_menu_get_type  (void) G_GNUC_CONST;
 
57
 
 
58
void       panel_user_menu_create           (PanelToplevel       *toplevel,
 
59
                                             PanelObjectPackType  pack_type,
 
60
                                             int                  pack_index);
 
61
 
 
62
void       panel_user_menu_load             (PanelWidget  *panel,
 
63
                                             const char   *id,
 
64
                                             GSettings    *settings);
 
65
 
 
66
G_END_DECLS
 
67
 
 
68
#endif /* __PANEL_USER_MENU_H__ */