[balsa] Recent pref-manager changes break display



commit 54191dcf308fc8dc434cb5c00d06b4de34d9ba3b
Author: Albrecht Dreß <albrecht dress arcor de>
Date:   Thu Jun 1 13:05:56 2017 -0400

    Recent pref-manager changes break display
    
        * src/pref-manager.c (open_preferences_manager): put a
        horizontal box in the dialog's content area, instead of making
        the content area horizontal.
    
    Signed-off-by: Peter Bloomfield <PeterBloomfield bellsouth net>

 ChangeLog          |    8 ++++++++
 src/pref-manager.c |    7 ++++---
 2 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 3755a5b..8789b43 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2017-06-01  Peter Bloomfield  <pbloomfield bellsouth net>
+
+       Recent pref-manager changes break display
+
+       * src/pref-manager.c (open_preferences_manager): put a
+       horizontal box in the dialog's content area, instead of making
+       the content area horizontal.
+
 2017-05-31  Peter Bloomfield  <pbloomfield bellsouth net>
 
        Code cleanup
diff --git a/src/pref-manager.c b/src/pref-manager.c
index 7cbd28f..3915def 100644
--- a/src/pref-manager.c
+++ b/src/pref-manager.c
@@ -3231,6 +3231,7 @@ void
 open_preferences_manager(GtkWidget * widget, gpointer data)
 {
     GtkWidget *hbox;
+    GtkWidget *content_area;
     GtkTreeStore *store;
     GtkWidget *view;
     GtkTreeSelection * selection;
@@ -3263,9 +3264,9 @@ open_preferences_manager(GtkWidget * widget, gpointer data)
     libbalsa_macosx_menu_for_parent(property_box, GTK_WINDOW(active_win));
 #endif
 
-    hbox = gtk_dialog_get_content_area(GTK_DIALOG(property_box));
-    gtk_orientable_set_orientation(GTK_ORIENTABLE(hbox),
-                                   GTK_ORIENTATION_HORIZONTAL);
+       hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
+       content_area = gtk_dialog_get_content_area(GTK_DIALOG(property_box));
+       gtk_container_add(GTK_CONTAINER(content_area), hbox);
 
     store = gtk_tree_store_new(PM_NUM_COLS,
                                G_TYPE_STRING,   /* PM_TEXT_COL     */


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