gnome-commander r1951 - in trunk/src: . tags
- From: epiotr svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-commander r1951 - in trunk/src: . tags
- Date: Fri, 8 Aug 2008 22:54:02 +0000 (UTC)
Author: epiotr
Date: Fri Aug 8 22:54:02 2008
New Revision: 1951
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=1951&view=rev
Log:
Code cleanup
Modified:
trunk/src/gnome-cmd-main-win.cc
trunk/src/tags/gnome-cmd-tags-doc.cc
trunk/src/tags/gnome-cmd-tags-doc.h
trunk/src/tags/gnome-cmd-tags-exiv2.cc
trunk/src/tags/gnome-cmd-tags-exiv2.h
trunk/src/tags/gnome-cmd-tags-file.cc
trunk/src/tags/gnome-cmd-tags-file.h
trunk/src/tags/gnome-cmd-tags-taglib.cc
trunk/src/tags/gnome-cmd-tags-taglib.h
Modified: trunk/src/gnome-cmd-main-win.cc
==============================================================================
--- trunk/src/gnome-cmd-main-win.cc (original)
+++ trunk/src/gnome-cmd-main-win.cc Fri Aug 8 22:54:02 2008
@@ -1259,10 +1259,10 @@
void gnome_cmd_main_win_update_list_orientation (GnomeCmdMainWin *mw)
{
- gint pos = 2;
-
g_return_if_fail (GNOME_CMD_IS_MAIN_WIN (mw));
+ gint pos = 2;
+
gtk_widget_ref (mw->priv->file_selector[LEFT]);
gtk_widget_ref (mw->priv->file_selector[RIGHT]);
gtk_container_remove (GTK_CONTAINER (mw->priv->paned), mw->priv->file_selector[LEFT]);
Modified: trunk/src/tags/gnome-cmd-tags-doc.cc
==============================================================================
--- trunk/src/tags/gnome-cmd-tags-doc.cc (original)
+++ trunk/src/tags/gnome-cmd-tags-doc.cc Fri Aug 8 22:54:02 2008
@@ -469,7 +469,7 @@
if (!gnome_cmd_file_is_local(finfo)) return;
GError *err = NULL;
- gchar *fname = gnome_cmd_file_get_real_path(finfo);
+ gchar *fname = gnome_cmd_file_get_real_path (finfo);
DEBUG('t', "Loading doc metadata for '%s'\n", fname);
Modified: trunk/src/tags/gnome-cmd-tags-doc.h
==============================================================================
--- trunk/src/tags/gnome-cmd-tags-doc.h (original)
+++ trunk/src/tags/gnome-cmd-tags-doc.h Fri Aug 8 22:54:02 2008
@@ -25,6 +25,7 @@
void gcmd_tags_libgsf_init();
void gcmd_tags_libgsf_shutdown();
+
void gcmd_tags_libgsf_load_metadata(GnomeCmdFile *finfo);
#endif // __GNOME_CMD_TAGS_DOC_H__
Modified: trunk/src/tags/gnome-cmd-tags-exiv2.cc
==============================================================================
--- trunk/src/tags/gnome-cmd-tags-exiv2.cc (original)
+++ trunk/src/tags/gnome-cmd-tags-exiv2.cc Fri Aug 8 22:54:02 2008
@@ -363,11 +363,6 @@
}
-void gcmd_tags_exiv2_shutdown()
-{
-}
-
-
void gcmd_tags_exiv2_load_metadata(GnomeCmdFile *finfo)
{
g_return_if_fail (finfo != NULL);
@@ -388,7 +383,7 @@
if (!gnome_cmd_file_is_local(finfo)) return;
- gchar *fname = gnome_cmd_file_get_real_path(finfo);
+ gchar *fname = gnome_cmd_file_get_real_path (finfo);
DEBUG('t', "Loading image metadata for '%s'\n", fname);
Modified: trunk/src/tags/gnome-cmd-tags-exiv2.h
==============================================================================
--- trunk/src/tags/gnome-cmd-tags-exiv2.h (original)
+++ trunk/src/tags/gnome-cmd-tags-exiv2.h Fri Aug 8 22:54:02 2008
@@ -24,7 +24,8 @@
#include "gnome-cmd-tags.h"
void gcmd_tags_exiv2_init();
-void gcmd_tags_exiv2_shutdown();
+inline void gcmd_tags_exiv2_shutdown() {}
+
void gcmd_tags_exiv2_load_metadata(GnomeCmdFile *finfo);
#endif // __GNOME_CMD_TAGS_EXIV2_H__
Modified: trunk/src/tags/gnome-cmd-tags-file.cc
==============================================================================
--- trunk/src/tags/gnome-cmd-tags-file.cc (original)
+++ trunk/src/tags/gnome-cmd-tags-file.cc Fri Aug 8 22:54:02 2008
@@ -27,16 +27,6 @@
using namespace std;
-void gcmd_tags_file_init()
-{
-}
-
-
-void gcmd_tags_file_shutdown()
-{
-}
-
-
void gcmd_tags_file_load_metadata(GnomeCmdFile *finfo)
{
g_return_if_fail (finfo != NULL);
@@ -76,5 +66,4 @@
finfo->metadata->add(TAG_FILE_PERMISSIONS, perm2textstring(finfo->info->permissions,buff,sizeof(buff)));
finfo->metadata->add(TAG_FILE_FORMAT, finfo->info->type==GNOME_VFS_FILE_TYPE_DIRECTORY ? "Folder" : finfo->info->mime_type);
-
}
Modified: trunk/src/tags/gnome-cmd-tags-file.h
==============================================================================
--- trunk/src/tags/gnome-cmd-tags-file.h (original)
+++ trunk/src/tags/gnome-cmd-tags-file.h Fri Aug 8 22:54:02 2008
@@ -23,8 +23,9 @@
#include "gnome-cmd-file.h"
#include "gnome-cmd-tags.h"
-void gcmd_tags_file_init();
-void gcmd_tags_file_shutdown();
+inline void gcmd_tags_file_init() {}
+inline void gcmd_tags_file_shutdown() {}
+
void gcmd_tags_file_load_metadata(GnomeCmdFile *finfo);
#endif // __GNOME_CMD_TAGS_FILE_H__
Modified: trunk/src/tags/gnome-cmd-tags-taglib.cc
==============================================================================
--- trunk/src/tags/gnome-cmd-tags-taglib.cc (original)
+++ trunk/src/tags/gnome-cmd-tags-taglib.cc Fri Aug 8 22:54:02 2008
@@ -400,11 +400,6 @@
}
-void gcmd_tags_taglib_shutdown()
-{
-}
-
-
void gcmd_tags_taglib_load_metadata(GnomeCmdFile *finfo)
{
g_return_if_fail (finfo != NULL);
Modified: trunk/src/tags/gnome-cmd-tags-taglib.h
==============================================================================
--- trunk/src/tags/gnome-cmd-tags-taglib.h (original)
+++ trunk/src/tags/gnome-cmd-tags-taglib.h Fri Aug 8 22:54:02 2008
@@ -23,7 +23,8 @@
#include "gnome-cmd-file.h"
void gcmd_tags_taglib_init();
-void gcmd_tags_taglib_shutdown();
+inline void gcmd_tags_taglib_shutdown() {}
+
void gcmd_tags_taglib_load_metadata(GnomeCmdFile *finfo);
#endif // __GNOME_CMD_TAGS_TAGLIB_H__
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]