[eog: 2/3] eog-window: use automatic line break in infobars
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog: 2/3] eog-window: use automatic line break in infobars
- Date: Wed, 1 Jul 2020 13:37:43 +0000 (UTC)
commit addbb6fc6e5be9ca97ef6e6650180933db9a0ba1
Author: Arnaud Ferraris <arnaud ferraris gmail com>
Date: Sat Jun 6 11:50:10 2020 +0200
eog-window: use automatic line break in infobars
As the behavior of the automatic line break now seems OK, use it so the
infobars doesn't overflow on small displays, such as phone screens.
src/eog-window.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/eog-window.c b/src/eog-window.c
index 33750f32..2cf88536 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -939,12 +939,11 @@ image_file_changed_cb (EogImage *img, EogWindow *window)
GTK_ICON_SIZE_DIALOG);
label = gtk_label_new (NULL);
- /* The newline character is currently necessary due to a problem
- * with the automatic line break. */
text = g_strdup_printf (_("The image ā%sā has been modified by an external application."
- "\nWould you like to reload it?"), eog_image_get_caption (img));
+ " Would you like to reload it?"), eog_image_get_caption (img));
markup = g_markup_printf_escaped ("<b>%s</b>", text);
gtk_label_set_markup (GTK_LABEL (label), markup);
+ gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
g_free (text);
g_free (markup);
@@ -2686,13 +2685,12 @@ eog_window_set_wallpaper (EogWindow *window, const gchar *filename, const gchar
if (!visible_filename)
basename = g_path_get_basename (filename);
- /* The newline character is currently necessary due to a problem
- * with the automatic line break. */
text = g_strdup_printf (_("The image ā%sā has been set as Desktop Background."
- "\nWould you like to modify its appearance?"),
+ " Would you like to modify its appearance?"),
visible_filename ? visible_filename : basename);
markup = g_markup_printf_escaped ("<b>%s</b>", text);
gtk_label_set_markup (GTK_LABEL (label), markup);
+ gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
g_free (markup);
g_free (text);
if (!visible_filename)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]