annotate pidgin/pidgin.h @ 20234:a02994afdb43

applied changes from 4dd446ee59f869036e9065d0f45270444f319f1d through f6deeedd3d31f0863466fff4c81816aee12122a6
author Richard Laager <rlaager@wiktel.com>
date Fri, 28 Sep 2007 15:53:36 +0000
parents 0f964c98798c
children 6b8bc3309ab7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15514
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
1 /**
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
2 * @file pidgin.h UI definitions and includes
16193
247e421c4fa6 Rename the Doxygen group from gtkui to pidgin.
Richard Laager <rlaager@wiktel.com>
parents: 16064
diff changeset
3 * @ingroup pidgin
15514
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
4 *
15871
66dff3dfdea6 Re-sed the copyright notices so they don't all talk about Purple.
Richard Laager <rlaager@wiktel.com>
parents: 15823
diff changeset
5 * pidgin
15514
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
6 *
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
7 * Pidgin is the legal property of its developers, whose names are too numerous
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
8 * to list here. Please refer to the COPYRIGHT file distributed with this
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
9 * source distribution.
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
10 *
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
11 * This program is free software; you can redistribute it and/or modify
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
12 * it under the terms of the GNU General Public License as published by
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
13 * the Free Software Foundation; either version 2 of the License, or
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
14 * (at your option) any later version.
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
15 *
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
16 * This program is distributed in the hope that it will be useful,
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
19 * GNU General Public License for more details.
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
20 *
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
21 * You should have received a copy of the GNU General Public License
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
22 * along with this program; if not, write to the Free Software
19680
44b4e8bd759b The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 19478
diff changeset
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
15514
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
24 */
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
25 /* #warning ***pidgin*** */
15632
a830f9756f23 Some more pidgininfication
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15539
diff changeset
26 #ifndef _PIDGIN_H_
a830f9756f23 Some more pidgininfication
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15539
diff changeset
27 #define _PIDGIN_H_
15514
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
28
20191
0f964c98798c applied changes from 8df1cedfbc540695a8645b21230d41783fe4f171
Richard Laager <rlaager@wiktel.com>
parents: 19680
diff changeset
29 #include <gtk/gtk.h>
0f964c98798c applied changes from 8df1cedfbc540695a8645b21230d41783fe4f171
Richard Laager <rlaager@wiktel.com>
parents: 19680
diff changeset
30
19478
b2578b2d4bc4 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@gmail.com>
parents: 16954
diff changeset
31 #ifdef GDK_WINDOWING_X11
15514
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
32 # include <gdk/gdkx.h>
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
33 #endif
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
34
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
35 #ifdef _WIN32
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
36 # include "gtkwin32dep.h"
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
37 #endif
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
38
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
39 /**
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
40 * Our UI's identifier.
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
41 */
16056
fccb6b33aba6 Revert to internal UI name of gtk-gaim to preserve UI prefs on upgrade
Stu Tomlinson <stu@nosnilmot.com>
parents: 15871
diff changeset
42 /* leave this as gtk-gaim until we have a decent way to migrate UI-prefs */
fccb6b33aba6 Revert to internal UI name of gtk-gaim to preserve UI prefs on upgrade
Stu Tomlinson <stu@nosnilmot.com>
parents: 15871
diff changeset
43 #define PIDGIN_UI "gtk-gaim"
15514
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
44
16062
07554cc5d090 Rename /purple/gtk preferences back to /gaim/gtk to allow for smooth upgrades
Stu Tomlinson <stu@nosnilmot.com>
parents: 16056
diff changeset
45 /* change this only when we have a sane upgrade path for old prefs */
16427
4999bbc52881 Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@gmail.com>
parents: 16193
diff changeset
46 #define PIDGIN_PREFS_ROOT "/pidgin"
16062
07554cc5d090 Rename /purple/gtk preferences back to /gaim/gtk to allow for smooth upgrades
Stu Tomlinson <stu@nosnilmot.com>
parents: 16056
diff changeset
47
16954
816759ae9644 Clarify the comments on the names for translators.
Richard Laager <rlaager@wiktel.com>
parents: 16932
diff changeset
48 /* Translators may want to transliterate the name.
816759ae9644 Clarify the comments on the names for translators.
Richard Laager <rlaager@wiktel.com>
parents: 16932
diff changeset
49 It is not to be translated. */
16932
b668951121d8 Change the PIDGIN_NAME stuff to allow translators to transliterate the
Richard Laager <rlaager@wiktel.com>
parents: 16427
diff changeset
50 #define PIDGIN_NAME _("Pidgin")
b668951121d8 Change the PIDGIN_NAME stuff to allow translators to transliterate the
Richard Laager <rlaager@wiktel.com>
parents: 16427
diff changeset
51
15514
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
52 #ifndef _WIN32
15821
cebfc6af3eb5 More Gaim to Pidgin stuff
Sean Egan <seanegan@gmail.com>
parents: 15632
diff changeset
53 # define PIDGIN_ALERT_TITLE ""
15514
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
54 #else
15821
cebfc6af3eb5 More Gaim to Pidgin stuff
Sean Egan <seanegan@gmail.com>
parents: 15632
diff changeset
55 # define PIDGIN_ALERT_TITLE PIDGIN_NAME
15514
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
56 #endif
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
57
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
58 /*
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
59 * This is backwards-compatibility code for older versions of GTK+ (< 2.4.x)
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
60 * It defines the new wrap behavior (unknown in earlier versions)
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
61 * as the old (slightly buggy) wrap behavior.
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
62 * It also includes our back-ported GtkExpander
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
63 */
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
64 /** @cond */
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
65 #if (!GTK_CHECK_VERSION(2,4,0))
15539
7ae72b7c02b1 sf patch #1640011, from Celso Pinto
Mark Doliner <mark@kingant.net>
parents: 15514
diff changeset
66 # define GTK_WRAP_WORD_CHAR GTK_WRAP_WORD
7ae72b7c02b1 sf patch #1640011, from Celso Pinto
Mark Doliner <mark@kingant.net>
parents: 15514
diff changeset
67 # include "gtkexpander.h"
15514
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
68 #endif
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
69 /** @endcond */
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
70
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
71 /*
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
72 * We include the sources for GtkComboBox and GtkCellView because
15539
7ae72b7c02b1 sf patch #1640011, from Celso Pinto
Mark Doliner <mark@kingant.net>
parents: 15514
diff changeset
73 * they don't exist in older versions of GTK+, and we use them
15514
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
74 * in a few places.
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
75 */
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
76 #if !GTK_CHECK_VERSION(2,6,0)
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
77 # include "gtkcellview.h"
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
78 # include "gtkcellviewmenuitem.h"
16052
605da11e8535 uvwarning noticed that this include was wrong
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15871
diff changeset
79 # include "pidgincombobox.h"
15514
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
80 # if !GTK_CHECK_VERSION(2,4,0)
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
81 # include "gtkcelllayout.h"
15539
7ae72b7c02b1 sf patch #1640011, from Celso Pinto
Mark Doliner <mark@kingant.net>
parents: 15514
diff changeset
82 # endif /* Less than GTK+ 2.4 */
7ae72b7c02b1 sf patch #1640011, from Celso Pinto
Mark Doliner <mark@kingant.net>
parents: 15514
diff changeset
83 #endif /* Less than GTK+ 2.6 */
15514
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
84
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
85 /*
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
86 * Spacings between components, as defined by the
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
87 * GNOME Human Interface Guidelines.
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
88 */
15821
cebfc6af3eb5 More Gaim to Pidgin stuff
Sean Egan <seanegan@gmail.com>
parents: 15632
diff changeset
89 #define PIDGIN_HIG_CAT_SPACE 18
cebfc6af3eb5 More Gaim to Pidgin stuff
Sean Egan <seanegan@gmail.com>
parents: 15632
diff changeset
90 #define PIDGIN_HIG_BORDER 12
cebfc6af3eb5 More Gaim to Pidgin stuff
Sean Egan <seanegan@gmail.com>
parents: 15632
diff changeset
91 #define PIDGIN_HIG_BOX_SPACE 6
15514
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
92
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
93 /*
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
94 * See GNOME bug #307304 for some discussion about the invisible
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
95 * character. 0x25cf is a good choice, too.
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
96 */
15821
cebfc6af3eb5 More Gaim to Pidgin stuff
Sean Egan <seanegan@gmail.com>
parents: 15632
diff changeset
97 #define PIDGIN_INVISIBLE_CHAR (gunichar)0x2022
15514
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
98
15632
a830f9756f23 Some more pidgininfication
Daniel Atallah <daniel.atallah@gmail.com>
parents: 15539
diff changeset
99 #endif /* _PIDGIN_H_ */
15514
535f002e7b0f More pidgin changes
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
100