[balsa/gtk3] Show or hide both the progress- and status-bars



commit 6f005898adec0365efa5099af3d7ec5c17f765e6
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Sat Aug 20 12:32:27 2011 -0400

    Show or hide both the progress- and status-bars
    
    	* src/main-window.h: add BalsaWindow::bottom_bar.
    	* src/main-window.c: use it to hide both the progress bar and
    	the status bar.

 ChangeLog         |    6 ++++++
 src/main-window.c |    4 ++--
 src/main-window.h |    1 +
 3 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 8a9013f..7787358 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2011-08-20  Peter Bloomfield
 
+	* src/main-window.h: add BalsaWindow::bottom_bar.
+	* src/main-window.c: use it to hide both the progress bar and
+	the status bar.
+
+2011-08-20  Peter Bloomfield
+
 	(lbav_ensure_blank_line): use gdk_threads_add_idle() for
 	convenience;
 	* libbalsa/address-view.c (lbav_ensure_blank_line_idle_cb): no
diff --git a/src/main-window.c b/src/main-window.c
index 26d5559..82fa49e 100644
--- a/src/main-window.c
+++ b/src/main-window.c
@@ -1737,7 +1737,7 @@ balsa_window_new()
      * need the UIManager. */
     g_object_unref(ui_manager);
 
-    hbox = gtk_hbox_new(FALSE, 6);
+    window->bottom_bar = hbox = gtk_hbox_new(FALSE, 6);
     gtk_box_pack_end(GTK_BOX(window->vbox), hbox, FALSE, FALSE, 0);
 
     window->progress_bar = gtk_progress_bar_new();
@@ -4122,7 +4122,7 @@ static void
 bw_show_statusbar_cb(GtkToggleAction * action, gpointer data)
 {
     bw_show_helper(action, &balsa_app.show_statusbar,
-                   BALSA_WINDOW(data)->statusbar);
+                   BALSA_WINDOW(data)->bottom_bar);
 }
 
 static void
diff --git a/src/main-window.h b/src/main-window.h
index 9de88ca..aafe34c 100644
--- a/src/main-window.h
+++ b/src/main-window.h
@@ -63,6 +63,7 @@ struct _BalsaWindow {
 
     GtkWidget *toolbar;
     GtkWidget *sos_bar;
+    GtkWidget *bottom_bar;
     GtkWidget *progress_bar;
     GtkWidget *statusbar;
     GtkWidget *mblist;



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