Sun, 23 Nov 2008 18:30:31 +0000
Clean up some crufts. I think this is now mergeable with .next.minor.
| 9791 | 1 | /** |
| 15577 | 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 |
|
20330
650a7af9c238
remove gpl boilerplate from doxygen docs
Sean Egan <seanegan@pidgin.im>
parents:
19859
diff
changeset
|
4 | */ |
|
650a7af9c238
remove gpl boilerplate from doxygen docs
Sean Egan <seanegan@pidgin.im>
parents:
19859
diff
changeset
|
5 | |
|
650a7af9c238
remove gpl boilerplate from doxygen docs
Sean Egan <seanegan@pidgin.im>
parents:
19859
diff
changeset
|
6 | /* pidgin |
| 9791 | 7 | * |
| 15572 | 8 | * Pidgin is the legal property of its developers, whose names are too numerous |
| 9791 | 9 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 10 | * source distribution. | |
| 11 | * | |
| 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. | |
| 16 | * | |
| 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. | |
| 21 | * | |
| 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 | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19656
diff
changeset
|
24 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 9791 | 25 | */ |
| 15577 | 26 | /* #warning ***pidgin*** */ |
|
15692
ecda27df58b9
Some more pidgininfication
Daniel Atallah <datallah@pidgin.im>
parents:
15619
diff
changeset
|
27 | #ifndef _PIDGIN_H_ |
|
ecda27df58b9
Some more pidgininfication
Daniel Atallah <datallah@pidgin.im>
parents:
15619
diff
changeset
|
28 | #define _PIDGIN_H_ |
| 9791 | 29 | |
|
20360
4cfcbb5dbf5e
Fix include ordering so GDK_WINDOWING_X11 is defined with older Gtk
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20330
diff
changeset
|
30 | #include <gtk/gtk.h> |
|
4cfcbb5dbf5e
Fix include ordering so GDK_WINDOWING_X11 is defined with older Gtk
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20330
diff
changeset
|
31 | |
|
19656
c7cdc9801b60
Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents:
17001
diff
changeset
|
32 | #ifdef GDK_WINDOWING_X11 |
| 9791 | 33 | # include <gdk/gdkx.h> |
| 34 | #endif | |
| 35 | ||
|
14636
5306c329992c
[gaim-migrate @ 17298]
Daniel Atallah <datallah@pidgin.im>
parents:
14411
diff
changeset
|
36 | #ifdef _WIN32 |
|
5306c329992c
[gaim-migrate @ 17298]
Daniel Atallah <datallah@pidgin.im>
parents:
14411
diff
changeset
|
37 | # include "gtkwin32dep.h" |
|
5306c329992c
[gaim-migrate @ 17298]
Daniel Atallah <datallah@pidgin.im>
parents:
14411
diff
changeset
|
38 | #endif |
|
5306c329992c
[gaim-migrate @ 17298]
Daniel Atallah <datallah@pidgin.im>
parents:
14411
diff
changeset
|
39 | |
| 10400 | 40 | /** |
| 41 | * Our UI's identifier. | |
| 42 | */ | |
|
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
|
43 | /* 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
|
44 | #define PIDGIN_UI "gtk-gaim" |
| 10400 | 45 | |
|
16123
8b98683319e7
Rename /purple/gtk preferences back to /gaim/gtk to allow for smooth upgrades
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16117
diff
changeset
|
46 | /* change this only when we have a sane upgrade path for old prefs */ |
|
16478
19107605c565
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@pidgin.im>
parents:
16254
diff
changeset
|
47 | #define PIDGIN_PREFS_ROOT "/pidgin" |
|
16123
8b98683319e7
Rename /purple/gtk preferences back to /gaim/gtk to allow for smooth upgrades
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16117
diff
changeset
|
48 | |
|
17001
09ceabd6b129
Clarify the comments on the names for translators.
Richard Laager <rlaager@pidgin.im>
parents:
16977
diff
changeset
|
49 | /* Translators may want to transliterate the name. |
|
09ceabd6b129
Clarify the comments on the names for translators.
Richard Laager <rlaager@pidgin.im>
parents:
16977
diff
changeset
|
50 | It is not to be translated. */ |
|
16977
c9cb49bea66d
Change the PIDGIN_NAME stuff to allow translators to transliterate the
Richard Laager <rlaager@pidgin.im>
parents:
16478
diff
changeset
|
51 | #define PIDGIN_NAME _("Pidgin") |
|
c9cb49bea66d
Change the PIDGIN_NAME stuff to allow translators to transliterate the
Richard Laager <rlaager@pidgin.im>
parents:
16478
diff
changeset
|
52 | |
| 9791 | 53 | #ifndef _WIN32 |
| 15882 | 54 | # define PIDGIN_ALERT_TITLE "" |
| 9791 | 55 | #else |
| 15882 | 56 | # define PIDGIN_ALERT_TITLE PIDGIN_NAME |
| 9791 | 57 | #endif |
| 58 | ||
|
11149
c23b9fca59c5
[gaim-migrate @ 13228]
Gary Kramlich <grim@reaperworld.com>
parents:
11035
diff
changeset
|
59 | /* |
|
10062
144767f0643a
[gaim-migrate @ 11037]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9791
diff
changeset
|
60 | * 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
|
61 | * It defines the new wrap behavior (unknown in earlier versions) |
| 9791 | 62 | * as the old (slightly buggy) wrap behavior. |
|
11753
4a35462e61c7
[gaim-migrate @ 14044]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
11243
diff
changeset
|
63 | * It also includes our back-ported GtkExpander |
| 9791 | 64 | */ |
|
11149
c23b9fca59c5
[gaim-migrate @ 13228]
Gary Kramlich <grim@reaperworld.com>
parents:
11035
diff
changeset
|
65 | /** @cond */ |
|
10062
144767f0643a
[gaim-migrate @ 11037]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9791
diff
changeset
|
66 | #if (!GTK_CHECK_VERSION(2,4,0)) |
|
15600
393bc032b053
sf patch #1640011, from Celso Pinto
Mark Doliner <markdoliner@pidgin.im>
parents:
15581
diff
changeset
|
67 | # define GTK_WRAP_WORD_CHAR GTK_WRAP_WORD |
|
393bc032b053
sf patch #1640011, from Celso Pinto
Mark Doliner <markdoliner@pidgin.im>
parents:
15581
diff
changeset
|
68 | # include "gtkexpander.h" |
| 9791 | 69 | #endif |
|
11149
c23b9fca59c5
[gaim-migrate @ 13228]
Gary Kramlich <grim@reaperworld.com>
parents:
11035
diff
changeset
|
70 | /** @endcond */ |
| 9791 | 71 | |
| 11243 | 72 | /* |
|
12086
f7441a250416
[gaim-migrate @ 14383]
Mark Doliner <markdoliner@pidgin.im>
parents:
11986
diff
changeset
|
73 | * 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
|
74 | * 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
|
75 | * in a few places. |
|
f7441a250416
[gaim-migrate @ 14383]
Mark Doliner <markdoliner@pidgin.im>
parents:
11986
diff
changeset
|
76 | */ |
|
f7441a250416
[gaim-migrate @ 14383]
Mark Doliner <markdoliner@pidgin.im>
parents:
11986
diff
changeset
|
77 | #if !GTK_CHECK_VERSION(2,6,0) |
|
f7441a250416
[gaim-migrate @ 14383]
Mark Doliner <markdoliner@pidgin.im>
parents:
11986
diff
changeset
|
78 | # include "gtkcellview.h" |
|
f7441a250416
[gaim-migrate @ 14383]
Mark Doliner <markdoliner@pidgin.im>
parents:
11986
diff
changeset
|
79 | # include "gtkcellviewmenuitem.h" |
|
16125
cd0c5790f26f
uvwarning noticed that this include was wrong
Daniel Atallah <datallah@pidgin.im>
parents:
15931
diff
changeset
|
80 | # include "pidgincombobox.h" |
|
12086
f7441a250416
[gaim-migrate @ 14383]
Mark Doliner <markdoliner@pidgin.im>
parents:
11986
diff
changeset
|
81 | # if !GTK_CHECK_VERSION(2,4,0) |
|
f7441a250416
[gaim-migrate @ 14383]
Mark Doliner <markdoliner@pidgin.im>
parents:
11986
diff
changeset
|
82 | # include "gtkcelllayout.h" |
|
15600
393bc032b053
sf patch #1640011, from Celso Pinto
Mark Doliner <markdoliner@pidgin.im>
parents:
15581
diff
changeset
|
83 | # endif /* Less than GTK+ 2.4 */ |
|
393bc032b053
sf patch #1640011, from Celso Pinto
Mark Doliner <markdoliner@pidgin.im>
parents:
15581
diff
changeset
|
84 | #endif /* Less than GTK+ 2.6 */ |
|
12086
f7441a250416
[gaim-migrate @ 14383]
Mark Doliner <markdoliner@pidgin.im>
parents:
11986
diff
changeset
|
85 | |
|
f7441a250416
[gaim-migrate @ 14383]
Mark Doliner <markdoliner@pidgin.im>
parents:
11986
diff
changeset
|
86 | /* |
| 11243 | 87 | * Spacings between components, as defined by the |
|
12709
f7dffb4b1ac3
[gaim-migrate @ 15053]
Richard Laager <rlaager@pidgin.im>
parents:
12086
diff
changeset
|
88 | * GNOME Human Interface Guidelines. |
| 11243 | 89 | */ |
| 15882 | 90 | #define PIDGIN_HIG_CAT_SPACE 18 |
| 91 | #define PIDGIN_HIG_BORDER 12 | |
| 92 | #define PIDGIN_HIG_BOX_SPACE 6 | |
| 11243 | 93 | |
|
14411
6f8984a1ffd4
[gaim-migrate @ 17052]
Mark Doliner <markdoliner@pidgin.im>
parents:
14290
diff
changeset
|
94 | /* |
|
6f8984a1ffd4
[gaim-migrate @ 17052]
Mark Doliner <markdoliner@pidgin.im>
parents:
14290
diff
changeset
|
95 | * See GNOME bug #307304 for some discussion about the invisible |
|
6f8984a1ffd4
[gaim-migrate @ 17052]
Mark Doliner <markdoliner@pidgin.im>
parents:
14290
diff
changeset
|
96 | * character. 0x25cf is a good choice, too. |
|
6f8984a1ffd4
[gaim-migrate @ 17052]
Mark Doliner <markdoliner@pidgin.im>
parents:
14290
diff
changeset
|
97 | */ |
| 15882 | 98 | #define PIDGIN_INVISIBLE_CHAR (gunichar)0x2022 |
|
11986
21d2ab6421a7
[gaim-migrate @ 14279]
Mark Doliner <markdoliner@pidgin.im>
parents:
11753
diff
changeset
|
99 | |
|
15692
ecda27df58b9
Some more pidgininfication
Daniel Atallah <datallah@pidgin.im>
parents:
15619
diff
changeset
|
100 | #endif /* _PIDGIN_H_ */ |
| 9791 | 101 |