[giggle] src/giggle-short-list.h: Add instance structure
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [giggle] src/giggle-short-list.h: Add instance structure
- Date: Tue, 23 Nov 2010 05:31:14 +0000 (UTC)
commit 8b3f136e61c774db67727544a24c58d38c610f00
Author: Javier Jardón <jjardon gnome org>
Date: Tue Nov 23 04:01:04 2010 +0100
src/giggle-short-list.h: Add instance structure
src/giggle-short-list.h | 35 ++++++++++++++++++++---------------
1 files changed, 20 insertions(+), 15 deletions(-)
---
diff --git a/src/giggle-short-list.h b/src/giggle-short-list.h
index 5069474..866adc7 100644
--- a/src/giggle-short-list.h
+++ b/src/giggle-short-list.h
@@ -25,6 +25,11 @@
G_BEGIN_DECLS
+enum {
+ GIGGLE_SHORT_LIST_COL_OBJECT,
+ GIGGLE_SHORT_LIST_N_COLUMNS
+};
+
#define GIGGLE_TYPE_SHORT_LIST (giggle_short_list_get_type ())
#define GIGGLE_SHORT_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIGGLE_TYPE_SHORT_LIST, GiggleShortList))
#define GIGGLE_SHORT_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIGGLE_TYPE_SHORT_LIST, GiggleShortListClass))
@@ -32,28 +37,28 @@ G_BEGIN_DECLS
#define GIGGLE_IS_SHORT_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIGGLE_TYPE_SHORT_LIST))
#define GIGGLE_SHORT_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIGGLE_TYPE_SHORT_LIST, GiggleShortListClass))
-typedef GtkVBox GiggleShortList;
-typedef struct GiggleShortListClass GiggleShortListClass;
-
-GType giggle_short_list_get_type (void);
-
-GtkTreeModel *giggle_short_list_get_model (GiggleShortList *short_list);
-void giggle_short_list_set_model (GiggleShortList *short_list,
- GtkTreeModel *model);
+typedef struct _GiggleShortList GiggleShortList;
+typedef struct _GiggleShortListClass GiggleShortListClass;
+struct _GiggleShortList {
+ GtkVBox parent_instance;
+};
-struct GiggleShortListClass {
- GtkVBoxClass vbox_class;
+struct _GiggleShortListClass {
+ GtkVBoxClass parent_class;
/* signals */
gchar* (*display_object) (GiggleShortList* self,
- GObject * object);
+ GObject * object);
};
-enum {
- GIGGLE_SHORT_LIST_COL_OBJECT,
- GIGGLE_SHORT_LIST_N_COLUMNS
-};
+
+GType giggle_short_list_get_type (void);
+
+GtkTreeModel *giggle_short_list_get_model (GiggleShortList *short_list);
+void giggle_short_list_set_model (GiggleShortList *short_list,
+ GtkTreeModel *model);
+
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]