Debian Codegraph @

src/curtain.h

raw
1 /*
2 * Copyright (C) Pietro Pilolli 2010 <[email protected]>
3 *
4 * Curtain is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * Curtain is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 * See the GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 #include <sys/types.h>
19 #include <sys/stat.h>
20 #include <unistd.h>
21 #include <string.h>
22 #include <stdio.h>
23 #include <stdlib.h>
24
25 #include <config.h>
26
27 #include <gtk/gtk.h>
28
29
30 /*
31 * Standard gettext macros.
32 */
33 #ifdef ENABLE_NLS
34 # include <libintl.h>
35 # undef _
36 # define _(String) dgettext (PACKAGE, String)
37 # ifdef gettext_noop
38 # define N_(String) gettext_noop (String)
39 # else
40 # define N_(String) (String)
41 # endif
42 #else
43 # define textdomain(String) (String)
44 # define gettext(String) (String)
45 # define dgettext(Domain,Message) (Message)
46 # define dcgettext(Domain,Message,Type) (Message)
47 # define bindtextdomain(Domain,Directory) (Domain)
48 # define _(String) (String)
49 # define N_(String) (String)
50 #endif
51
52 #ifdef _WIN32
53 #define UI_FILE "..\\share\\curtain\\ui\\curtain.glade"
54 #else
55 #define UI_FILE PACKAGE_DATA_DIR"/curtain/ui/curtain.glade"
56 #endif
57 /* For testing propose use the local (not installed) ui file */
58 //#define UI_FILE "curtain.glade"
59
60