Author: peter
Date: 2006-12-01 14:53:07 +0000 (Fri, 01 Dec 2006)
New Revision: 24028

Modified:
   xarchiver/branches/xarchiver-psybsd/src/archive_store.c
Log:
archive_store_get_pwd_fixed


Modified: xarchiver/branches/xarchiver-psybsd/src/archive_store.c
===================================================================
--- xarchiver/branches/xarchiver-psybsd/src/archive_store.c     2006-12-01 
14:44:47 UTC (rev 24027)
+++ xarchiver/branches/xarchiver-psybsd/src/archive_store.c     2006-12-01 
14:53:07 UTC (rev 24028)
@@ -1244,11 +1244,9 @@
        g_signal_connect(store->archive, "lsq_refreshed", 
G_CALLBACK(cb_sq_archive_store_archive_refreshed), store);
 }
 
-/* FIXME: STUK!!! */
 gchar *
 sq_archive_store_get_pwd(SQArchiveStore *store)
 {
-/*
 #ifdef DEBUG
        g_return_val_if_fail(store, NULL);
        g_return_val_if_fail(SQ_IS_ARCHIVE_STORE(store), NULL);
@@ -1288,9 +1286,9 @@
        i--;
        buf[i] = lastfile;
 
-       iter = iter->next;
-       if(iter)
+       if(iter && iter->next)
        {
+               iter = iter->next;
                while(iter->next)
                {
                        --i;
@@ -1309,12 +1307,10 @@
                buf[0] = g_strdup("");
        }
 
-       g_debug("%d", i);
        // why does glib want buf to be gchar** instead of const gchar** ?
        path = g_strjoinv("/", (gchar**)buf);
 
-*/
-       return NULL;
+       return path;
 }
 
 GSList *

_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to