pidgin/pidgin.h

Mon, 16 Apr 2007 02:05:07 +0000

author
Richard Laager <rlaager@pidgin.im>
date
Mon, 16 Apr 2007 02:05:07 +0000
changeset 16254
eeb2bba4dc94
parent 16126
820a96de9339
child 16478
19107605c565
permissions
-rw-r--r--

Rename the Doxygen group from gtkui to pidgin.

9791
f5c5bda0b96b [gaim-migrate @ 10659]
Gary Kramlich <grim@pidgin.im>
parents:
diff changeset
1 /**
15577
b8129373f65e More pidgin changes
Sean Egan <seanegan@pidgin.im>
parents: 15572
diff changeset
2 * @file pidgin.h UI definitions and includes
16254
eeb2bba4dc94 Rename the Doxygen group from gtkui to pidgin.
Richard Laager <rlaager@pidgin.im>
parents: 16126
diff changeset
3 * @ingroup pidgin
9791
f5c5bda0b96b [gaim-migrate @ 10659]
Gary Kramlich <grim@pidgin.im>
parents:
diff changeset
4 *
15931
716b5fac1895 Re-sed the copyright notices so they don't all talk about Purple.
Richard Laager <rlaager@pidgin.im>
parents: 15884
diff changeset
5 * pidgin
9791
f5c5bda0b96b [gaim-migrate @ 10659]
Gary Kramlich <grim@pidgin.im>
parents:
diff changeset
6 *
15572
e069b22c1fc4 headers to pidgin
Sean Egan <seanegan@pidgin.im>
parents: 15562
diff changeset
7 * Pidgin is the legal property of its developers, whose names are too numerous
9791
f5c5bda0b96b [gaim-migrate @ 10659]
Gary Kramlich <grim@pidgin.im>
parents:
diff changeset
8 * to list here. Please refer to the COPYRIGHT file distributed with this
f5c5bda0b96b [gaim-migrate @ 10659]
Gary Kramlich <grim@pidgin.im>
parents:
diff changeset
9 * source distribution.
f5c5bda0b96b [gaim-migrate @ 10659]
Gary Kramlich <grim@pidgin.im>
parents:
diff changeset
10 *
f5c5bda0b96b [gaim-migrate @ 10659]
Gary Kramlich <grim@pidgin.im>
parents:
diff changeset
11 * This program is free software; you can redistribute it and/or modify
f5c5bda0b96b [gaim-migrate @ 10659]
Gary Kramlich <grim@pidgin.im>
parents:
diff changeset
12 * it under the terms of the GNU General Public License as published by
f5c5bda0b96b [gaim-migrate @ 10659]
Gary Kramlich <grim@pidgin.im>
parents:
diff changeset
13 * the Free Software Foundation; either version 2 of the License, or
f5c5bda0b96b [gaim-migrate @ 10659]
Gary Kramlich <grim@pidgin.im>
parents:
diff changeset
14 * (at your option) any later version.
f5c5bda0b96b [gaim-migrate @ 10659]
Gary Kramlich <grim@pidgin.im>
parents:
diff changeset
15 *
f5c5bda0b96b [gaim-migrate @ 10659]
Gary Kramlich <grim@pidgin.im>
parents:
diff changeset
16 * This program is distributed in the hope that it will be useful,
f5c5bda0b96b [gaim-migrate @ 10659]
Gary Kramlich <grim@pidgin.im>
parents:
diff changeset
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
f5c5bda0b96b [gaim-migrate @ 10659]
Gary Kramlich <grim@pidgin.im>
parents:
diff changeset
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
f5c5bda0b96b [gaim-migrate @ 10659]
Gary Kramlich <grim@pidgin.im>
parents:
diff changeset
19 * GNU General Public License for more details.
f5c5bda0b96b [gaim-migrate @ 10659]
Gary Kramlich <grim@pidgin.im>
parents:
diff changeset
20 *
f5c5bda0b96b [gaim-migrate @ 10659]
Gary Kramlich <grim@pidgin.im>
parents:
diff changeset
21 * You should have received a copy of the GNU General Public License
f5c5bda0b96b [gaim-migrate @ 10659]
Gary Kramlich <grim@pidgin.im>
parents:
diff changeset
22 * along with this program; if not, write to the Free Software
f5c5bda0b96b [gaim-migrate @ 10659]
Gary Kramlich <grim@pidgin.im>
parents:
diff changeset
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
f5c5bda0b96b [gaim-migrate @ 10659]
Gary Kramlich <grim@pidgin.im>
parents:
diff changeset
24 */
15577
b8129373f65e More pidgin changes
Sean Egan <seanegan@pidgin.im>
parents: 15572
diff changeset
25 /* #warning ***pidgin*** */
15692
ecda27df58b9 Some more pidgininfication
Daniel Atallah <datallah@pidgin.im>
parents: 15619
diff changeset
26 #ifndef _PIDGIN_H_
ecda27df58b9 Some more pidgininfication
Daniel Atallah <datallah@pidgin.im>
parents: 15619
diff changeset
27 #define _PIDGIN_H_
9791
f5c5bda0b96b [gaim-migrate @ 10659]
Gary Kramlich <grim@pidgin.im>
parents:
diff changeset
28
f5c5bda0b96b [gaim-migrate @ 10659]
Gary Kramlich <grim@pidgin.im>
parents:
diff changeset
29 #ifndef _WIN32
f5c5bda0b96b [gaim-migrate @ 10659]
Gary Kramlich <grim@pidgin.im>
parents:
diff changeset
30 # include <gdk/gdkx.h>
f5c5bda0b96b [gaim-migrate @ 10659]
Gary Kramlich <grim@pidgin.im>
parents:
diff changeset
31 #endif
f5c5bda0b96b [gaim-migrate @ 10659]
Gary Kramlich <grim@pidgin.im>
parents:
diff changeset
32
f5c5bda0b96b [gaim-migrate @ 10659]
Gary Kramlich <grim@pidgin.im>
parents:
diff changeset
33 #include <gtk/gtk.h>
f5c5bda0b96b [gaim-migrate @ 10659]
Gary Kramlich <grim@pidgin.im>
parents:
diff changeset
34
14636
5306c329992c [gaim-migrate @ 17298]
Daniel Atallah <datallah@pidgin.im>
parents: 14411
diff changeset
35 #ifdef _WIN32
5306c329992c [gaim-migrate @ 17298]
Daniel Atallah <datallah@pidgin.im>
parents: 14411
diff changeset
36 # include "gtkwin32dep.h"
5306c329992c [gaim-migrate @ 17298]
Daniel Atallah <datallah@pidgin.im>
parents: 14411
diff changeset
37 #endif
5306c329992c [gaim-migrate @ 17298]
Daniel Atallah <datallah@pidgin.im>
parents: 14411
diff changeset
38
10400
5f11925078e5 [gaim-migrate @ 11631]
Sean Egan <seanegan@pidgin.im>
parents: 10062
diff changeset
39 /**
5f11925078e5 [gaim-migrate @ 11631]
Sean Egan <seanegan@pidgin.im>
parents: 10062
diff changeset
40 * Our UI's identifier.
5f11925078e5 [gaim-migrate @ 11631]
Sean Egan <seanegan@pidgin.im>
parents: 10062
diff changeset
41 */
16117
dbded756c05d Revert to internal UI name of gtk-gaim to preserve UI prefs on upgrade
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 15931
diff changeset
42 /* leave this as gtk-gaim until we have a decent way to migrate UI-prefs */
dbded756c05d Revert to internal UI name of gtk-gaim to preserve UI prefs on upgrade
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 15931
diff changeset
43 #define PIDGIN_UI "gtk-gaim"
10400
5f11925078e5 [gaim-migrate @ 11631]
Sean Egan <seanegan@pidgin.im>
parents: 10062
diff changeset
44
16123
8b98683319e7 Rename /purple/gtk preferences back to /gaim/gtk to allow for smooth upgrades
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 16117
diff changeset
45 /* change this only when we have a sane upgrade path for old prefs */
8b98683319e7 Rename /purple/gtk preferences back to /gaim/gtk to allow for smooth upgrades
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 16117
diff changeset
46 #define PIDGIN_PREFS_ROOT "/gaim/gtk"
8b98683319e7 Rename /purple/gtk preferences back to /gaim/gtk to allow for smooth upgrades
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 16117
diff changeset
47
9791
f5c5bda0b96b [gaim-migrate @ 10659]
Gary Kramlich <grim@pidgin.im>
parents:
diff changeset
48 #ifndef _WIN32
15882
1dbd5756b7bf More Gaim to Pidgin stuff
Sean Egan <seanegan@pidgin.im>
parents: 15692
diff changeset
49 # define PIDGIN_ALERT_TITLE ""
9791
f5c5bda0b96b [gaim-migrate @ 10659]
Gary Kramlich <grim@pidgin.im>
parents:
diff changeset
50 #else
15882
1dbd5756b7bf More Gaim to Pidgin stuff
Sean Egan <seanegan@pidgin.im>
parents: 15692
diff changeset
51 # define PIDGIN_ALERT_TITLE PIDGIN_NAME
9791
f5c5bda0b96b [gaim-migrate @ 10659]
Gary Kramlich <grim@pidgin.im>
parents:
diff changeset
52 #endif
f5c5bda0b96b [gaim-migrate @ 10659]
Gary Kramlich <grim@pidgin.im>
parents:
diff changeset
53
11149
c23b9fca59c5 [gaim-migrate @ 13228]
Gary Kramlich <grim@reaperworld.com>
parents: 11035
diff changeset
54 /*
10062
144767f0643a [gaim-migrate @ 11037]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 9791
diff changeset
55 * This is backwards-compatibility code for older versions of GTK+ (< 2.4.x)
144767f0643a [gaim-migrate @ 11037]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 9791
diff changeset
56 * It defines the new wrap behavior (unknown in earlier versions)
9791
f5c5bda0b96b [gaim-migrate @ 10659]
Gary Kramlich <grim@pidgin.im>
parents:
diff changeset
57 * as the old (slightly buggy) wrap behavior.
11753
4a35462e61c7 [gaim-migrate @ 14044]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 11243
diff changeset
58 * It also includes our back-ported GtkExpander
9791
f5c5bda0b96b [gaim-migrate @ 10659]
Gary Kramlich <grim@pidgin.im>
parents:
diff changeset
59 */
11149
c23b9fca59c5 [gaim-migrate @ 13228]
Gary Kramlich <grim@reaperworld.com>
parents: 11035
diff changeset
60 /** @cond */
10062
144767f0643a [gaim-migrate @ 11037]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 9791
diff changeset
61 #if (!GTK_CHECK_VERSION(2,4,0))
15600
393bc032b053 sf patch #1640011, from Celso Pinto
Mark Doliner <markdoliner@pidgin.im>
parents: 15581
diff changeset
62 # define GTK_WRAP_WORD_CHAR GTK_WRAP_WORD
393bc032b053 sf patch #1640011, from Celso Pinto
Mark Doliner <markdoliner@pidgin.im>
parents: 15581
diff changeset
63 # include "gtkexpander.h"
9791
f5c5bda0b96b [gaim-migrate @ 10659]
Gary Kramlich <grim@pidgin.im>
parents:
diff changeset
64 #endif
11149
c23b9fca59c5 [gaim-migrate @ 13228]
Gary Kramlich <grim@reaperworld.com>
parents: 11035
diff changeset
65 /** @endcond */
9791
f5c5bda0b96b [gaim-migrate @ 10659]
Gary Kramlich <grim@pidgin.im>
parents:
diff changeset
66
11243
ee8dccc558e1 [gaim-migrate @ 13408]
Mads Chr. Olesen <mads@mchro.dk>
parents: 11149
diff changeset
67 /*
12086
f7441a250416 [gaim-migrate @ 14383]
Mark Doliner <markdoliner@pidgin.im>
parents: 11986
diff changeset
68 * We include the sources for GtkComboBox and GtkCellView because
15600
393bc032b053 sf patch #1640011, from Celso Pinto
Mark Doliner <markdoliner@pidgin.im>
parents: 15581
diff changeset
69 * they don't exist in older versions of GTK+, and we use them
12086
f7441a250416 [gaim-migrate @ 14383]
Mark Doliner <markdoliner@pidgin.im>
parents: 11986
diff changeset
70 * in a few places.
f7441a250416 [gaim-migrate @ 14383]
Mark Doliner <markdoliner@pidgin.im>
parents: 11986
diff changeset
71 */
f7441a250416 [gaim-migrate @ 14383]
Mark Doliner <markdoliner@pidgin.im>
parents: 11986
diff changeset
72 #if !GTK_CHECK_VERSION(2,6,0)
f7441a250416 [gaim-migrate @ 14383]
Mark Doliner <markdoliner@pidgin.im>
parents: 11986
diff changeset
73 # include "gtkcellview.h"
f7441a250416 [gaim-migrate @ 14383]
Mark Doliner <markdoliner@pidgin.im>
parents: 11986
diff changeset
74 # include "gtkcellviewmenuitem.h"
16125
cd0c5790f26f uvwarning noticed that this include was wrong
Daniel Atallah <datallah@pidgin.im>
parents: 15931
diff changeset
75 # include "pidgincombobox.h"
12086
f7441a250416 [gaim-migrate @ 14383]
Mark Doliner <markdoliner@pidgin.im>
parents: 11986
diff changeset
76 # if !GTK_CHECK_VERSION(2,4,0)
f7441a250416 [gaim-migrate @ 14383]
Mark Doliner <markdoliner@pidgin.im>
parents: 11986
diff changeset
77 # include "gtkcelllayout.h"
15600
393bc032b053 sf patch #1640011, from Celso Pinto
Mark Doliner <markdoliner@pidgin.im>
parents: 15581
diff changeset
78 # endif /* Less than GTK+ 2.4 */
393bc032b053 sf patch #1640011, from Celso Pinto
Mark Doliner <markdoliner@pidgin.im>
parents: 15581
diff changeset
79 #endif /* Less than GTK+ 2.6 */
12086
f7441a250416 [gaim-migrate @ 14383]
Mark Doliner <markdoliner@pidgin.im>
parents: 11986
diff changeset
80
f7441a250416 [gaim-migrate @ 14383]
Mark Doliner <markdoliner@pidgin.im>
parents: 11986
diff changeset
81 /*
11243
ee8dccc558e1 [gaim-migrate @ 13408]
Mads Chr. Olesen <mads@mchro.dk>
parents: 11149
diff changeset
82 * Spacings between components, as defined by the
12709
f7dffb4b1ac3 [gaim-migrate @ 15053]
Richard Laager <rlaager@pidgin.im>
parents: 12086
diff changeset
83 * GNOME Human Interface Guidelines.
11243
ee8dccc558e1 [gaim-migrate @ 13408]
Mads Chr. Olesen <mads@mchro.dk>
parents: 11149
diff changeset
84 */
15882
1dbd5756b7bf More Gaim to Pidgin stuff
Sean Egan <seanegan@pidgin.im>
parents: 15692
diff changeset
85 #define PIDGIN_HIG_CAT_SPACE 18
1dbd5756b7bf More Gaim to Pidgin stuff
Sean Egan <seanegan@pidgin.im>
parents: 15692
diff changeset
86 #define PIDGIN_HIG_BORDER 12
1dbd5756b7bf More Gaim to Pidgin stuff
Sean Egan <seanegan@pidgin.im>
parents: 15692
diff changeset
87 #define PIDGIN_HIG_BOX_SPACE 6
11243
ee8dccc558e1 [gaim-migrate @ 13408]
Mads Chr. Olesen <mads@mchro.dk>
parents: 11149
diff changeset
88
14411
6f8984a1ffd4 [gaim-migrate @ 17052]
Mark Doliner <markdoliner@pidgin.im>
parents: 14290
diff changeset
89 /*
6f8984a1ffd4 [gaim-migrate @ 17052]
Mark Doliner <markdoliner@pidgin.im>
parents: 14290
diff changeset
90 * See GNOME bug #307304 for some discussion about the invisible
6f8984a1ffd4 [gaim-migrate @ 17052]
Mark Doliner <markdoliner@pidgin.im>
parents: 14290
diff changeset
91 * character. 0x25cf is a good choice, too.
6f8984a1ffd4 [gaim-migrate @ 17052]
Mark Doliner <markdoliner@pidgin.im>
parents: 14290
diff changeset
92 */
15882
1dbd5756b7bf More Gaim to Pidgin stuff
Sean Egan <seanegan@pidgin.im>
parents: 15692
diff changeset
93 #define PIDGIN_INVISIBLE_CHAR (gunichar)0x2022
11986
21d2ab6421a7 [gaim-migrate @ 14279]
Mark Doliner <markdoliner@pidgin.im>
parents: 11753
diff changeset
94
15692
ecda27df58b9 Some more pidgininfication
Daniel Atallah <datallah@pidgin.im>
parents: 15619
diff changeset
95 #endif /* _PIDGIN_H_ */
9791
f5c5bda0b96b [gaim-migrate @ 10659]
Gary Kramlich <grim@pidgin.im>
parents:
diff changeset
96

mercurial