- GObjectClass *object_class;
-
- g_type_class_add_private(klass, sizeof(HildonFindToolbarPrivate));
-
- object_class = G_OBJECT_CLASS(klass);
-
- object_class->get_property = hildon_find_toolbar_get_property;
- object_class->set_property = hildon_find_toolbar_set_property;
-
- klass->history_append = (gpointer) hildon_find_toolbar_history_append;
-
- g_object_class_install_property(object_class, PROP_LABEL,
- g_param_spec_string("label",
- "Label", "Displayed name for"
- " find-toolbar",
- _("ecdg_ti_find_toolbar_label"),
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT));
-
- g_object_class_install_property(object_class, PROP_PREFIX,
- g_param_spec_string("prefix",
- "Prefix", "Search string", NULL,
- G_PARAM_READWRITE));
-
- g_object_class_install_property(object_class, PROP_LIST,
- g_param_spec_object("list",
- "List"," GtkListStore model where "
- "history list is kept",
- GTK_TYPE_LIST_STORE,
- G_PARAM_READWRITE));
-
- g_object_class_install_property(object_class, PROP_COLUMN,
- g_param_spec_int("column",
- "Column", "Column number in GtkListStore "
- "where history list strings are kept",
- 0, G_MAXINT,
- 0, G_PARAM_READWRITE));
-
- g_object_class_install_property(object_class, PROP_MAX,
- g_param_spec_int("max_characters",
- "Maximum number of characters",
- "Maximum number of characters "
- "in search string",
- 0, MAX_SIZE,
- 0, G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT));
-
- g_object_class_install_property(object_class, PROP_HISTORY_LIMIT,
- g_param_spec_int("history_limit",
- "Maximum number of history items",
- "Maximum number of history items "
- "in search combobox",
- 0, G_MAXINT,
- 5, G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT));
-
- /**
- * HildonFindToolbar::search:
- * @toolbar: the toolbar which received the signal
- *
- * Gets emitted when the find button is pressed.
- */
- HildonFindToolbar_signal[SEARCH] =
- g_signal_new(
- "search", HILDON_TYPE_FIND_TOOLBAR,
- G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET
- (HildonFindToolbarClass, search),
- NULL, NULL, gtk_marshal_VOID__VOID,
- G_TYPE_NONE, 0);
-
- /**
- * HildonFindToolbar::close:
- * @toolbar: the toolbar which received the signal
- *
- * Gets emitted when the close button is pressed.
- */
- HildonFindToolbar_signal[CLOSE] =
- g_signal_new(
- "close", HILDON_TYPE_FIND_TOOLBAR,
- G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET
- (HildonFindToolbarClass, close),
- NULL, NULL, gtk_marshal_VOID__VOID,
- G_TYPE_NONE, 0);
-
- /**
- * HildonFindToolbar::invalid-input:
- * @toolbar: the toolbar which received the signal
- *
- * Gets emitted when the maximum search prefix length is reached and
- * user tries to type more.
- */
- HildonFindToolbar_signal[INVALID_INPUT] =
- g_signal_new(
- "invalid_input", HILDON_TYPE_FIND_TOOLBAR,
- G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET
- (HildonFindToolbarClass, invalid_input),
- NULL, NULL, gtk_marshal_VOID__VOID,
- G_TYPE_NONE, 0);
-
- /**
- * HildonFindToolbar::history-append:
- * @toolbar: the toolbar which received the signal
- *
- * Gets emitted when the current search prefix should be added to history.
- */
- HildonFindToolbar_signal[HISTORY_APPEND] =
- g_signal_new(
- "history_append", HILDON_TYPE_FIND_TOOLBAR,
- G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET
- (HildonFindToolbarClass, history_append),
- g_signal_accumulator_true_handled, NULL,
- gtk_marshal_BOOLEAN__VOID,
- G_TYPE_BOOLEAN, 0);
+ GObjectClass *object_class;
+
+ g_type_class_add_private (klass, sizeof (HildonFindToolbarPrivate));
+
+ object_class = G_OBJECT_CLASS(klass);
+
+ object_class->get_property = hildon_find_toolbar_get_property;
+ object_class->set_property = hildon_find_toolbar_set_property;
+
+ klass->history_append = (gpointer) hildon_find_toolbar_history_append;
+
+ /**
+ * HildonFindToolbar:label:
+ *
+ * The label to display before the search box.
+ *
+ */
+ g_object_class_install_property (object_class, PROP_LABEL,
+ g_param_spec_string ("label",
+ "Label", "Displayed name for"
+ " find-toolbar",
+ _("ecdg_ti_find_toolbar_label"),
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT));
+
+ /**
+ * HildonFindToolbar:label:
+ *
+ * The label to display before the search box.
+ *
+ */
+ g_object_class_install_property (object_class, PROP_PREFIX,
+ g_param_spec_string ("prefix",
+ "Prefix", "Search string", NULL,
+ G_PARAM_READWRITE));
+
+ /**
+ * HildonFindToolbar:list:
+ *
+ * A #GtkListStore where the search history is kept.
+ *
+ */
+ g_object_class_install_property (object_class, PROP_LIST,
+ g_param_spec_object ("list",
+ "List"," GtkListStore model where "
+ "history list is kept",
+ GTK_TYPE_LIST_STORE,
+ G_PARAM_READWRITE));
+
+ /**
+ * HildonFindToolbar:column:
+ *
+ * The column number in GtkListStore where strings of
+ * search history are kept.
+ *
+ */
+ g_object_class_install_property(object_class, PROP_COLUMN,
+ g_param_spec_int ("column",
+ "Column", "Column number in GtkListStore "
+ "where history list strings are kept",
+ 0, G_MAXINT,
+ 0, G_PARAM_READWRITE));
+
+ /**
+ * HildonFindToolbar:label:
+ *
+ * The label to display before the search box.
+ *
+ */
+ g_object_class_install_property (object_class, PROP_MAX,
+ g_param_spec_int ("max_characters",
+ "Maximum number of characters",
+ "Maximum number of characters "
+ "in search string",
+ 0, MAX_SIZE,
+ 0, G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT));
+
+ /**
+ * HildonFindToolbar:history-limit:
+ *
+ * Maximum number of history items in the combobox.
+ *
+ */
+ g_object_class_install_property (object_class, PROP_HISTORY_LIMIT,
+ g_param_spec_int ("history-limit",
+ "Maximum number of history items",
+ "Maximum number of history items "
+ "in search combobox",
+ 0, G_MAXINT,
+ 5, G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT));
+
+ /**
+ * HildonFindToolbar::search:
+ * @toolbar: the toolbar which received the signal
+ *
+ * Gets emitted when the find button is pressed.
+ */
+ HildonFindToolbar_signal[SEARCH] =
+ g_signal_new(
+ "search", HILDON_TYPE_FIND_TOOLBAR,
+ G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET
+ (HildonFindToolbarClass, search),
+ NULL, NULL, g_cclosure_marshal_VOID__VOID,
+ G_TYPE_NONE, 0);
+
+ /**
+ * HildonFindToolbar::close:
+ * @toolbar: the toolbar which received the signal
+ *
+ * Gets emitted when the close button is pressed.
+ */
+ HildonFindToolbar_signal[CLOSE] =
+ g_signal_new(
+ "close", HILDON_TYPE_FIND_TOOLBAR,
+ G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET
+ (HildonFindToolbarClass, close),
+ NULL, NULL, g_cclosure_marshal_VOID__VOID,
+ G_TYPE_NONE, 0);
+
+ /**
+ * HildonFindToolbar::invalid-input:
+ * @toolbar: the toolbar which received the signal
+ *
+ * Gets emitted when the maximum search prefix length is reached and
+ * user tries to type more.
+ */
+ HildonFindToolbar_signal[INVALID_INPUT] =
+ g_signal_new(
+ "invalid_input", HILDON_TYPE_FIND_TOOLBAR,
+ G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET
+ (HildonFindToolbarClass, invalid_input),
+ NULL, NULL, g_cclosure_marshal_VOID__VOID,
+ G_TYPE_NONE, 0);
+
+ /**
+ * HildonFindToolbar::history-append:
+ * @toolbar: the toolbar which received the signal
+ *
+ * Gets emitted when the current search prefix should be added to history.
+ */
+ HildonFindToolbar_signal[HISTORY_APPEND] =
+ g_signal_new(
+ "history_append", HILDON_TYPE_FIND_TOOLBAR,
+ G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET
+ (HildonFindToolbarClass, history_append),
+ g_signal_accumulator_true_handled, NULL,
+ _hildon_marshal_BOOLEAN__VOID,
+ G_TYPE_BOOLEAN, 0);