Commit 3cb65672 authored by Diego Escalante Urrelo's avatar Diego Escalante Urrelo 🍄 Committed by Christian Hergert

gui: Prevent long notifications from wrapping

Widen the GtkLabels in IdeNotificationListBoxRow slightly to accommodate
for more verbose progress (slower transfers or big numbers). If that's
still not enough, also ellipsize at the end of the line, considering
that progress speed is the least crucial information.

Closes: GNOME/gnome-builder#1027
parent 38a82d36
......@@ -357,11 +357,11 @@ ide_notification_list_box_row_set_compact (IdeNotificationListBoxRow *self,
g_object_unref (self->buttons);
gtk_label_set_width_chars (self->title, self->compact ? 35 : 50);
gtk_label_set_max_width_chars (self->title, self->compact ? 35 : 50);
gtk_label_set_width_chars (self->title, self->compact ? 40 : 55);
gtk_label_set_max_width_chars (self->title, self->compact ? 40 : 55);
gtk_label_set_width_chars (self->body, self->compact ? 35 : 50);
gtk_label_set_max_width_chars (self->body, self->compact ? 35 : 50);
gtk_label_set_width_chars (self->body, self->compact ? 40 : 55);
gtk_label_set_max_width_chars (self->body, self->compact ? 40 : 55);
if (self->notification != NULL)
{
......
......@@ -47,8 +47,8 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="wrap">True</property>
<property name="width_chars">50</property>
<property name="max_width_chars">50</property>
<property name="width_chars">55</property>
<property name="max_width_chars">55</property>
<property name="xalign">0</property>
<style>
<class name="body"/>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment