[gnome-photos] properties-dialog: Show the source for Facebook items
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] properties-dialog: Show the source for Facebook items
- Date: Fri, 29 Nov 2013 11:56:36 +0000 (UTC)
commit a0541b166667f1039c4dbd3a5b5fa7bf7cebf7c6
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Nov 29 12:38:30 2013 +0100
properties-dialog: Show the source for Facebook items
Fixes: https://bugzilla.gnome.org/700451
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 6be1c9c..54ab7ac 100644
--- a/src/photos-properties-dialog.c
+++ b/src/photos-properties-dialog.c
@@ -30,6 +30,7 @@
#include <glib/gi18n.h>
#include "photos-camera-cache.h"
+#include "photos-facebook-item.h"
#include "photos-flickr-item.h"
#include "photos-item-manager.h"
#include "photos-local-item.h"
@@ -382,7 +383,15 @@ photos_properties_dialog_constructed (GObject *object)
gtk_grid_attach_next_to (GTK_GRID (priv->grid), author_data, author_w, GTK_POS_RIGHT, 2, 1);
}
- if (PHOTOS_IS_FLICKR_ITEM (item))
+ if (PHOTOS_IS_FACEBOOK_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.facebook.com/", source_name);
+ gtk_widget_set_halign (source_data, GTK_ALIGN_START);
+ }
+ else if (PHOTOS_IS_FLICKR_ITEM (item))
{
const gchar *source_name;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]