[gtksourceview] Completion: remove info_visible struct field
- From: SÃbastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Completion: remove info_visible struct field
- Date: Fri, 15 Feb 2013 22:05:24 +0000 (UTC)
commit c84e302dbab9a63a3aaa28a7bca890f60b6650e9
Author: SÃbastien Wilmet <swilmet gnome org>
Date: Fri Feb 15 22:32:09 2013 +0100
Completion: remove info_visible struct field
The value is kept in the 'active' property of the Details button.
gtksourceview/gtksourcecompletion.c | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/gtksourceview/gtksourcecompletion.c b/gtksourceview/gtksourcecompletion.c
index a8aeffe..6ef9174 100644
--- a/gtksourceview/gtksourcecompletion.c
+++ b/gtksourceview/gtksourcecompletion.c
@@ -223,7 +223,6 @@ struct _GtkSourceCompletionPrivate
* Others
*********/
- guint info_visible : 1;
guint select_first : 1;
};
@@ -2050,9 +2049,6 @@ reset_completion (GtkSourceCompletion *completion)
completion->priv->active_providers = NULL;
completion->priv->select_first = FALSE;
-
- completion->priv->info_visible =
- gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (completion->priv->info_button));
}
static void
@@ -3057,12 +3053,9 @@ populating_done (GtkSourceCompletion *completion,
{
if (!completion->priv->remember_info_visibility)
{
- completion->priv->info_visible = FALSE;
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON
(completion->priv->info_button), FALSE);
}
- gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (completion->priv->info_button),
- completion->priv->info_visible);
-
DEBUG({
g_print ("Emitting show\n");
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]