[gnome-photos] properties-dialog: Ellipsize the source label to deal with long paths



commit dd5f40d42109b0b97947782f2f52d02b419886b0
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Aug 13 18:12:53 2013 +0200

    properties-dialog: Ellipsize the source label to deal with long paths

 src/photos-properties-dialog.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-properties-dialog.c b/src/photos-properties-dialog.c
index 2865797..6e53d2f 100644
--- a/src/photos-properties-dialog.c
+++ b/src/photos-properties-dialog.c
@@ -368,6 +368,7 @@ photos_properties_dialog_constructed (GObject *object)
         {
           GFile *file;
           GFile *source_link;
+          GtkWidget *label;
           const gchar *uri;
           gchar *source_path;
           gchar *source_uri;
@@ -381,6 +382,9 @@ photos_properties_dialog_constructed (GObject *object)
           source_data = gtk_link_button_new_with_label (source_uri, source_path);
           gtk_widget_set_halign (source_data, GTK_ALIGN_START);
 
+          label = gtk_bin_get_child (GTK_BIN (source_data));
+          gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_END);
+
           g_object_unref (source_link);
           g_object_unref (file);
         }


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