[gtksourceview/gtksourcecompletion] Do not handle selection changes when the completion window is invisible
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtksourceview/gtksourcecompletion] Do not handle selection changes when the completion window is invisible
- Date: Sat, 19 Sep 2009 16:33:18 +0000 (UTC)
commit cd3796b59b1d4746476b9ab8c70a961f9ee42560
Author: Jesse van den Kieboom <jessevdk gnome org>
Date: Sat Sep 19 18:32:36 2009 +0200
Do not handle selection changes when the completion window is invisible
This fixes some bugs when hiding the completion window which were
triggered by clearing the model
gtksourceview/gtksourcecompletion.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gtksourceview/gtksourcecompletion.c b/gtksourceview/gtksourcecompletion.c
index 375560c..b20ad33 100644
--- a/gtksourceview/gtksourcecompletion.c
+++ b/gtksourceview/gtksourcecompletion.c
@@ -911,6 +911,11 @@ static void
selection_changed_cb (GtkTreeSelection *selection,
GtkSourceCompletion *completion)
{
+ if (!GTK_WIDGET_VISIBLE (completion->priv->window))
+ {
+ return;
+ }
+
if (get_selected_proposal (completion, NULL, NULL))
{
completion->priv->select_first = FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]