From 0b0e6bc987da4fd88a7854ebb12bde705e92c428 Mon Sep 17 00:00:00 2001 From: Perberos Date: Thu, 1 Dec 2011 21:51:44 -0300 Subject: moving from https://github.com/perberos/mate-desktop-environment --- libslab/system-tile.h | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 libslab/system-tile.h (limited to 'libslab/system-tile.h') diff --git a/libslab/system-tile.h b/libslab/system-tile.h new file mode 100644 index 00000000..a44012d6 --- /dev/null +++ b/libslab/system-tile.h @@ -0,0 +1,57 @@ +/* + * This file is part of the Main Menu. + * + * Copyright (c) 2006, 2007 Novell, Inc. + * + * The Main Menu 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 Main Menu 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 Main Menu; if not, write to the Free Software Foundation, Inc., 51 + * Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef __SYSTEM_TILE_H__ +#define __SYSTEM_TILE_H__ + +#include + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#define SYSTEM_TILE_TYPE (system_tile_get_type ()) +#define SYSTEM_TILE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), SYSTEM_TILE_TYPE, SystemTile)) +#define SYSTEM_TILE_CLASS(c) (G_TYPE_CHECK_CLASS_CAST ((c), SYSTEM_TILE_TYPE, SystemTileClass)) +#define IS_SYSTEM_TILE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), SYSTEM_TILE_TYPE)) +#define IS_SYSTEM_TILE_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE ((c), SYSTEM_TILE_TYPE)) +#define SYSTEM_TILE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), SYSTEM_TILE_TYPE, SystemTileClass)) + +typedef struct { + NameplateTile nameplate_tile; +} SystemTile; + +typedef struct { + NameplateTileClass nameplate_tile_class; +} SystemTileClass; + +#define SYSTEM_TILE_ACTION_OPEN 0 +#define SYSTEM_TILE_ACTION_REMOVE 1 + +GType system_tile_get_type (void); + +GtkWidget *system_tile_new (const gchar *desktop_item_id, const gchar *title); + +#ifdef __cplusplus +} +#endif +#endif -- cgit v1.2.1