~ubuntu-branches/ubuntu/precise/gnome-control-center/precise-updates

« back to all changes in this revision

Viewing changes to libslab/application-tile.h

Tags: upstream-3.0.1.1
ImportĀ upstreamĀ versionĀ 3.0.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * This file is part of libtile.
3
 
 *
4
 
 * Copyright (c) 2006 Novell, Inc.
5
 
 *
6
 
 * Libtile is free software; you can redistribute it and/or modify it under the
7
 
 * terms of the GNU Lesser General Public License as published by the Free
8
 
 * Software Foundation; either version 2 of the License, or (at your option)
9
 
 * any later version.
10
 
 *
11
 
 * Libtile is distributed in the hope that it will be useful, but WITHOUT ANY
12
 
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13
 
 * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for
14
 
 * more details.
15
 
 *
16
 
 * You should have received a copy of the GNU Lesser General Public License
17
 
 * along with libslab; if not, write to the Free Software Foundation, Inc., 51
18
 
 * Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
 
 */
20
 
 
21
 
#ifndef __APPLICATION_TILE_H__
22
 
#define __APPLICATION_TILE_H__
23
 
 
24
 
#include <libslab/nameplate-tile.h>
25
 
 
26
 
#include <libgnome/gnome-desktop-item.h>
27
 
 
28
 
G_BEGIN_DECLS
29
 
 
30
 
#define APPLICATION_TILE_TYPE         (application_tile_get_type ())
31
 
#define APPLICATION_TILE(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), APPLICATION_TILE_TYPE, ApplicationTile))
32
 
#define APPLICATION_TILE_CLASS(c)     (G_TYPE_CHECK_CLASS_CAST ((c), APPLICATION_TILE_TYPE, ApplicationTileClass))
33
 
#define IS_APPLICATION_TILE(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), APPLICATION_TILE_TYPE))
34
 
#define IS_APPLICATION_TILE_CLASS(c)  (G_TYPE_CHECK_CLASS_TYPE ((c), APPLICATION_TILE_TYPE))
35
 
#define APPLICATION_TILE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), APPLICATION_TILE_TYPE, ApplicationTileClass))
36
 
#define APPLICATION_TILE_ACTION_START             0
37
 
#define APPLICATION_TILE_ACTION_HELP              1
38
 
#define APPLICATION_TILE_ACTION_UPDATE_MAIN_MENU  2
39
 
#define APPLICATION_TILE_ACTION_UPDATE_STARTUP    3
40
 
#define APPLICATION_TILE_ACTION_UPGRADE_PACKAGE   4
41
 
#define APPLICATION_TILE_ACTION_UNINSTALL_PACKAGE 5
42
 
 
43
 
typedef struct
44
 
{
45
 
        NameplateTile nameplate_tile;
46
 
 
47
 
        gchar *name;
48
 
        gchar *description;
49
 
        gchar *gconf_prefix;
50
 
} ApplicationTile;
51
 
 
52
 
typedef struct
53
 
{
54
 
        NameplateTileClass nameplate_tile_class;
55
 
} ApplicationTileClass;
56
 
 
57
 
GType application_tile_get_type (void);
58
 
 
59
 
GtkWidget *application_tile_new (const gchar * desktop_item_id);
60
 
GtkWidget *application_tile_new_full (const gchar * desktop_item_id,
61
 
        GtkIconSize icon_size, gboolean show_generic_name, const gchar *gconf_prefix);
62
 
 
63
 
GnomeDesktopItem *application_tile_get_desktop_item (ApplicationTile * tile);
64
 
 
65
 
G_END_DECLS
66
 
#endif