4 * Copyright (C) 2008 - 2012 The Geeqie Team
8 * This software is released under the GNU General Public License (GNU GPL).
9 * Please read the included file COPYING for more information.
10 * This software comes with no warranty of any kind, use at your own risk!
21 #ifdef HAVE_STRVERSCMP
31 *-------------------------------------
32 * Standard library includes
33 *-------------------------------------
44 #include <sys/types.h>
49 *-------------------------------------
50 * includes for glib / gtk / gdk-pixbuf
51 *-------------------------------------
57 #include <gdk-pixbuf/gdk-pixbuf.h>
58 #include <gdk-pixbuf/gdk-pixbuf-loader.h>
63 *----------------------------------------------------------------------------
65 *----------------------------------------------------------------------------
70 #define GQ_APPNAME "Geeqie"
71 #define GQ_APPNAME_LC "geeqie"
72 #define GQ_WEBSITE "geeqie.sourceforge.net"
73 #define GQ_EMAIL_ADDRESS "geeqie-devel@lists.sourceforge.net"
75 #define GQ_RC_DIR "." GQ_APPNAME_LC
76 #define GQ_COLLECTIONS_DIR "collections"
77 #define GQ_TRASH_DIR "trash"
79 #define GQ_SYSTEM_WIDE_DIR "/etc/" GQ_APPNAME_LC
81 #define RC_FILE_NAME GQ_APPNAME_LC "rc.xml"
83 #define GQ_COLLECTION_EXT ".gqv"
85 #define SCROLL_RESET_TOPLEFT 0
86 #define SCROLL_RESET_CENTER 1
87 #define SCROLL_RESET_NOCHANGE 2
89 #define MOUSEWHEEL_SCROLL_SIZE 20
92 #define GQ_DEFAULT_SHELL_PATH "/bin/sh"
93 #define GQ_DEFAULT_SHELL_OPTIONS "-c"
95 #define COLOR_PROFILE_INPUTS 4
97 #define DEFAULT_THUMB_WIDTH 96
98 #define DEFAULT_THUMB_HEIGHT 72
100 #define DEFAULT_MINIMAL_WINDOW_SIZE 100
102 #define IMAGE_MIN_WIDTH 100
103 #define SIDEBAR_DEFAULT_WIDTH 250
106 #define DEFAULT_OVERLAY_INFO "%collection:<i>*</i>\\n%" \
107 "(%number%/%total%) [%zoom%] <b>%name%</b>\n" \
108 "%res%|%date%|%size%\n" \
109 "%formatted.Aperture%|%formatted.ShutterSpeed%|%formatted.ISOSpeedRating:ISO *%|%formatted.FocalLength%|%formatted.ExposureBias:* Ev%\n" \
110 "%formatted.Camera:40%|%formatted.Flash%"
112 #define GQ_LINK_STR "↗"
113 #include "typedefs.h"
117 #define DESKTOP_FILE_TEMPLATE GQ_APP_DIR "/template.desktop"
119 *----------------------------------------------------------------------------
121 *----------------------------------------------------------------------------
125 * This also doubles as the main.c header.
128 extern gboolean thumb_format_changed;
130 void keyboard_scroll_calc(gint *x, gint *y, GdkEventKey *event);
131 gint key_press_cb(GtkWidget *widget, GdkEventKey *event, gpointer data);
133 void exit_program(void);
135 #define CASE_SORT(a, b) ( (options->file_sort.case_sensitive) ? strcmp((a), (b)) : strcasecmp((a), (b)) )
139 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */