Skip to content

Commit

Permalink
Refactor: move view_file implementations to their own subdirectory.
Browse files Browse the repository at this point in the history
  • Loading branch information
xsdg committed Jul 5, 2017
1 parent f6a87c0 commit 1891113
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 10 deletions.
6 changes: 2 additions & 4 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,14 @@ extra_SLIK = \
$(extra_ICONS)

include $(srcdir)/pan-view/Makefile.am
include $(srcdir)/view_file/Makefile.am

bin_PROGRAMS = geeqie

geeqie_SOURCES = \
$(module_SLIK) \
$(module_pan_view) \
$(module_view_file) \
ClayRGB1998.icc \
ClayRGB1998_icc.h \
advanced_exif.c \
Expand Down Expand Up @@ -251,10 +253,6 @@ geeqie_SOURCES = \
view_dir_tree.h \
view_file.c \
view_file.h \
view_file_list.c \
view_file_list.h \
view_file_icon.c \
view_file_icon.h \
window.c \
window.h \
lua.c \
Expand Down
4 changes: 2 additions & 2 deletions src/view_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
#include "ui_menu.h"
#include "ui_fileops.h"
#include "utilops.h"
#include "view_file_list.h"
#include "view_file_icon.h"
#include "view_file/view_file_list.h"
#include "view_file/view_file_icon.h"

/*
*-----------------------------------------------------------------------------
Expand Down
5 changes: 5 additions & 0 deletions src/view_file/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module_view_file = \
%D%/view_file_icon.c \
%D%/view_file_icon.h \
%D%/view_file_list.c \
%D%/view_file_list.h
File renamed without changes.
4 changes: 2 additions & 2 deletions src/view_file_icon.h → src/view_file/view_file_icon.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#ifndef VIEW_FILE_ICON_H
#define VIEW_FILE_ICON_H
#ifndef VIEW_FILE_VIEW_FILE_ICON_H
#define VIEW_FILE_VIEW_FILE_ICON_H

gboolean vficon_press_key_cb(GtkWidget *widget, GdkEventKey *event, gpointer data);
gboolean vficon_press_cb(GtkWidget *widget, GdkEventButton *bevent, gpointer data);
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions src/view_file_list.h → src/view_file/view_file_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#ifndef VIEW_FILE_LIST_H
#define VIEW_FILE_LIST_H
#ifndef VIEW_FILE_VIEW_FILE_LIST_H
#define VIEW_FILE_VIEW_FILE_LIST_H


#include "filedata.h"
Expand Down

0 comments on commit 1891113

Please sign in to comment.