summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-08-19 18:32:43 +0200
committerraveit65 <[email protected]>2017-11-20 20:09:13 +0100
commitaaebf214c59d40e63d15659b4041bc9e5c032718 (patch)
tree2d9b74554878bd660573b5f0fd568a5cee091468
parent4287f17c257eb997c013ce4dcf4a0b82643f1c74 (diff)
downloadatril-aaebf214c59d40e63d15659b4041bc9e5c032718.tar.bz2
atril-aaebf214c59d40e63d15659b4041bc9e5c032718.tar.xz
libmisc: set width chars for page label
and use xalign fixes https://github.com/mate-desktop/atril/issues/275
-rw-r--r--libmisc/ev-page-action-widget.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libmisc/ev-page-action-widget.c b/libmisc/ev-page-action-widget.c
index 05322ef7..b12b72c2 100644
--- a/libmisc/ev-page-action-widget.c
+++ b/libmisc/ev-page-action-widget.c
@@ -181,6 +181,12 @@ ev_page_action_widget_init (EvPageActionWidget *action_widget)
gtk_widget_show (action_widget->entry);
action_widget->label = gtk_label_new (NULL);
+ gtk_label_set_width_chars (GTK_LABEL (action_widget->label), 14);
+#if GTK_CHECK_VERSION (3, 16, 0)
+ gtk_label_set_xalign (GTK_LABEL (action_widget->label), 0.0);
+#else
+ gtk_misc_set_alignment (GTK_MISC (action_widget->label), 0.0, 0.5);
+#endif
gtk_box_pack_start (GTK_BOX (hbox), action_widget->label,
FALSE, FALSE, 0);
gtk_widget_show (action_widget->label);