[libdazzle] suggestions: only request SHOW_POPOVER if we have focus
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] suggestions: only request SHOW_POPOVER if we have focus
- Date: Sun, 27 Jan 2019 20:38:19 +0000 (UTC)
commit a394f857b77482a4e74f662225573d7e92453f70
Author: Christian Hergert <chergert redhat com>
Date: Sun Jan 27 12:35:59 2019 -0800
suggestions: only request SHOW_POPOVER if we have focus
src/suggestions/dzl-suggestion-entry.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/suggestions/dzl-suggestion-entry.c b/src/suggestions/dzl-suggestion-entry.c
index a6d6861..4fb8382 100644
--- a/src/suggestions/dzl-suggestion-entry.c
+++ b/src/suggestions/dzl-suggestion-entry.c
@@ -755,7 +755,8 @@ dzl_suggestion_entry_set_model (DzlSuggestionEntry *self,
g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_MODEL]);
dzl_suggestion_entry_update_attrs (self);
- g_signal_emit (self, signals [SHOW_SUGGESTIONS], 0);
+ if (gtk_widget_has_focus (GTK_WIDGET (self)))
+ g_signal_emit (self, signals [SHOW_SUGGESTIONS], 0);
}
DZL_EXIT;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]