[Xfce4-commits] r23878 - xarchiver/branches/xarchiver-psybsd/libxarchiver
Stephan Arts
stephan at xfce.org
Tue Nov 14 21:53:54 CET 2006
Author: stephan
Date: 2006-11-14 20:53:54 +0000 (Tue, 14 Nov 2006)
New Revision: 23878
Modified:
xarchiver/branches/xarchiver-psybsd/libxarchiver/archive.c
Log:
Actually sends the path i was trying to send with the last commit
Modified: xarchiver/branches/xarchiver-psybsd/libxarchiver/archive.c
===================================================================
--- xarchiver/branches/xarchiver-psybsd/libxarchiver/archive.c 2006-11-14 20:49:54 UTC (rev 23877)
+++ xarchiver/branches/xarchiver-psybsd/libxarchiver/archive.c 2006-11-14 20:53:54 UTC (rev 23878)
@@ -250,6 +250,7 @@
{
LXA_ARCHIVE_WRITE_LOCK(&archive->rw_lock);
gchar **path = NULL;
+ gchar *_path = NULL;
if(LXA_IS_ARCHIVE(archive))
{
@@ -263,8 +264,10 @@
if((archive->old_status == LXA_ARCHIVESTATUS_REMOVE) && (archive->files))
{
path = g_strsplit(archive->files, " ", 2);
- g_signal_emit(G_OBJECT(archive), lxa_archive_signals[2], 0, archive, path[0]);
+ _path = g_path_get_dirname(path[0]);
+ g_signal_emit(G_OBJECT(archive), lxa_archive_signals[2], 0, archive, _path);
g_strfreev(path);
+ g_free(_path);
}
}
}
More information about the Xfce4-commits
mailing list