1
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
3
* Copyright (c) 2010 Intel, Inc.
5
* The Control Center is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by the
7
* Free Software Foundation; either version 2 of the License, or (at your
8
* option) any later version.
10
* The Control Center is distributed in the hope that it will be useful, but
11
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15
* You should have received a copy of the GNU General Public License along
16
* with the Control Center; if not, write to the Free Software Foundation,
17
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19
* Author: Thomas Wood <thos@gnome.org>
29
#define CC_TYPE_SHELL cc_shell_get_type()
31
#define CC_SHELL(obj) \
32
(G_TYPE_CHECK_INSTANCE_CAST ((obj), \
33
CC_TYPE_SHELL, CcShell))
35
#define CC_SHELL_CLASS(klass) \
36
(G_TYPE_CHECK_CLASS_CAST ((klass), \
37
CC_TYPE_SHELL, CcShellClass))
39
#define CC_IS_SHELL(obj) \
40
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
43
#define CC_IS_SHELL_CLASS(klass) \
44
(G_TYPE_CHECK_CLASS_TYPE ((klass), \
47
#define CC_SHELL_GET_CLASS(obj) \
48
(G_TYPE_INSTANCE_GET_CLASS ((obj), \
49
CC_TYPE_SHELL, CcShellClass))
52
#define CC_SHELL_PANEL_EXTENSION_POINT "control-center-1"
54
typedef struct _CcShell CcShell;
55
typedef struct _CcShellClass CcShellClass;
56
typedef struct _CcShellPrivate CcShellPrivate;
58
/* cc-panel.h requires CcShell, so make sure they are defined first */
64
* The contents of this struct are private should not be accessed directly.
76
* @set_active_panel_from_id: virtual function to set the active panel from an
83
GObjectClass parent_class;
87
gboolean (*set_active_panel_from_id) (CcShell *shell,
91
GtkWidget * (*get_toplevel) (CcShell *shell);
92
void (*embed_widget_in_header) (CcShell *shell,
96
GType cc_shell_get_type (void) G_GNUC_CONST;
98
CcPanel* cc_shell_get_active_panel (CcShell *shell);
99
void cc_shell_set_active_panel (CcShell *shell,
101
gboolean cc_shell_set_active_panel_from_id (CcShell *shell,
105
GtkWidget * cc_shell_get_toplevel (CcShell *shell);
107
void cc_shell_embed_widget_in_header (CcShell *shell,
112
#endif /* _CC_SHELL_H */