shell: add a new settings shell
The new shell provides an implementation of CcShell and also removes the dependency on libslab.
This commit is contained in:
parent
b4fdb6db4f
commit
4ea04c81dc
16 changed files with 2212 additions and 182 deletions
74
shell/shell-search-renderer.h
Normal file
74
shell/shell-search-renderer.h
Normal file
|
@ -0,0 +1,74 @@
|
|||
/*
|
||||
* Copyright (c) 2010 Intel, Inc.
|
||||
*
|
||||
* The Control Center is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by the
|
||||
* Free Software Foundation; either version 2 of the License, or (at your
|
||||
* option) any later version.
|
||||
*
|
||||
* The Control Center is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with the Control Center; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
* Author: Thomas Wood <thos@gnome.org>
|
||||
*/
|
||||
|
||||
#ifndef _SHELL_SEARCH_RENDERER_H
|
||||
#define _SHELL_SEARCH_RENDERER_H
|
||||
|
||||
#include <glib-object.h>
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define SHELL_TYPE_SEARCH_RENDERER shell_search_renderer_get_type()
|
||||
|
||||
#define SHELL_SEARCH_RENDERER(obj) \
|
||||
(G_TYPE_CHECK_INSTANCE_CAST ((obj), \
|
||||
SHELL_TYPE_SEARCH_RENDERER, ShellSearchRenderer))
|
||||
|
||||
#define SHELL_SEARCH_RENDERER_CLASS(klass) \
|
||||
(G_TYPE_CHECK_CLASS_CAST ((klass), \
|
||||
SHELL_TYPE_SEARCH_RENDERER, ShellSearchRendererClass))
|
||||
|
||||
#define SHELL_IS_SEARCH_RENDERER(obj) \
|
||||
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
|
||||
SHELL_TYPE_SEARCH_RENDERER))
|
||||
|
||||
#define SHELL_IS_SEARCH_RENDERER_CLASS(klass) \
|
||||
(G_TYPE_CHECK_CLASS_TYPE ((klass), \
|
||||
SHELL_TYPE_SEARCH_RENDERER))
|
||||
|
||||
#define SHELL_SEARCH_RENDERER_GET_CLASS(obj) \
|
||||
(G_TYPE_INSTANCE_GET_CLASS ((obj), \
|
||||
SHELL_TYPE_SEARCH_RENDERER, ShellSearchRendererClass))
|
||||
|
||||
typedef struct _ShellSearchRenderer ShellSearchRenderer;
|
||||
typedef struct _ShellSearchRendererClass ShellSearchRendererClass;
|
||||
typedef struct _ShellSearchRendererPrivate ShellSearchRendererPrivate;
|
||||
|
||||
struct _ShellSearchRenderer
|
||||
{
|
||||
GtkCellRenderer parent;
|
||||
|
||||
ShellSearchRendererPrivate *priv;
|
||||
};
|
||||
|
||||
struct _ShellSearchRendererClass
|
||||
{
|
||||
GtkCellRendererClass parent_class;
|
||||
};
|
||||
|
||||
GType shell_search_renderer_get_type (void) G_GNUC_CONST;
|
||||
|
||||
ShellSearchRenderer *shell_search_renderer_new (void);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* _SHELL_SEARCH_RENDERER_H */
|
Loading…
Add table
Add a link
Reference in a new issue