[Patch] recent pref-manager changes break display

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Patch] recent pref-manager changes break display

Albrecht Dreß
Hi Peter:

your recent changes to the src/pref-manager.c break the display if the environment variable BALSA_DIALOG_HEADERBAR=0 is set (see attached screenshot).  The attached patch fixes it.

Cheers,
Albrecht.
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     */

_______________________________________________
balsa-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/balsa-list

Prefs.png (19K) Download Attachment
attachment1 (484 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Patch] recent pref-manager changes break display

Peter Bloomfield
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/01/2017 12:39:32 PM Thu, Albrecht Dreß wrote:
> Hi Peter:
>
> your recent changes to the src/pref-manager.c break the display if the environment variable BALSA_DIALOG_HEADERBAR=0 is set (see attached screenshot).  The attached patch fixes it.

Sorry about that--thanks for the patch!

Peter
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlkwSecACgkQH1/UtbkqdPUJUgCcCM+J5mAz9LPuqYgSln0qKKmJ
L2gAoKEoRs+c48BR+GteygfriM8BLGku
=11Mm
-----END PGP SIGNATURE-----
_______________________________________________
balsa-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/balsa-list
Loading...