[gtksourceview] Completion: avoid flickering of the popup window
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Completion: avoid flickering of the popup window
- Date: Thu, 13 Jun 2013 21:04:34 +0000 (UTC)
commit 3cdb3cf5fa75f4ab949b5cbbef5fb21e9b494e61
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 | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gtksourceview/gtksourcecompletion.c b/gtksourceview/gtksourcecompletion.c
index fcbdd0a..f012fb1 100644
--- a/gtksourceview/gtksourcecompletion.c
+++ b/gtksourceview/gtksourcecompletion.c
@@ -1472,11 +1472,6 @@ populating_done (GtkSourceCompletion *completion,
update_selection_label (completion);
update_bottom_bar_visibility (completion);
- if (!gtk_widget_get_visible (GTK_WIDGET (completion->priv->main_window)))
- {
- g_signal_emit (completion, signals[SHOW], 0);
- }
-
if (!check_first_selected (completion))
{
/* Update the window position only if the first proposal is not
@@ -1485,6 +1480,11 @@ populating_done (GtkSourceCompletion *completion,
*/
update_window_position (completion);
}
+
+ if (!gtk_widget_get_visible (GTK_WIDGET (completion->priv->main_window)))
+ {
+ g_signal_emit (completion, signals[SHOW], 0);
+ }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]