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

« back to all changes in this revision

Viewing changes to shell/cc-shell-model.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
/*
 
2
 * Copyright (c) 2010 Intel, Inc.
 
3
 *
 
4
 * The Control Center is free software; you can redistribute it and/or modify
 
5
 * it under the terms of the GNU General Public License as published by the
 
6
 * Free Software Foundation; either version 2 of the License, or (at your
 
7
 * option) any later version.
 
8
 *
 
9
 * The Control Center is distributed in the hope that it will be useful, but
 
10
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 
11
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 
12
 * for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU General Public License along
 
15
 * with the Control Center; if not, write to the Free Software Foundation,
 
16
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
17
 *
 
18
 * Author: Thomas Wood <thos@gnome.org>
 
19
 */
 
20
 
 
21
 
 
22
#ifndef _CC_SHELL_MODEL_H
 
23
#define _CC_SHELL_MODEL_H
 
24
 
 
25
#include <gtk/gtk.h>
 
26
#define GMENU_I_KNOW_THIS_IS_UNSTABLE
 
27
#include <gmenu-tree.h>
 
28
 
 
29
G_BEGIN_DECLS
 
30
 
 
31
#define CC_TYPE_SHELL_MODEL cc_shell_model_get_type()
 
32
 
 
33
#define CC_SHELL_MODEL(obj) \
 
34
  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
 
35
  CC_TYPE_SHELL_MODEL, CcShellModel))
 
36
 
 
37
#define CC_SHELL_MODEL_CLASS(klass) \
 
38
  (G_TYPE_CHECK_CLASS_CAST ((klass), \
 
39
  CC_TYPE_SHELL_MODEL, CcShellModelClass))
 
40
 
 
41
#define CC_IS_SHELL_MODEL(obj) \
 
42
  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
 
43
  CC_TYPE_SHELL_MODEL))
 
44
 
 
45
#define CC_IS_SHELL_MODEL_CLASS(klass) \
 
46
  (G_TYPE_CHECK_CLASS_TYPE ((klass), \
 
47
  CC_TYPE_SHELL_MODEL))
 
48
 
 
49
#define CC_SHELL_MODEL_GET_CLASS(obj) \
 
50
  (G_TYPE_INSTANCE_GET_CLASS ((obj), \
 
51
  CC_TYPE_SHELL_MODEL, CcShellModelClass))
 
52
 
 
53
typedef struct _CcShellModel CcShellModel;
 
54
typedef struct _CcShellModelClass CcShellModelClass;
 
55
 
 
56
enum
 
57
{
 
58
  COL_NAME,
 
59
  COL_DESKTOP_FILE,
 
60
  COL_ID,
 
61
  COL_PIXBUF,
 
62
  COL_CATEGORY,
 
63
  COL_SEARCH_TARGET,
 
64
  COL_ICON_NAME,
 
65
  COL_KEYWORDS,
 
66
 
 
67
  N_COLS
 
68
};
 
69
 
 
70
struct _CcShellModel
 
71
{
 
72
  GtkListStore parent;
 
73
};
 
74
 
 
75
struct _CcShellModelClass
 
76
{
 
77
  GtkListStoreClass parent_class;
 
78
};
 
79
 
 
80
GType cc_shell_model_get_type (void) G_GNUC_CONST;
 
81
 
 
82
CcShellModel *cc_shell_model_new (void);
 
83
 
 
84
void cc_shell_model_add_item (CcShellModel   *model,
 
85
                              const gchar    *category_name,
 
86
                              GMenuTreeEntry *item);
 
87
 
 
88
G_END_DECLS
 
89
 
 
90
#endif /* _CC_SHELL_MODEL_H */