[gnome-latex: 59/205] Take into account the show_side_pane key in the preferences
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-latex: 59/205] Take into account the show_side_pane key in the preferences
- Date: Fri, 14 Dec 2018 10:51:50 +0000 (UTC)
commit 4332d13c2ab2b04a8b32503fce0462e3cb3b90f5
Author: Sébastien Wilmet <sebastien wilmet gmail com>
Date: Sat Sep 12 20:25:27 2009 +0200
Take into account the show_side_pane key in the preferences
I've forgotten this...
src/callbacks.c | 3 ++-
src/main.c | 3 +++
2 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/callbacks.c b/src/callbacks.c
index bcd8024..25f845a 100644
--- a/src/callbacks.c
+++ b/src/callbacks.c
@@ -852,7 +852,8 @@ cb_show_symbol_tables (GtkToggleAction *toggle_action, gpointer user_data)
if (latexila.symbols == NULL || latexila.symbols->vbox == NULL)
return;
- if (gtk_toggle_action_get_active (toggle_action))
+ latexila.prefs->show_side_pane = gtk_toggle_action_get_active (toggle_action);
+ if (latexila.prefs->show_side_pane)
gtk_widget_show_all (latexila.symbols->vbox);
else
gtk_widget_hide (latexila.symbols->vbox);
diff --git a/src/main.c b/src/main.c
index 6ff2296..247e570 100644
--- a/src/main.c
+++ b/src/main.c
@@ -277,6 +277,9 @@ main (int argc, char *argv[])
/* show the window */
gtk_widget_show_all (window);
+ if (! latexila.prefs->show_side_pane)
+ gtk_widget_hide (latexila.symbols->vbox);
+
/* open documents given in arguments */
for (int i = 1 ; i < argc ; i++)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]