Top | ![]() |
![]() |
![]() |
![]() |
GtkWidget * | moko_search_bar_new () |
GtkWidget * | moko_search_bar_new_with_combo () |
GtkComboBox * | moko_search_bar_get_combo_box () |
GtkEntry * | moko_search_bar_get_entry () |
gboolean | moko_search_bar_search_visible () |
void | moko_search_bar_toggle () |
GObject ╰── GInitiallyUnowned ╰── GtkObject ╰── GtkWidget ╰── GtkContainer ╰── GtkBox ╰── GtkHBox ╰── MokoSearchBar
MokoSearchBar implements AtkImplementorIface, GtkBuildable and GtkOrientable.
The MokoSearchBar is a composite widget that implements the "Search Bar" user interface from OpenMoko. It comprises of a GtkEntry, a GtkComboBox and a GtkToggleButton that toggles the visibility of the entry and combo box.
GtkWidget *
moko_search_bar_new_with_combo (GtkComboBox *combo
);
Creates a MokoSearchBar with the specified combo box
GtkComboBox *
moko_search_bar_get_combo_box (MokoSearchBar *self
);
Get a pointer to the GtkComboBox being used in the MokoSearchBar
GtkEntry *
moko_search_bar_get_entry (MokoSearchBar *self
);
Retrieve the GtkEntry widget being used in the MokoSearchBar
gboolean
moko_search_bar_search_visible (MokoSearchBar *self
);
Determine the visibility of the search entry.
void
moko_search_bar_toggle (MokoSearchBar *self
);
Toggle the search button on the MokoSearchBar. This toggles the visibility of the combo box and entry widgets.
“combo”
property “combo” GtkComboBox *
The GtkComboBox to place inside the widget.
Flags: Read / Write / Construct Only
“combo-changed”
signalvoid user_function (MokoSearchBar *searchbar, GtkComboBox *combo, gpointer user_data)
The ::combo-changed signal is emitted each time the underlying GtkComboBox receives its ::changed signal.
searchbar |
The MokoSearchBar that received the signal |
|
combo |
The underlying GtkComboBox that received the ::changed signal. |
|
user_data |
User data set when the signal handler was connected. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“text-changed”
signalvoid user_function (MokoSearchBar *searchbar, gpointer editable, gpointer user_data)
The ::text-changed signal is emitted each time the underlying GtkEditable receives its ::changed signal.
searchbar |
The MokoSearchBar that received the signal |
|
editable |
The underlying GtkEditable that received the ::changed signal. |
|
user_data |
User data set when the signal handler was connected. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“toggled”
signalvoid user_function (MokoSearchBar *searchbar, gboolean search_visible, gpointer user_data)
The ::toggled signal is emitted each time the search button is pressed.
searchbar |
The MokoSearchBar that received the signal |
|
search_visible |
|
|
user_data |
User data set when the signal handler was connected. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last