Skip to content

Commit

Permalink
Move VFICON_INFO() and VFLIST_INFO() macros to view_file.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Monin committed May 13, 2008
1 parent 0ae96b1 commit d62b506
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 6 additions & 0 deletions src/view_file.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 0 additions & 2 deletions src/view_file_icon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions src/view_file_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d62b506

Please sign in to comment.