[easytag] Move log area visible logic to EtApplicationWindow



commit ba97e21c7138947b352b3174a2cecbca7f5c172b
Author: David King <amigadave amigadave com>
Date:   Wed Oct 29 19:08:54 2014 +0000

    Move log area visible logic to EtApplicationWindow

 src/application_window.c |    2 ++
 src/log.c                |    3 ---
 2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/application_window.c b/src/application_window.c
index f5c6a0a..481e18f 100644
--- a/src/application_window.c
+++ b/src/application_window.c
@@ -1719,6 +1719,8 @@ et_application_window_init (EtApplicationWindow *self)
     /* Log */
     priv->log_area = et_log_area_new ();
     gtk_paned_pack2 (GTK_PANED (priv->vpaned), priv->log_area, FALSE, TRUE);
+    g_settings_bind (MainSettings, "log-show", priv->log_area, "visible",
+                     G_SETTINGS_BIND_DEFAULT);
 
     /* Horizontal box for Status bar + Progress bar */
     hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
diff --git a/src/log.c b/src/log.c
index 4df46e9..bc8c7fa 100644
--- a/src/log.c
+++ b/src/log.c
@@ -201,9 +201,6 @@ et_log_area_init (EtLogArea *self)
 
     /* Load pending messages in the Log list. */
     Log_Print_Tmp_List (self);
-
-    g_settings_bind (MainSettings, "log-show", self, "visible",
-                     G_SETTINGS_BIND_DEFAULT);
 }
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]