Fix #1240: Regression: Option to open new full-function window directly is missing
[geeqie.git] / src / main.h
1 /*
2  * Copyright (C) 2006 John Ellis
3  * Copyright (C) 2008 - 2016 The Geeqie Team
4  *
5  * Author: John Ellis
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License along
18  * with this program; if not, write to the Free Software Foundation, Inc.,
19  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20  */
21
22 #ifndef MAIN_H
23 #define MAIN_H
24
25 #include <gdk/gdk.h>
26 #include <glib.h>
27 #include <gtk/gtk.h>
28
29 extern gboolean thumb_format_changed;
30
31 extern gchar *gq_prefix;
32 extern gchar *gq_localedir;
33 extern gchar *gq_helpdir;
34 extern gchar *gq_htmldir;
35 extern gchar *gq_appdir;
36 extern gchar *gq_bindir;
37 extern gchar *gq_executable_path;
38 extern gchar *desktop_file_template;
39 extern gchar *instance_identifier;
40
41 void keyboard_scroll_calc(gint *x, gint *y, GdkEventKey *event);
42 gint key_press_cb(GtkWidget *widget, GdkEventKey *event, gpointer data);
43
44 void exit_program();
45
46 #define CASE_SORT(a, b) ( (options->file_sort.case_sensitive) ? strcmp((a), (b)) : strcasecmp((a), (b)) )
47
48
49 #endif
50 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */