[balsa/gtk4: 282/294] file-chooser-button: Left-align the button label
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk4: 282/294] file-chooser-button: Left-align the button label
- Date: Sun, 20 Jun 2021 23:36:44 +0000 (UTC)
commit 5aaf3c1fc9a7e53c288b188355cff95b82252f2b
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]