24
24
#include <glib-object.h>
25
25
#include <gdk/gdk.h>
26
#include "launcher-application.h"
29
#define LAUNCHER_TYPE_CATEGORY (launcher_category_get_type ())
29
#define LAUNCHER_TYPE_CATEGORY (launcher_category_get_type ())
31
#define LAUNCHER_CATEGORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
32
LAUNCHER_TYPE_CATEGORY, LauncherCategory))
34
#define LAUNCHER_CATEGORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \
35
LAUNCHER_TYPE_CATEGORY, LauncherCategoryClass))
37
#define LAUNCHER_IS_CATEGORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
38
LAUNCHER_TYPE_CATEGORY))
40
#define LAUNCHER_IS_CATEGORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
41
LAUNCHER_TYPE_CATEGORY))
43
#define LAUNCHER_CATEGORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
44
LAUNCHER_TYPE_CATEGORY, LauncherCategoryClass))
46
31
typedef struct _LauncherCategory LauncherCategory;
47
typedef struct _LauncherCategoryClass LauncherCategoryClass;
48
typedef struct _LauncherCategoryPrivate LauncherCategoryPrivate;
50
struct _LauncherCategory
52
GObject parent_instance;
55
LauncherCategoryPrivate *priv;
59
struct _LauncherCategoryClass
61
GObjectClass parent_class;
64
void(* removed) (LauncherCategory *self);
65
void(* application_added) (LauncherCategory *self,
66
LauncherApplication *application);
67
void(* application_removed) (LauncherCategory *self,
68
LauncherApplication *application);
75
LauncherCategory * launcher_category_new (const gchar *name,
33
GType launcher_category_get_type (void) G_GNUC_CONST;
35
LauncherCategory * launcher_category_new (const gchar *name,
76
36
const gchar *comment,
77
37
const gchar *icon_name);
39
void launcher_category_free (LauncherCategory *category);
79
41
const gchar * launcher_category_get_name (LauncherCategory *category);
81
43
const gchar * launcher_category_get_comment (LauncherCategory *category);
83
45
const gchar * launcher_category_get_icon_name (LauncherCategory *category);
85
void launcher_category_add_application (LauncherCategory *category,
86
LauncherApplication *application);
88
void launcher_category_remove_application (LauncherCategory *category,
89
LauncherApplication *application);
91
GSList * launcher_category_get_applications (LauncherCategory *category);
93
void launcher_category_empty_applications (LauncherCategory *category);
95
void launcher_category_sort_applications (LauncherCategory *category,
96
GCompareFunc sort_func);
47
void launcher_category_append_child (LauncherCategory *category,
49
void launcher_category_sort_children (LauncherCategory *category,
50
GCompareFunc sort_func);
53
GSList * launcher_category_get_children (LauncherCategory *category);
55
void launcher_category_empty_children (LauncherCategory *category);