Here is patch to make basic templates support.
It can't:
* Make folder templates (do we need this?)
* Update template list while working
I'll continue my work later. I hope my code will satisfy you.
May be it is better to move some functions to library libfm. I would
like to leave this question to discussion, because library design is
better known by main developers. Also some library modifications can
simplify template support code in PCManFM.
>From 109ff07bd752061e6e3ebcbd36947939429a7e96 Mon Sep 17 00:00:00 2001
From: Alexander Varnin <[email protected]>
Date: Mon, 7 Jun 2010 16:10:38 +0400
Subject: [PATCH] Code fixups:
* Repeating definition of fm_file_info_is_dir in fm-file-info.h
* Unused static function: fm_folder_init in fm-folder.c
* Reference to VFSFileInfo in comment in fm-folder.c. Probably it is FmFileInfo?
---
src/base/fm-file-info.h | 1 -
src/base/fm-folder.c | 6 +-----
2 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/src/base/fm-file-info.h b/src/base/fm-file-info.h
index cee726b..67156da 100644
--- a/src/base/fm-file-info.h
+++ b/src/base/fm-file-info.h
@@ -111,7 +111,6 @@ const char* fm_file_info_get_disp_size( FmFileInfo* fi );
goffset fm_file_info_get_blocks( FmFileInfo* fi );
mode_t fm_file_info_get_mode( FmFileInfo* fi );
-gboolean fm_file_info_is_dir( FmFileInfo* fi );
FmMimeType* fm_file_info_get_mime_type( FmFileInfo* fi );
diff --git a/src/base/fm-folder.c b/src/base/fm-folder.c
index 41a14a2..1ad8c36 100644
--- a/src/base/fm-folder.c
+++ b/src/base/fm-folder.c
@@ -84,6 +84,7 @@ static void fm_folder_class_init(FmFolderClass *klass)
/*
* file-changed is emitted when there is a file changed in the dir.
* The param is VFSFileInfo of the newly created file.
+ * FIXME: What if VFSFileInfo?
*/
signals[ FILES_CHANGED ] =
g_signal_new ( "files-changed",
@@ -123,11 +124,6 @@ static void fm_folder_class_init(FmFolderClass *klass)
}
-static void fm_folder_init(FmFolder *self)
-{
- self->files = fm_file_info_list_new();
-}
-
void on_file_info_finished(FmFileInfoJob* job, FmFolder* folder)
{
GList* l;
--
1.7.0.4
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Pcmanfm-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pcmanfm-develop