[Xfce4-commits] <thunar-media-tags-plugin:master> Changed to thunarx-2 and removed thunar-vfs
Nick Schermer
noreply at xfce.org
Wed Nov 30 19:40:01 CET 2011
Updating branch refs/heads/master
to e0841677dea820cc3459b6fdff7512617e21780b (commit)
from 56e45b3cbd607ded210829de2e0ce246384c8cca (commit)
commit e0841677dea820cc3459b6fdff7512617e21780b
Author: Peter de Ridder <peter at xfce.org>
Date: Sat Aug 15 17:52:22 2009 +0200
Changed to thunarx-2 and removed thunar-vfs
Signed-off-by: Peter de Ridder <peter at xfce.org>
Signed-off-by: Jannis Pohlmann <jannis at xfce.org>
configure.in.in | 3 +--
thunar-plugin/Makefile.am | 4 +---
thunar-plugin/audio-tags-page.c | 13 ++++++-------
3 files changed, 8 insertions(+), 12 deletions(-)
diff --git a/configure.in.in b/configure.in.in
index 0ea7f85..8764561 100644
--- a/configure.in.in
+++ b/configure.in.in
@@ -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], [0.2.3svn-r20526])
XDT_CHECK_PACKAGE([TAGLIB], [taglib], [1.4])
dnl ***********************************
diff --git a/thunar-plugin/Makefile.am b/thunar-plugin/Makefile.am
index a3c2c25..a7bdb58 100644
--- a/thunar-plugin/Makefile.am
+++ b/thunar-plugin/Makefile.am
@@ -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)
diff --git a/thunar-plugin/audio-tags-page.c b/thunar-plugin/audio-tags-page.c
index 099d7ad..7e5dab5 100644
--- a/thunar-plugin/audio-tags-page.c
+++ b/thunar-plugin/audio-tags-page.c
@@ -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 *action,
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 *action,
/* 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 *action,
g_free (filesize);
g_free (mimetype);
- thunar_vfs_info_unref (vfs_info);
+ g_object_unref (fileinfo);
return TRUE;
}
More information about the Xfce4-commits
mailing list