File thunar-media-tags-plugin-0.1.2-port-to-thunarx-2.patch of Package thunar-plugins

diff -urp thunar-media-tags-plugin-0.1.2.orig/configure.in thunar-media-tags-plugin-0.1.2/configure.in
--- thunar-media-tags-plugin-0.1.2.orig/configure.in	2007-01-20 16:29:39.000000000 +0100
+++ thunar-media-tags-plugin-0.1.2/configure.in	2011-01-18 01:24:42.000000000 +0100
@@ -65,8 +65,7 @@ dnl ***********************************
 dnl *** Check for required packages ***
 dnl ***********************************
 XDT_CHECK_PACKAGE([EXO], [exo-0.3], [0.3.1.3])
-XDT_CHECK_PACKAGE([THUNARX], [thunarx-1], [0.2.3svn-r20526])
-XDT_CHECK_PACKAGE([THUNARVFS], [thunar-vfs-1], [0.2.3svn-r20526])
+XDT_CHECK_PACKAGE([THUNARX], [thunarx-2], [1.0.1])
 XDT_CHECK_PACKAGE([TAGLIB], [taglib], [1.4])
 
 dnl ***********************************
diff -urp thunar-media-tags-plugin-0.1.2.orig/thunar-plugin/audio-tags-page.c thunar-media-tags-plugin-0.1.2/thunar-plugin/audio-tags-page.c
--- thunar-media-tags-plugin-0.1.2.orig/thunar-plugin/audio-tags-page.c	2006-09-11 11:40:56.000000000 +0200
+++ thunar-media-tags-plugin-0.1.2/thunar-plugin/audio-tags-page.c	2011-01-18 01:24:42.000000000 +0100
@@ -32,7 +32,6 @@
 #include <taglib/tag_c.h>
 
 #include <exo/exo.h>
-#include <thunar-vfs/thunar-vfs.h>
 
 #include <audio-tags-page.h>
 
@@ -977,8 +976,8 @@ audio_tags_page_info_activate (GtkAction
 
   gchar         *mimetype;
 
-  ThunarVfsInfo *vfs_info;
-  gchar         *filename;
+  GFileInfo     *fileinfo;
+  const char    *filename;
   gchar         *filesize;
   
   g_return_val_if_fail (page != NULL || IS_AUDIO_TAGS_PAGE (page), FALSE);
@@ -1007,9 +1006,9 @@ audio_tags_page_info_activate (GtkAction
   
   /* Additional information */
   mimetype = thunarx_file_info_get_mime_type (page->file);
-  vfs_info = thunarx_file_info_get_vfs_info (page->file);
-  filename = vfs_info->display_name;
-  filesize = thunar_vfs_humanize_size (vfs_info->size, NULL, 0);
+  fileinfo = thunarx_file_info_get_file_info (page->file);
+  filename = g_file_info_get_display_name (fileinfo);
+  filesize = g_format_size_for_display (g_file_info_get_size (fileinfo));
 
   /* Create layout table */
   table = gtk_table_new (7, 2, FALSE);
@@ -1121,7 +1120,7 @@ audio_tags_page_info_activate (GtkAction
   g_free (filesize);
   g_free (mimetype);
 
-  thunar_vfs_info_unref (vfs_info);
+  g_object_unref (fileinfo);
   
   return TRUE;
 }
diff -urp thunar-media-tags-plugin-0.1.2.orig/thunar-plugin/Makefile.am thunar-media-tags-plugin-0.1.2/thunar-plugin/Makefile.am
--- thunar-media-tags-plugin-0.1.2.orig/thunar-plugin/Makefile.am	2006-06-08 15:04:45.000000000 +0200
+++ thunar-media-tags-plugin-0.1.2/thunar-plugin/Makefile.am	2011-01-18 01:24:42.000000000 +0100
@@ -8,7 +8,7 @@ INCLUDES =								\
 	-DPACKAGE_LOCALE_DIR=\"$(localedir)\"				\
 	$(PLATFORM_CPPFLAGS)
 
-extensionsdir = $(libdir)/thunarx-1
+extensionsdir = $(libdir)/thunarx-2
 extensions_LTLIBRARIES =						\
 	thunar-media-tags-plugin.la
 
@@ -25,7 +25,6 @@ thunar_media_tags_plugin_la_CFLAGS =
 	$(EXO_CFLAGS)							\
 	$(PLATFORM_CFLAGS)						\
 	$(THUNARX_CFLAGS)						\
-	$(THUNARVFS_CFLAGS)						\
 	$(TAGLIB_CFLAGS)						\
 	$(TAGLIBC_CFLAGS)
 
@@ -34,7 +33,6 @@ thunar_media_tags_plugin_la_LDFLAGS =
 	-export-dynamic							\
 	-module								\
 	$(THUNARX_LIBS)							\
-	$(THUNARVFS_LIBS)						\
 	$(TAGLIB_LIBS)							\
 	$(TAGLIBC_LIBS)							\
 	$(PLATFORM_LDFLAGS)