~kroq-gar78/ubuntu/precise/gnome-control-center/fix-885947

« back to all changes in this revision

Viewing changes to libgnome-control-center/cc-shell.h

  • Committer: Bazaar Package Importer
  • Author(s): Rodrigo Moya
  • Date: 2011-05-17 10:47:27 UTC
  • mfrom: (0.1.11 experimental) (1.1.45 upstream)
  • Revision ID: james.westby@ubuntu.com-20110517104727-lqel6m8vhfw5jby1
Tags: 1:3.0.1.1-1ubuntu1
* Rebase on Debian, remaining Ubuntu changes:
* debian/control:
  - Build-Depend on hardening-wrapper, dpkg-dev and dh-autoreconf
  - Add dependency on ubuntu-system-service
  - Remove dependency on gnome-icon-theme-symbolic
  - Move dependency on apg, gnome-icon-theme-symbolic and accountsservice to
    be a Recommends: until we get them in main
* debian/rules:
  - Use autoreconf
  - Add binary-post-install rule for gnome-control-center-data
  - Run dh-autoreconf
* debian/gnome-control-center.dirs:
* debian/gnome-control-center.links:
  - Add a link to the control center shell for indicators
* debian/patches/00_disable-nm.patch:
  - Temporary patch to disable building with NetworkManager until we get
    the new one in the archive
* debian/patches/01_git_remove_gettext_calls.patch:
  - Remove calls to AM_GNU_GETTEXT, IT_PROG_INTLTOOL should be enough
* debian/patches/01_git_kill_warning.patch:
  - Kill warning
* debian/patches/50_ubuntu_systemwide_prefs.patch:
  - Ubuntu specific proxy preferences
* debian/patches/51_ubuntu_system_keyboard.patch:
  - Implement the global keyboard spec at https://wiki.ubuntu.com/DefaultKeyboardSettings

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
 
2
 *
 
3
 * Copyright (c) 2010 Intel, Inc.
 
4
 *
 
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.
 
9
 *
 
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
 
13
 * for more details.
 
14
 *
 
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
 
18
 *
 
19
 * Author: Thomas Wood <thos@gnome.org>
 
20
 */
 
21
 
 
22
#ifndef _CC_SHELL_H
 
23
#define _CC_SHELL_H
 
24
 
 
25
#include <gtk/gtk.h>
 
26
 
 
27
G_BEGIN_DECLS
 
28
 
 
29
#define CC_TYPE_SHELL cc_shell_get_type()
 
30
 
 
31
#define CC_SHELL(obj) \
 
32
  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
 
33
  CC_TYPE_SHELL, CcShell))
 
34
 
 
35
#define CC_SHELL_CLASS(klass) \
 
36
  (G_TYPE_CHECK_CLASS_CAST ((klass), \
 
37
  CC_TYPE_SHELL, CcShellClass))
 
38
 
 
39
#define CC_IS_SHELL(obj) \
 
40
  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
 
41
  CC_TYPE_SHELL))
 
42
 
 
43
#define CC_IS_SHELL_CLASS(klass) \
 
44
  (G_TYPE_CHECK_CLASS_TYPE ((klass), \
 
45
  CC_TYPE_SHELL))
 
46
 
 
47
#define CC_SHELL_GET_CLASS(obj) \
 
48
  (G_TYPE_INSTANCE_GET_CLASS ((obj), \
 
49
  CC_TYPE_SHELL, CcShellClass))
 
50
 
 
51
 
 
52
#define CC_SHELL_PANEL_EXTENSION_POINT "control-center-1"
 
53
 
 
54
typedef struct _CcShell CcShell;
 
55
typedef struct _CcShellClass CcShellClass;
 
56
typedef struct _CcShellPrivate CcShellPrivate;
 
57
 
 
58
/* cc-panel.h requires CcShell, so make sure they are defined first */
 
59
#include "cc-panel.h"
 
60
 
 
61
/**
 
62
 * CcShell:
 
63
 *
 
64
 * The contents of this struct are private should not be accessed directly.
 
65
 */
 
66
struct _CcShell
 
67
{
 
68
  /*< private >*/
 
69
  GObject parent;
 
70
 
 
71
  CcShellPrivate *priv;
 
72
};
 
73
 
 
74
/**
 
75
 * CcShellClass:
 
76
 * @set_active_panel_from_id: virtual function to set the active panel from an
 
77
 *                            id string
 
78
 *
 
79
 */
 
80
struct _CcShellClass
 
81
{
 
82
  /*< private >*/
 
83
  GObjectClass parent_class;
 
84
 
 
85
  /*< public >*/
 
86
  /* vfuncs */
 
87
  gboolean    (*set_active_panel_from_id) (CcShell      *shell,
 
88
                                           const gchar  *id,
 
89
                                           GError      **error);
 
90
  GtkWidget * (*get_toplevel)             (CcShell      *shell);
 
91
};
 
92
 
 
93
GType           cc_shell_get_type                 (void) G_GNUC_CONST;
 
94
 
 
95
CcPanel*        cc_shell_get_active_panel         (CcShell      *shell);
 
96
void            cc_shell_set_active_panel         (CcShell      *shell,
 
97
                                                   CcPanel      *panel);
 
98
gboolean        cc_shell_set_active_panel_from_id (CcShell      *shell,
 
99
                                                   const gchar  *id,
 
100
                                                   GError      **error);
 
101
GtkWidget *     cc_shell_get_toplevel             (CcShell      *shell);
 
102
 
 
103
G_END_DECLS
 
104
 
 
105
#endif /* _CC_SHELL_H */