pidgin/gtkgaim.h

changeset 15435
4b933b06d75e
parent 15434
94dcf9e39d66
child 15498
2ee3112b6f24
equal deleted inserted replaced
15434:94dcf9e39d66 15435:4b933b06d75e
1 /**
2 * @file gtkgaim.h UI definitions and includes
3 * @ingroup gtkui
4 *
5 * gaim
6 *
7 * Gaim is the legal property of its developers, whose names are too numerous
8 * to list here. Please refer to the COPYRIGHT file distributed with this
9 * source distribution.
10 *
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 */
25 /* #warning ***gtkgaim*** */
26 #ifndef _GAIM_GTKGAIM_H_
27 #define _GAIM_GTKGAIM_H_
28
29 #ifndef _WIN32
30 # include <gdk/gdkx.h>
31 #endif
32
33 #include <gtk/gtk.h>
34
35 #ifdef _WIN32
36 # include "gtkwin32dep.h"
37 #endif
38
39 /**
40 * Our user-readable name
41 */
42 #define PIDGIN_NAME "Pidgin"
43
44 /**
45 * Our UI's identifier.
46 */
47 #define GAIM_GTK_UI "gtk-gaim"
48
49 #ifndef _WIN32
50 # define GAIM_ALERT_TITLE ""
51 #else
52 # define GAIM_ALERT_TITLE PIDGIN_NAME
53 #endif
54
55 /*
56 * This is backwards-compatibility code for older versions of GTK+ (< 2.4.x)
57 * It defines the new wrap behavior (unknown in earlier versions)
58 * as the old (slightly buggy) wrap behavior.
59 * It also includes our back-ported GtkExpander
60 */
61 /** @cond */
62 #if (!GTK_CHECK_VERSION(2,4,0))
63 #define GTK_WRAP_WORD_CHAR GTK_WRAP_WORD
64 #include "gtkexpander.h"
65 #endif
66 /** @endcond */
67
68 /*
69 * We include the sources for GtkComboBox and GtkCellView because
70 * they don't exist in older version of Gtk+, and we use them
71 * in a few places.
72 */
73 #if !GTK_CHECK_VERSION(2,6,0)
74 # include "gtkcellview.h"
75 # include "gtkcellviewmenuitem.h"
76 # if !GTK_CHECK_VERSION(2,4,0)
77 # include "gtkcelllayout.h"
78 # include "gaimcombobox.h"
79 # endif /* Gtk 2.4 */
80 #endif /* Gtk 2.6 */
81
82 /*
83 * Spacings between components, as defined by the
84 * GNOME Human Interface Guidelines.
85 */
86 #define GAIM_HIG_CAT_SPACE 18
87 #define GAIM_HIG_BORDER 12
88 #define GAIM_HIG_BOX_SPACE 6
89
90 /*
91 * See GNOME bug #307304 for some discussion about the invisible
92 * character. 0x25cf is a good choice, too.
93 */
94 #define GAIM_INVISIBLE_CHAR (gunichar)0x2022
95
96 #endif /* _GAIM_GTKGAIM_H_ */
97

mercurial