Cast back and forth between int and pointer instead of putting pointers
[pidgin-git.git] / pidgin / pidgin.h
blob3319f1e9ae558621b52f636c870ea78fde5e9c27
1 /**
2 * @file pidgin.h UI definitions and includes
3 * @ingroup pidgin
4 */
6 /* pidgin
8 * Pidgin is the legal property of its developers, whose names are too numerous
9 * to list here. Please refer to the COPYRIGHT file distributed with this
10 * source distribution.
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
26 /* #warning ***pidgin*** */
27 #ifndef _PIDGIN_H_
28 #define _PIDGIN_H_
30 #include <gtk/gtk.h>
32 #ifdef GDK_WINDOWING_X11
33 # include <gdk/gdkx.h>
34 #endif
36 #ifdef _WIN32
37 # include "gtkwin32dep.h"
38 #endif
40 /**
41 * Our UI's identifier.
43 /* leave this as gtk-gaim until we have a decent way to migrate UI-prefs */
44 #define PIDGIN_UI "gtk-gaim"
46 /* change this only when we have a sane upgrade path for old prefs */
47 #define PIDGIN_PREFS_ROOT "/pidgin"
49 /* Translators may want to transliterate the name.
50 It is not to be translated. */
51 #define PIDGIN_NAME _("Pidgin")
53 #ifndef _WIN32
54 # define PIDGIN_ALERT_TITLE ""
55 #else
56 # define PIDGIN_ALERT_TITLE PIDGIN_NAME
57 #endif
60 * Spacings between components, as defined by the
61 * GNOME Human Interface Guidelines.
63 #define PIDGIN_HIG_CAT_SPACE 18
64 #define PIDGIN_HIG_BORDER 12
65 #define PIDGIN_HIG_BOX_SPACE 6
67 #if !GTK_CHECK_VERSION(2,16,0) || !defined(PIDGIN_DISABLE_DEPRECATED)
69 * Older versions of GNOME defaulted to using an asterisk as the invisible
70 * character. But this is ugly and we want to use something nicer.
72 * The default invisible character was changed in GNOME revision 21446
73 * (GTK+ 2.16) from an asterisk to the first available character out of
74 * 0x25cf, 0x2022, 0x2731, 0x273a. See GNOME bugs 83935 and 307304 for
75 * discussion leading up to the change.
77 * Here's the change:
78 * http://svn.gnome.org/viewvc/gtk%2B?view=revision&revision=21446
81 #define PIDGIN_INVISIBLE_CHAR (gunichar)0x25cf
82 #endif /* Less than GTK+ 2.16 */
84 #endif /* _PIDGIN_H_ */