r2856 - in trunk/src/target/OM-2007.2/libraries/libmokoui2: . libmokoui

zecke at sita.openmoko.org zecke at sita.openmoko.org
Thu Aug 30 12:44:38 CEST 2007


Author: zecke
Date: 2007-08-30 12:44:37 +0200 (Thu, 30 Aug 2007)
New Revision: 2856

Modified:
   trunk/src/target/OM-2007.2/libraries/libmokoui2/ChangeLog
   trunk/src/target/OM-2007.2/libraries/libmokoui2/libmokoui/moko-search-bar.h
Log:
2007-08-30  Holger Hans Peter Freyther  <zecke at selfish.org>

        Change the header file to be parsable by h2def.py, which will
        reduce the manual work needed to create bindings.

        * libmokoui/moko-search-bar.h:



Modified: trunk/src/target/OM-2007.2/libraries/libmokoui2/ChangeLog
===================================================================
--- trunk/src/target/OM-2007.2/libraries/libmokoui2/ChangeLog	2007-08-30 07:13:11 UTC (rev 2855)
+++ trunk/src/target/OM-2007.2/libraries/libmokoui2/ChangeLog	2007-08-30 10:44:37 UTC (rev 2856)
@@ -1,3 +1,10 @@
+2007-08-30  Holger Hans Peter Freyther  <zecke at selfish.org>
+
+        Change the header file to be parsable by h2def.py, which will
+        reduce the manual work needed to create bindings.
+
+        * libmokoui/moko-search-bar.h:
+
 2007-08-29  Chris Lord,,,  <chris at openedhand.com>
 
 	* libmokoui/moko-finger-scroll.c: (moko_finger_scroll_refresh),

Modified: trunk/src/target/OM-2007.2/libraries/libmokoui2/libmokoui/moko-search-bar.h
===================================================================
--- trunk/src/target/OM-2007.2/libraries/libmokoui2/libmokoui/moko-search-bar.h	2007-08-30 07:13:11 UTC (rev 2855)
+++ trunk/src/target/OM-2007.2/libraries/libmokoui2/libmokoui/moko-search-bar.h	2007-08-30 10:44:37 UTC (rev 2856)
@@ -25,33 +25,21 @@
 
 G_BEGIN_DECLS
 
-#define MOKO_TYPE_SEARCH_BAR moko_search_bar_get_type()
+#define MOKO_TYPE_SEARCH_BAR            moko_search_bar_get_type()
+#define MOKO_SEARCH_BAR(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), MOKO_TYPE_SEARCH_BAR, MokoSearchBar))
+#define MOKO_SEARCH_BAR_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass),  MOKO_TYPE_SEARCH_BAR, MokoSearchBarClass))
+#define MOKO_IS_SEARCH_BAR(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MOKO_TYPE_SEARCH_BAR))
+#define MOKO_IS_SEARCH_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),  MOKO_TYPE_SEARCH_BAR))
+#define MOKO_SEARCH_BAR_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj),  MOKO_TYPE_SEARCH_BAR, MokoSearchBarClass))
 
-#define MOKO_SEARCH_BAR(obj) \
-	(G_TYPE_CHECK_INSTANCE_CAST ((obj), \
-	MOKO_TYPE_SEARCH_BAR, MokoSearchBar))
+typedef struct _MokoSearchBar MokoSearchBar;
+typedef struct _MokoSearchBarClass MokoSearchBarClass;
 
-#define MOKO_SEARCH_BAR_CLASS(klass) \
-	(G_TYPE_CHECK_CLASS_CAST ((klass), \
-	MOKO_TYPE_SEARCH_BAR, MokoSearchBarClass))
-
-#define MOKO_IS_SEARCH_BAR(obj) \
-	(G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
-	MOKO_TYPE_SEARCH_BAR))
-
-#define MOKO_IS_SEARCH_BAR_CLASS(klass) \
-	(G_TYPE_CHECK_CLASS_TYPE ((klass), \
-	MOKO_TYPE_SEARCH_BAR))
-
-#define MOKO_SEARCH_BAR_GET_CLASS(obj) \
-	(G_TYPE_INSTANCE_GET_CLASS ((obj), \
-	MOKO_TYPE_SEARCH_BAR, MokoSearchBarClass))
-
-typedef struct {
+struct _MokoSearchBar {
 	GtkHBox parent;
-} MokoSearchBar;
+};
 
-typedef struct {
+struct _MokoSearchBarClass {
 	GtkHBoxClass parent_class;
 
 	/* Signals */
@@ -61,7 +49,7 @@
 					 GtkEditable *editable);
 	void	(*category_changed)	(MokoSearchBar *self,
 					 GtkComboBox *combo_box);
-} MokoSearchBarClass;
+};
 
 GType moko_search_bar_get_type (void);
 





More information about the commitlog mailing list