[gtksourceview] Completion: fix small bug with the details button
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Completion: fix small bug with the details button
- Date: Sun, 24 Feb 2013 14:25:50 +0000 (UTC)
commit 58ee5204ec3977ae08725f42770a62775f980089
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sun Feb 24 14:51:33 2013 +0100
Completion: fix small bug with the details button
gtksourceview/gtksourcecompletion.c | 18 +++++++++++++-----
1 files changed, 13 insertions(+), 5 deletions(-)
---
diff --git a/gtksourceview/gtksourcecompletion.c b/gtksourceview/gtksourcecompletion.c
index 5c2a41e..98a631a 100644
--- a/gtksourceview/gtksourcecompletion.c
+++ b/gtksourceview/gtksourcecompletion.c
@@ -1594,11 +1594,6 @@ reset_completion (GtkSourceCompletion *completion)
g_list_free (completion->priv->active_providers);
completion->priv->running_providers = NULL;
completion->priv->active_providers = NULL;
-
- if (!completion->priv->remember_info_visibility)
- {
- gtk_toggle_button_set_active (completion->priv->info_button, FALSE);
- }
}
static void
@@ -1760,6 +1755,19 @@ gtk_source_completion_show_default (GtkSourceCompletion *completion)
}
gtk_widget_show (GTK_WIDGET (completion->priv->main_window));
+
+ if (completion->priv->remember_info_visibility)
+ {
+ if (gtk_toggle_button_get_active (completion->priv->info_button))
+ {
+ gtk_widget_show (GTK_WIDGET (completion->priv->info_window));
+ }
+ }
+ else
+ {
+ gtk_toggle_button_set_active (completion->priv->info_button, FALSE);
+ }
+
gtk_widget_grab_focus (GTK_WIDGET (completion->priv->view));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]