[gnome-builder] gui: Prevent long notifications from wrapping



commit 3cb65672bc98ab1276416391ce0b42b262c02d8a
Author: Diego Escalante Urrelo <diegoe gnome org>
Date:   Sat Aug 31 01:13:50 2019 -0500

    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: https://gitlab.gnome.org/GNOME/gnome-builder/issues/1027

 src/libide/gui/ide-notification-list-box-row.c  | 8 ++++----
 src/libide/gui/ide-notification-list-box-row.ui | 4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/libide/gui/ide-notification-list-box-row.c b/src/libide/gui/ide-notification-list-box-row.c
index 8bc0ca5fe..a53aecf1e 100644
--- a/src/libide/gui/ide-notification-list-box-row.c
+++ b/src/libide/gui/ide-notification-list-box-row.c
@@ -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)
         {
diff --git a/src/libide/gui/ide-notification-list-box-row.ui b/src/libide/gui/ide-notification-list-box-row.ui
index b74f8eaea..269628ff3 100644
--- a/src/libide/gui/ide-notification-list-box-row.ui
+++ b/src/libide/gui/ide-notification-list-box-row.ui
@@ -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"/>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]