diff options
author | raveit65 <[email protected]> | 2017-08-19 18:32:43 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-08-19 18:32:43 +0200 |
commit | 2f1f970cbbeba178de3be6cd24be25b4dca43b33 (patch) | |
tree | 3d1f981d716164257e837131d26fc9acb6c8bcd1 /libmisc/ev-page-action-widget.c | |
parent | 67fccc6b5f7f8007ecbfaa98c4284ef9a2643b3b (diff) | |
download | atril-2f1f970cbbeba178de3be6cd24be25b4dca43b33.tar.bz2 atril-2f1f970cbbeba178de3be6cd24be25b4dca43b33.tar.xz |
libmisc: set width chars for page label
and use xalign
fixes https://github.com/mate-desktop/atril/issues/275
Diffstat (limited to 'libmisc/ev-page-action-widget.c')
-rw-r--r-- | libmisc/ev-page-action-widget.c | 6 |
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); |