changeset 658:dc09f544d292

Move VFICON_INFO() and VFLIST_INFO() macros to view_file.h
author zas_
date Tue, 13 May 2008 19:56:52 +0000
parents 3f4bd5ead07a
children 542bb47fef04
files src/view_file.h src/view_file_icon.c src/view_file_list.c
diffstat 3 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/view_file.h	Tue May 13 19:54:13 2008 +0000
+++ b/src/view_file.h	Tue May 13 19:56:52 2008 +0000
@@ -14,6 +14,12 @@
 
 #define VIEW_FILE_TYPES_COUNT 2
 
+#define VFLIST_INFO_POINTER(_vf_) ((ViewFileInfoList *)(_vf_->info))
+#define VFLIST_INFO(_vf_, _part_) (VFLIST_INFO_POINTER(_vf_)->_part_)
+
+#define VFICON_INFO_POINTER(_vf_) ((ViewFileInfoIcon *)(_vf_->info))
+#define VFICON_INFO(_vf_, _part_) (VFICON_INFO_POINTER(_vf_)->_part_)
+
 void vf_send_update(ViewFile *vf);
 
 ViewFile *vf_new(FileViewType type, const gchar *path);
--- a/src/view_file_icon.c	Tue May 13 19:54:13 2008 +0000
+++ b/src/view_file_icon.c	Tue May 13 19:56:52 2008 +0000
@@ -36,8 +36,6 @@
 
 #include <gdk/gdkkeysyms.h> /* for keyboard values */
 
-#define VFICON_INFO_POINTER(_vf_) ((ViewFileInfoIcon *)(_vf_->info))
-#define VFICON_INFO(_vf_, _part_) (VFICON_INFO_POINTER(_vf_)->_part_)
 
 /* between these, the icon width is increased by thumb_max_width / 2 */
 #define THUMB_MIN_ICON_WIDTH 128
--- a/src/view_file_list.c	Tue May 13 19:54:13 2008 +0000
+++ b/src/view_file_list.c	Tue May 13 19:56:52 2008 +0000
@@ -32,8 +32,6 @@
 
 #include <gdk/gdkkeysyms.h> /* for keyboard values */
 
-#define VFLIST_INFO_POINTER(_vf_) ((ViewFileInfoList *)(_vf_->info))
-#define VFLIST_INFO(_vf_, _part_) (VFLIST_INFO_POINTER(_vf_)->_part_)
 
 enum {
 	FILE_COLUMN_POINTER = 0,