summaryrefslogtreecommitdiff
path: root/libslab/system-tile.h
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-12-01 21:51:44 -0300
committerPerberos <[email protected]>2011-12-01 21:51:44 -0300
commit0b0e6bc987da4fd88a7854ebb12bde705e92c428 (patch)
tree47d329edd31c67eaa36b2147780e37e197e901b5 /libslab/system-tile.h
downloadmate-control-center-0b0e6bc987da4fd88a7854ebb12bde705e92c428.tar.bz2
mate-control-center-0b0e6bc987da4fd88a7854ebb12bde705e92c428.tar.xz
moving from https://github.com/perberos/mate-desktop-environment
Diffstat (limited to 'libslab/system-tile.h')
-rw-r--r--libslab/system-tile.h57
1 files changed, 57 insertions, 0 deletions
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 <libslab/nameplate-tile.h>
+
+#include <libmate/mate-desktop-item.h>
+
+#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