[balsa/gtk4: 293/311] file-chooser-button: Left-align the button label




commit 3b11bad0fdbf9d4fbb818df687d429686d51fe69
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Mon Dec 14 15:30:59 2020 -0500

    file-chooser-button: Left-align the button label

 libbalsa/file-chooser-button.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/libbalsa/file-chooser-button.c b/libbalsa/file-chooser-button.c
index 993f0f761..ef52ee023 100644
--- a/libbalsa/file-chooser-button.c
+++ b/libbalsa/file-chooser-button.c
@@ -73,6 +73,8 @@ libbalsa_file_chooser_button_response(GtkDialog *dialog,
         gtk_button_set_label(GTK_BUTTON(data->button), basename);
         g_free(basename);
 
+        gtk_label_set_xalign(GTK_LABEL(gtk_button_get_child(GTK_BUTTON(data->button))), 0.0);
+
         if (data->response_cb != NULL)
             ((GFunc) data->response_cb)(data->button, data->response_data);
     }
@@ -162,6 +164,8 @@ libbalsa_file_chooser_button_set_file(GtkWidget *button, GFile *file)
     gtk_button_set_label(GTK_BUTTON(data->button), basename);
     g_free(basename);
 
+    gtk_label_set_xalign(GTK_LABEL(gtk_button_get_child(GTK_BUTTON(data->button))), 0.0);
+
     g_set_object(&data->file, file);
 }
 


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