[gtksourceview/gnome-3-8] Completion: avoid flickering of the popup window
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/gnome-3-8] Completion: avoid flickering of the popup window
- Date: Sun, 7 Jul 2013 09:50:04 +0000 (UTC)
commit 851ccf8df15b7a34fab41b25a332e76434d6a8ca
Author: Sébastien Wilmet <swilmet gnome org>
Date: Thu Jun 13 23:03:11 2013 +0200
Completion: avoid flickering of the popup window
Update window position before showing the window.
gtksourceview/gtksourcecompletion.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtksourceview/gtksourcecompletion.c b/gtksourceview/gtksourcecompletion.c
index d7fe70b..687a9ee 100644
--- a/gtksourceview/gtksourcecompletion.c
+++ b/gtksourceview/gtksourcecompletion.c
@@ -1371,14 +1371,14 @@ populating_done (GtkSourceCompletion *completion,
update_selection_label (completion);
- if (!gtk_widget_get_visible (GTK_WIDGET (completion->priv->main_window)))
+ if (!check_first_selected (completion))
{
- g_signal_emit (completion, signals[SHOW], 0);
+ update_window_position (completion);
}
- if (!check_first_selected (completion))
+ if (!gtk_widget_get_visible (GTK_WIDGET (completion->priv->main_window)))
{
- update_window_position (completion);
+ g_signal_emit (completion, signals[SHOW], 0);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]