summaryrefslogtreecommitdiff
path: root/src/msg.c
diff options
context:
space:
mode:
authorJeremy Bicha <jeremy.bicha@canonical.com>2022-04-27 15:34:04 -0400
committerJeremy Bicha <jeremy.bicha@canonical.com>2022-04-27 15:34:04 -0400
commitbf559d3363a39aa0c94c2ff9537fea70cc3ff3ce (patch)
treee966d8ffbea3c6805486890535b717227098934f /src/msg.c
parentUpdate debian/watch (diff)
parentNew upstream version 3.42.1 (diff)
downloadzenity-bf559d3363a39aa0c94c2ff9537fea70cc3ff3ce.tar.gz
zenity-bf559d3363a39aa0c94c2ff9537fea70cc3ff3ce.tar.bz2
zenity-bf559d3363a39aa0c94c2ff9537fea70cc3ff3ce.zip
Update upstream source from tag 'upstream/3.42.1'
Update to upstream version '3.42.1' with Debian dir ecb7383fc20c2176b602cbf542f383b94277b6b8
Diffstat (limited to 'src/msg.c')
-rw-r--r--src/msg.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/msg.c b/src/msg.c
index 496fe185..92651525 100644
--- a/src/msg.c
+++ b/src/msg.c
@@ -202,12 +202,10 @@ zenity_msg (ZenityData *data, ZenityMsgData *msg_data) {
if (data->width > -1)
gtk_widget_set_size_request (GTK_WIDGET (text), data->width, -1);
else if (!msg_data->ellipsize && !msg_data->no_wrap) {
- // the magic number 60 is picked from gtk+/gtk/ui/gtkmessagedialog.ui
- // however, 60 would increase the distance between the icon and the
- // text,
- // decreasing to 10 fix it.
+ /* The magic number 60 is taken from gtk+/gtk/ui/gtkmessagedialog.ui
+ with 10 as a minimum width. */
gtk_label_set_width_chars (GTK_LABEL (text), 10);
- gtk_label_set_max_width_chars (GTK_LABEL (text), 10);
+ gtk_label_set_max_width_chars (GTK_LABEL (text), 60);
}
if (data->modal)
bgstack15