[balsa/wip/gtk4: 146/351] libbalsa-progress: Add a margin



commit 755590dd43f63cd80ae94912028fc1970d848923
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Tue Feb 6 17:36:45 2018 -0500

    libbalsa-progress: Add a margin
    
    Set a 2-pixel margin on the progress bar in the 'Checking Mail' dialog.
    
    In master, the progress bar has that margin, apparently because of the
    row spacing of the box that contains it. In wip/gtk4, it seems that we
    need to set it explicitly.

 libbalsa/libbalsa-progress.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libbalsa/libbalsa-progress.c b/libbalsa/libbalsa-progress.c
index 168abfc..caeb6f8 100644
--- a/libbalsa/libbalsa-progress.c
+++ b/libbalsa/libbalsa-progress.c
@@ -301,6 +301,7 @@ create_progress_widget(const gchar *progress_id)
        gtk_box_pack_start(GTK_BOX(box), widget_data->label);
 
        widget_data->progress = gtk_progress_bar_new();
+        g_object_set(G_OBJECT(widget_data->progress), "margin", 2, NULL);
        gtk_box_pack_start(GTK_BOX(box), widget_data->progress);
 
        return widget_data->revealer;


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