2
* This file is part of libtile.
4
* Copyright (c) 2006 Novell, Inc.
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)
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
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
21
#ifndef __APPLICATION_TILE_H__
22
#define __APPLICATION_TILE_H__
24
#include <libslab/nameplate-tile.h>
26
#include <libgnome/gnome-desktop-item.h>
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
45
NameplateTile nameplate_tile;
54
NameplateTileClass nameplate_tile_class;
55
} ApplicationTileClass;
57
GType application_tile_get_type (void);
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);
63
GnomeDesktopItem *application_tile_get_desktop_item (ApplicationTile * tile);