[gnome-photos/wip/rishi/revert-to-original: 2/6] properties-dialog: Restrict the width of remote titles



commit b26193780bcef0dce675a37458a4b58a4f09e2e8
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Aug 9 10:12:51 2016 +0200

    properties-dialog: Restrict the width of remote titles

 src/photos-properties-dialog.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-properties-dialog.c b/src/photos-properties-dialog.c
index 8afdc0e..7a602e2 100644
--- a/src/photos-properties-dialog.c
+++ b/src/photos-properties-dialog.c
@@ -373,6 +373,8 @@ photos_properties_dialog_constructed (GObject *object)
     {
       self->title_entry = gtk_label_new (name);
       gtk_widget_set_halign (self->title_entry, GTK_ALIGN_START);
+      gtk_label_set_ellipsize (GTK_LABEL (self->title_entry), PANGO_ELLIPSIZE_END);
+      gtk_label_set_max_width_chars (GTK_LABEL (self->title_entry), 40);
     }
 
   gtk_grid_attach_next_to (GTK_GRID (self->grid), self->title_entry, title, GTK_POS_RIGHT, 2, 1);


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