~ken-vandine/+junk/liblauncher-gtk3

« back to all changes in this revision

Viewing changes to launcher/launcher-category.h

  • Committer: Bazaar Package Importer
  • Author(s): Loïc Minier
  • Date: 2009-09-25 12:44:07 UTC
  • mfrom: (0.1.4 karmic) (62.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090925124407-zc40q066a5n5i9hw
* New upstream release.
  - Fixes software-store entry not showing up; LP: #433386.
* Wrap build-deps and deps to get cleaner diffs.
* Bump up Standards-Version to 3.8.3; no change needed.
* Enhance short descriptions slightly.
* Add shlibs:Depends and misc:Depends to liblauncher-dev.
* Build-dep on libglib2.0-dev.
* Let liblauncher-dev dep on libglib2.0-dev, libgtk2.0-dev, libwnck-dev,
  libgnome-menu-dev as their .pcs are referenced in launcher.pc.
* rules: add .PHONY and use $@ in clean:.
* debian/synbols: use 0.1.7~ in versions instead of 0.1.7-0ubuntu1.
* Use dh_prep instead of dh_clean -k.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include <glib.h>
24
24
#include <glib-object.h>
25
25
#include <gdk/gdk.h>
26
 
#include "launcher-application.h"
 
26
 
27
27
G_BEGIN_DECLS
28
28
 
29
 
#define LAUNCHER_TYPE_CATEGORY (launcher_category_get_type ())
 
29
#define LAUNCHER_TYPE_CATEGORY  (launcher_category_get_type ())
30
30
 
31
 
#define LAUNCHER_CATEGORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
32
 
        LAUNCHER_TYPE_CATEGORY, LauncherCategory))
33
 
        
34
 
#define LAUNCHER_CATEGORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \
35
 
        LAUNCHER_TYPE_CATEGORY, LauncherCategoryClass))
36
 
        
37
 
#define LAUNCHER_IS_CATEGORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
38
 
        LAUNCHER_TYPE_CATEGORY))
39
 
        
40
 
#define LAUNCHER_IS_CATEGORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
41
 
        LAUNCHER_TYPE_CATEGORY))
42
 
        
43
 
#define LAUNCHER_CATEGORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
44
 
        LAUNCHER_TYPE_CATEGORY, LauncherCategoryClass))
45
 
        
46
31
typedef struct _LauncherCategory LauncherCategory;
47
 
typedef struct _LauncherCategoryClass LauncherCategoryClass;
48
 
typedef struct _LauncherCategoryPrivate LauncherCategoryPrivate;
49
 
 
50
 
struct _LauncherCategory
51
 
{
52
 
  GObject parent_instance;
53
 
 
54
 
  /* Private */
55
 
  LauncherCategoryPrivate *priv;
56
 
};
57
 
 
58
 
 
59
 
struct _LauncherCategoryClass
60
 
{
61
 
  GObjectClass parent_class;
62
 
 
63
 
  /* Signals */
64
 
  void(* removed)               (LauncherCategory *self);
65
 
  void(* application_added)     (LauncherCategory *self, 
66
 
                                 LauncherApplication *application);
67
 
  void(* application_removed)   (LauncherCategory *self, 
68
 
                                 LauncherApplication *application);
69
 
};
70
 
 
71
 
 
72
 
 
73
 
 
74
 
 
75
 
LauncherCategory * launcher_category_new   (const gchar *name,
 
32
 
 
33
GType          launcher_category_get_type      (void) G_GNUC_CONST;
 
34
 
 
35
LauncherCategory * launcher_category_new           (const gchar *name,
76
36
                                            const gchar *comment,
77
37
                                            const gchar *icon_name);
78
 
                                            
 
38
 
 
39
void           launcher_category_free          (LauncherCategory *category);
 
40
 
79
41
const gchar *  launcher_category_get_name      (LauncherCategory *category);
80
42
 
81
43
const gchar *  launcher_category_get_comment   (LauncherCategory *category);
82
44
 
83
45
const gchar *  launcher_category_get_icon_name (LauncherCategory *category);
84
46
 
85
 
void           launcher_category_add_application     (LauncherCategory *category,
86
 
                                                      LauncherApplication *application);
87
 
                                                      
88
 
void           launcher_category_remove_application  (LauncherCategory *category,
89
 
                                                      LauncherApplication *application);
90
 
 
91
 
GSList      *  launcher_category_get_applications    (LauncherCategory *category);
92
 
 
93
 
void           launcher_category_empty_applications  (LauncherCategory *category);
94
 
 
95
 
void           launcher_category_sort_applications   (LauncherCategory *category,
96
 
                                                      GCompareFunc      sort_func);
 
47
void           launcher_category_append_child  (LauncherCategory *category,
 
48
                                            gpointer     child);
 
49
void           launcher_category_sort_children (LauncherCategory *category,
 
50
                                                GCompareFunc      sort_func);
 
51
 
 
52
 
 
53
GSList      *  launcher_category_get_children  (LauncherCategory *category);
 
54
 
 
55
void           launcher_category_empty_children (LauncherCategory *category);
97
56
 
98
57
G_END_DECLS
99
58