Move VFICON_INFO() and VFLIST_INFO() macros to view_file.h
authorLaurent Monin <geeqie@norz.org>
Tue, 13 May 2008 19:56:52 +0000 (19:56 +0000)
committerLaurent Monin <geeqie@norz.org>
Tue, 13 May 2008 19:56:52 +0000 (19:56 +0000)
src/view_file.h
src/view_file_icon.c
src/view_file_list.c

index 4631e58..79e9826 100644 (file)
 
 #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);
index 5681929..b032180 100644 (file)
@@ -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
index 5c27611..f68b018 100644 (file)
@@ -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,