[f-spot] Removed gnome-vfs from Tabblo export
- From: Lorenzo Milesi <lmilesi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [f-spot] Removed gnome-vfs from Tabblo export
- Date: Sat, 8 Aug 2009 21:55:01 +0000 (UTC)
commit 506182477335726b5aaa76f4c41f14a357024590
Author: Lorenzo Milesi <maxxer yetopen it>
Date: Sat Aug 8 23:52:10 2009 +0200
Removed gnome-vfs from Tabblo export
Part of bgo #590832.
extensions/Exporters/TabbloExport/Makefile.am | 3 +--
.../Exporters/TabbloExport/TabbloExport.addin.xml | 2 +-
extensions/Exporters/TabbloExport/TabbloExport.cs | 9 ++-------
.../Exporters/TabbloExport/TabbloExport.glade | 2 +-
4 files changed, 5 insertions(+), 11 deletions(-)
---
diff --git a/extensions/Exporters/TabbloExport/Makefile.am b/extensions/Exporters/TabbloExport/Makefile.am
index 8b8e2b6..b4ffd33 100644
--- a/extensions/Exporters/TabbloExport/Makefile.am
+++ b/extensions/Exporters/TabbloExport/Makefile.am
@@ -33,8 +33,7 @@ REFS = \
PKGS = \
-pkg:gtk-sharp-2.0 \
- -pkg:glade-sharp-2.0 \
- -pkg:gnome-vfs-sharp-2.0
+ -pkg:glade-sharp-2.0
SUBDIRS = \
Tabblo
diff --git a/extensions/Exporters/TabbloExport/TabbloExport.addin.xml b/extensions/Exporters/TabbloExport/TabbloExport.addin.xml
index 778d40e..7e33457 100644
--- a/extensions/Exporters/TabbloExport/TabbloExport.addin.xml
+++ b/extensions/Exporters/TabbloExport/TabbloExport.addin.xml
@@ -1,5 +1,5 @@
<Addin namespace="FSpot"
- version="0.6.1.1"
+ version="0.6.1.2"
name="Tabblo Export"
description="This extension allows you to export your photos to Tabblo."
author="Wojciech Dzierżanowski"
diff --git a/extensions/Exporters/TabbloExport/TabbloExport.cs b/extensions/Exporters/TabbloExport/TabbloExport.cs
index 4e9c5a8..51b81f3 100644
--- a/extensions/Exporters/TabbloExport/TabbloExport.cs
+++ b/extensions/Exporters/TabbloExport/TabbloExport.cs
@@ -395,13 +395,8 @@ namespace FSpotTabbloExport {
FSpot.IBrowsableItem [] items = model.Photos;
for (int i = 0; i < pictures.Length; ++i) {
- // FIXME: GnomeVFS is deprecated, we should use
- // GIO instead. However, I don't know how to
- // call `GLib.Content.TypeGuess ()'.
- string path = items [i].DefaultVersionUri
- .LocalPath;
- string mime_type = Gnome.Vfs.MimeType
- .GetMimeTypeForUri (path);
+ string mime_type = GLib.FileFactory.NewForUri (items [i].DefaultVersionUri).
+ QueryInfo ("standard::content-type", GLib.FileQueryInfoFlags.None, null).ContentType;
pictures [i] = new Picture (items [i].Name,
items [i].DefaultVersionUri,
diff --git a/extensions/Exporters/TabbloExport/TabbloExport.glade b/extensions/Exporters/TabbloExport/TabbloExport.glade
index 876de99..3deb54c 100644
--- a/extensions/Exporters/TabbloExport/TabbloExport.glade
+++ b/extensions/Exporters/TabbloExport/TabbloExport.glade
@@ -314,7 +314,7 @@
<property name="can_focus">True</property>
<property name="has_focus">True</property>
<property name="can_default">True</property>
- <property name="label">_Export</property>
+ <property name="label" translatable="yes">_Export</property>
<property name="use_underline">True</property>
<property name="response_id">-5</property>
</widget>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]