[Xfce4-commits] [apps/xfce4-dict] 42/43: Set main entry text from IPC calls
noreply at xfce.org
noreply at xfce.org
Tue Nov 1 00:31:55 CET 2016
This is an automated email from the git hooks/post-receive script.
andre pushed a commit to branch master
in repository apps/xfce4-dict.
commit 92ca4011380853795c4f4bac4ac775e0a9c62bb0
Author: Andre Miranda <andre42m at gmail.com>
Date: Sun Oct 23 13:02:12 2016 -0300
Set main entry text from IPC calls
---
lib/common.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/lib/common.c b/lib/common.c
index 271482c..cfad1f0 100644
--- a/lib/common.c
+++ b/lib/common.c
@@ -218,7 +218,7 @@ void dict_search_word(DictData *dd, const gchar *word)
/* sanity checks */
if (! NZV(word))
{
- /* Just show the main window */
+ /* just show the main window */
dict_gui_show_main_window(dd);
return;
}
@@ -234,13 +234,15 @@ void dict_search_word(DictData *dd, const gchar *word)
dict_gui_set_panel_entry_text(dd, "");
return;
}
- gtk_entry_set_text(GTK_ENTRY(dd->main_entry), dd->searched_word);
- dict_gui_set_panel_entry_text(dd, dd->searched_word);
}
else
{
dd->searched_word = g_strdup(word);
}
+
+ /* Set the main entry text */
+ gtk_entry_set_text(GTK_ENTRY(dd->main_entry), dd->searched_word);
+
/* remove leading and trailing spaces */
g_strstrip(dd->searched_word);
gtk_combo_box_text_prepend_text(GTK_COMBO_BOX_TEXT(dd->main_combo), dd->searched_word);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list