[gnome-photos] properties-dialog: Show the source for Flickr items



commit 81e4c4517cedd314b1d65a518e943b464c8873d4
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Jul 22 17:44:24 2013 +0200

    properties-dialog: Show the source for Flickr items

 src/photos-properties-dialog.c |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-properties-dialog.c b/src/photos-properties-dialog.c
index cb6712c..7e63725 100644
--- a/src/photos-properties-dialog.c
+++ b/src/photos-properties-dialog.c
@@ -29,6 +29,7 @@
 #include <glib.h>
 #include <glib/gi18n.h>
 
+#include "photos-flickr-item.h"
 #include "photos-item-manager.h"
 #include "photos-local-item.h"
 #include "photos-properties-dialog.h"
@@ -241,7 +242,15 @@ photos_properties_dialog_constructed (GObject *object)
       gtk_grid_attach_next_to (GTK_GRID (grid), author_data, author_w, GTK_POS_RIGHT, 2, 1);
     }
 
-  if (PHOTOS_IS_LOCAL_ITEM (item))
+  if (PHOTOS_IS_FLICKR_ITEM (item))
+    {
+      const gchar *source_name;
+
+      source_name = photos_base_item_get_source_name (item);
+      source_data = gtk_link_button_new_with_label ("https://www.flickr.com/";, source_name);
+      gtk_widget_set_halign (source_data, GTK_ALIGN_START);
+    }
+  else /* local item */
     {
       GFile *file;
       GFile *source_link;


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