summaryrefslogtreecommitdiff
path: root/libslab/search-bar.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2018-01-12 12:11:21 +0300
committermonsta <[email protected]>2018-01-12 12:11:21 +0300
commit172e05f957cfcf4b94c469f9b0933ce414faaf8a (patch)
tree458015f8704b119c9c1885f3aed7eac8d2ed874b /libslab/search-bar.c
parentafcb324eb181a9c6cb0b3c8e8589ed99391a63a0 (diff)
downloadmate-control-center-172e05f957cfcf4b94c469f9b0933ce414faaf8a.tar.bz2
mate-control-center-172e05f957cfcf4b94c469f9b0933ce414faaf8a.tar.xz
libslab: store search entry widget as GtkEntry
make afcb324eb181a9c6cb0b3c8e8589ed99391a63a0 simpler
Diffstat (limited to 'libslab/search-bar.c')
-rw-r--r--libslab/search-bar.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libslab/search-bar.c b/libslab/search-bar.c
index 7645c0fa..9a734ec0 100644
--- a/libslab/search-bar.c
+++ b/libslab/search-bar.c
@@ -30,7 +30,7 @@ typedef struct
{
GtkWidget *hbox;
NldSearchContextPicker *context_picker;
- GtkSearchEntry *entry;
+ GtkEntry *entry;
GtkWidget *button;
int search_timeout;
@@ -94,7 +94,7 @@ nld_search_bar_init (NldSearchBar * search_bar)
entry = gtk_search_entry_new ();
gtk_widget_set_halign (entry, GTK_ALIGN_START);
gtk_widget_set_valign (entry, GTK_ALIGN_CENTER);
- priv->entry = GTK_SEARCH_ENTRY (entry);
+ priv->entry = GTK_ENTRY (entry);
gtk_widget_show (entry);
gtk_box_pack_start (GTK_BOX (priv->hbox), entry, TRUE, TRUE, 0);
@@ -150,7 +150,7 @@ nld_search_bar_clear (NldSearchBar * search_bar)
NldSearchBarPrivate *priv = NLD_SEARCH_BAR_GET_PRIVATE (search_bar);
priv->block_signal = TRUE;
- gtk_entry_set_text (GTK_ENTRY (priv->entry), "");
+ gtk_entry_set_text (priv->entry, "");
if (priv->context_picker)
nld_search_context_picker_set_context (priv->context_picker, 0);
priv->block_signal = FALSE;
@@ -324,7 +324,7 @@ nld_search_bar_get_text (NldSearchBar * search_bar)
{
NldSearchBarPrivate *priv = NLD_SEARCH_BAR_GET_PRIVATE (search_bar);
- return gtk_entry_get_text (GTK_ENTRY (priv->entry));
+ return gtk_entry_get_text (priv->entry);
}
void
@@ -332,7 +332,7 @@ nld_search_bar_set_text (NldSearchBar * search_bar, const char *text, gboolean a
{
NldSearchBarPrivate *priv = NLD_SEARCH_BAR_GET_PRIVATE (search_bar);
- gtk_entry_set_text (GTK_ENTRY (priv->entry), text);
+ gtk_entry_set_text (priv->entry, text);
if (activate)
emit_search (search_bar);
}