[libdazzle] suggestions: Reorder text setting within suggestion activated
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] suggestions: Reorder text setting within suggestion activated
- Date: Tue, 31 Jul 2018 05:05:51 +0000 (UTC)
commit bbb412703edb2211180545337820bf1746a68444
Author: Jan-Michael Brummer <jan brummer tabos org>
Date: Sun Jul 29 18:18:58 2018 +0200
suggestions: Reorder text setting within suggestion activated
Clears text before signaling prevents accidential text removal.
Fixes: https://gitlab.gnome.org/GNOME/libdazzle/issues/17
src/suggestions/dzl-suggestion-entry.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/suggestions/dzl-suggestion-entry.c b/src/suggestions/dzl-suggestion-entry.c
index ea8db2e..2aa65bc 100644
--- a/src/suggestions/dzl-suggestion-entry.c
+++ b/src/suggestions/dzl-suggestion-entry.c
@@ -282,9 +282,9 @@ dzl_suggestion_entry_suggestion_activated (DzlSuggestionEntry *self,
g_assert (DZL_IS_SUGGESTION (suggestion));
g_assert (DZL_IS_SUGGESTION_POPOVER (popover));
+ gtk_entry_set_text (GTK_ENTRY (self), "");
g_signal_emit (self, signals [SUGGESTION_ACTIVATED], 0, suggestion);
g_signal_emit (self, signals [HIDE_SUGGESTIONS], 0);
- gtk_entry_set_text (GTK_ENTRY (self), "");
DZL_EXIT;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]