summaryrefslogtreecommitdiff
path: root/libslab/tile.h
diff options
context:
space:
mode:
authorzhuyaliang <[email protected]>2023-10-25 21:43:03 +0800
committerraveit65 <[email protected]>2023-11-05 12:00:50 +0100
commitc2e94e1925f3c7acfa3fd3352dc8fdafe6375adc (patch)
tree3ba609bf57b7bb3eab18d35d78bd1dc86773fba6 /libslab/tile.h
parent23fc7b675ebac7a9b02257a31203974d72f584b1 (diff)
downloadmate-control-center-c2e94e1925f3c7acfa3fd3352dc8fdafe6375adc.tar.bz2
mate-control-center-c2e94e1925f3c7acfa3fd3352dc8fdafe6375adc.tar.xz
Remove libslab library
libslab is only used in mate-c-c and there is no need to provide a library
Diffstat (limited to 'libslab/tile.h')
-rw-r--r--libslab/tile.h127
1 files changed, 0 insertions, 127 deletions
diff --git a/libslab/tile.h b/libslab/tile.h
deleted file mode 100644
index 9c8d3f2a..00000000
--- a/libslab/tile.h
+++ /dev/null
@@ -1,127 +0,0 @@
-/*
- * This file is part of libtile.
- *
- * Copyright (c) 2006 Novell, Inc.
- *
- * Libtile is free software; you can redistribute it and/or modify it under the
- * terms of the GNU Lesser General Public License as published by the Free
- * Software Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * Libtile 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 Lesser General Public License for
- * more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with libslab; if not, write to the Free Software Foundation, Inc., 51
- * Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-#ifndef __TILE_H__
-#define __TILE_H__
-
-#include <glib.h>
-#include <gtk/gtk.h>
-
-G_BEGIN_DECLS
-
-#define TILE_TYPE (tile_get_type ())
-#define TILE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TILE_TYPE, Tile))
-#define TILE_CLASS(c) (G_TYPE_CHECK_CLASS_CAST ((c), TILE_TYPE, TileClass))
-#define IS_TILE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TILE_TYPE))
-#define IS_TILE_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE ((c), TILE_TYPE))
-#define TILE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TILE_TYPE, TileClass))
-#define TILE_ACTION_TYPE (tile_action_get_type ())
-#define TILE_ACTION(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TILE_ACTION_TYPE, TileAction))
-#define TILE_ACTION_CLASS(c) (G_TYPE_CHECK_CLASS_CAST ((c), TILE_ACTION_TYPE, TileActionClass))
-#define IS_TILE_ACTION(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TILE_ACTION_TYPE))
-#define IS_TILE_ACTION_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE ((c), TILE_ACTION_TYPE))
-#define TILE_ACTION_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TILE_ACTION_TYPE, TileActionClass))
-#define TILE_ACTION_CHECK_FLAG(action,flag) ((TILE_ACTION (action)->flags & (flag)) != 0)
-#define TILE_STATE_ENTERED GTK_STATE_FLAG_PRELIGHT
-#define TILE_STATE_FOCUSED GTK_STATE_FLAG_PRELIGHT
-
-typedef struct _Tile Tile;
-typedef struct _TileClass TileClass;
-typedef struct _TileAction TileAction;
-typedef struct _TileActionClass TileActionClass;
-typedef struct _TileEvent TileEvent;
-
-typedef void (*TileActionFunc) (Tile *, TileEvent *, TileAction *);
-
-typedef enum
-{
- TILE_EVENT_ACTIVATED_SINGLE_CLICK,
- TILE_EVENT_ACTIVATED_DOUBLE_CLICK,
- TILE_EVENT_ACTIVATED_KEYBOARD,
- TILE_EVENT_ACTION_TRIGGERED
-} TileEventType;
-
-typedef enum
-{
- TILE_ACTION_OPENS_NEW_WINDOW = 1 << 0,
- TILE_ACTION_OPENS_HELP = 1 << 1
-} TileActionFlags;
-
-struct _Tile
-{
- GtkButton gtk_button;
-
- gchar *uri;
- GtkMenu *context_menu;
- gboolean entered;
- gboolean enabled;
-
- TileAction **actions;
- gint n_actions;
-
- TileAction *default_action;
-};
-
-struct _TileClass
-{
- GtkButtonClass gtk_button_class;
-
- void (*tile_activated) (Tile *, TileEvent *);
- void (*tile_action_triggered) (Tile *, TileEvent *, TileAction *);
-};
-
-struct _TileAction
-{
- GObject parent;
-
- Tile *tile;
-
- TileActionFunc func;
- GtkMenuItem *menu_item;
-
- guint32 flags;
-};
-
-struct _TileActionClass
-{
- GObjectClass parent_class;
-};
-
-struct _TileEvent
-{
- TileEventType type;
- guint32 time;
-};
-
-GType tile_get_type (void);
-GType tile_action_get_type (void);
-
-void tile_trigger_action (Tile * tile, TileAction * action);
-void tile_trigger_action_with_time (Tile * tile, TileAction * action, guint32 time);
-
-TileAction *tile_action_new (Tile * tile, TileActionFunc func, const gchar * menu_item_markup,
- guint32 flags);
-
-void tile_action_set_menu_item_label (TileAction * action, const gchar * markup);
-GtkMenuItem *tile_action_get_menu_item (TileAction * action);
-
-G_END_DECLS
-
-#endif /* __TILE_H__ */