aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-search.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-01-17 02:24:31 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:41:19 +0800
commitdfc4205ce569594e83772ac8e0c04f5ca8c2a019 (patch)
tree5c8eac525f7468f36781c74b1730431950cc7df6 /widgets/table/e-table-search.h
parent30a590ae89a3fbba28a2296606dd7141136b5f21 (diff)
downloadgsoc2013-evolution-dfc4205ce569594e83772ac8e0c04f5ca8c2a019.tar.gz
gsoc2013-evolution-dfc4205ce569594e83772ac8e0c04f5ca8c2a019.tar.zst
gsoc2013-evolution-dfc4205ce569594e83772ac8e0c04f5ca8c2a019.zip
libetable cleanups.
Diffstat (limited to 'widgets/table/e-table-search.h')
-rw-r--r--widgets/table/e-table-search.h63
1 files changed, 37 insertions, 26 deletions
diff --git a/widgets/table/e-table-search.h b/widgets/table/e-table-search.h
index 798d81bd2d..ecd56a5d72 100644
--- a/widgets/table/e-table-search.h
+++ b/widgets/table/e-table-search.h
@@ -26,45 +26,56 @@
#include <glib-object.h>
-G_BEGIN_DECLS
+/* Standard GObject macros */
+#define E_TYPE_TABLE_SEARCH \
+ (e_table_search_get_type ())
+#define E_TABLE_SEARCH(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST \
+ ((obj), E_TYPE_TABLE_SEARCH, ETableSearch))
+#define E_TABLE_SEARCH_CLASS(cls) \
+ (G_TYPE_CHECK_CLASS_CAST \
+ ((cls), E_TYPE_TABLE_SEARCH, ETableSearchClass))
+#define E_IS_TABLE_SEARCH(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE \
+ ((obj), E_TYPE_TABLE_SEARCH))
+#define E_IS_TABLE_SEARCH_CLASS(cls) \
+ (G_TYPE_CHECK_CLASS_TYPE \
+ ((cls), E_TYPE_TABLE_SEARCH))
+#define E_TABLE_SEARCH_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS \
+ ((obj), E_TYPE_TABLE_SEARCH, ETableSearchClass))
-#define E_TABLE_SEARCH_TYPE (e_table_search_get_type ())
-#define E_TABLE_SEARCH(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), E_TABLE_SEARCH_TYPE, ETableSearch))
-#define E_TABLE_SEARCH_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), E_TABLE_SEARCH_TYPE, ETableSearchClass))
-#define E_IS_TABLE_SEARCH(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), E_TABLE_SEARCH_TYPE))
-#define E_IS_TABLE_SEARCH_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), E_TABLE_SEARCH_TYPE))
-#define E_TABLE_SEARCH_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS((o), E_TABLE_SEARCH_TYPE, ETableSearchClass))
+G_BEGIN_DECLS
+typedef struct _ETableSearch ETableSearch;
+typedef struct _ETableSearchClass ETableSearchClass;
typedef struct _ETableSearchPrivate ETableSearchPrivate;
typedef enum {
E_TABLE_SEARCH_FLAGS_CHECK_CURSOR_FIRST = 1 << 0
} ETableSearchFlags;
-typedef struct {
- GObject base;
-
+struct _ETableSearch {
+ GObject parent;
ETableSearchPrivate *priv;
-} ETableSearch;
+};
-typedef struct {
+struct _ETableSearchClass {
GObjectClass parent_class;
- /*
- * Signals
- */
- gboolean (*search) (ETableSearch *ets, gchar *string /* utf8 */, ETableSearchFlags flags);
- void (*accept) (ETableSearch *ets);
-} ETableSearchClass;
-
-GType e_table_search_get_type (void);
-ETableSearch *e_table_search_new (void);
+ /* Signals */
+ gboolean (*search) (ETableSearch *ets,
+ gchar *string /* utf8 */,
+ ETableSearchFlags flags);
+ void (*accept) (ETableSearch *ets);
+};
-/**/
-void e_table_search_input_character (ETableSearch *e_table_search,
- gunichar character);
-gboolean e_table_search_backspace (ETableSearch *e_table_search);
-void e_table_search_cancel (ETableSearch *e_table_search);
+GType e_table_search_get_type (void) G_GNUC_CONST;
+ETableSearch * e_table_search_new (void);
+void e_table_search_input_character (ETableSearch *e_table_search,
+ gunichar character);
+gboolean e_table_search_backspace (ETableSearch *e_table_search);
+void e_table_search_cancel (ETableSearch *e_table_search);
G_END_DECLS