Fri, 07 Dec 2018 13:18:54 -0600
gtkblist: Port plugin actions mostly off of GtkUIManager
Pidgin generates menu items in the buddy list from PurplePluginActions.
This patch ports these menu items off of the deprecated GtkUIManager
in favor of the GMenu API, except for getting the parent menu,
currently still generated with GtkUIManager. Once more of the buddy
list menu is ported to GMenu, this can be simplified some more.
|
20147
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
1 | /* pidgin |
| 15572 | 2 | * Pidgin is the legal property of its developers, whose names are too numerous |
| 12360 | 3 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 4 | * source distribution. | |
| 5 | * | |
| 6 | * This program is free software; you can redistribute it and/or modify | |
| 7 | * it under the terms of the GNU General Public License as published by | |
| 8 | * the Free Software Foundation; either version 2 of the License, or | |
| 9 | * (at your option) any later version. | |
| 10 | * | |
| 11 | * This program is distributed in the hope that it will be useful, | |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 14 | * GNU General Public License for more details. | |
| 15 | * | |
| 16 | * You should have received a copy of the GNU General Public License | |
| 17 | * 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:
16254
diff
changeset
|
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 12360 | 19 | */ |
|
35487
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35451
diff
changeset
|
20 | |
|
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35451
diff
changeset
|
21 | #ifndef _PIDGINNICKCOLORS_H_ |
|
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35451
diff
changeset
|
22 | #define _PIDGINNICKCOLORS_H_ |
|
35451
206524351826
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
21091
diff
changeset
|
23 | /** |
|
206524351826
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
21091
diff
changeset
|
24 | * SECTION:gtknickcolors |
|
206524351826
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
21091
diff
changeset
|
25 | * @section_id: pidgin-gtknickcolors |
|
206524351826
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
21091
diff
changeset
|
26 | * @short_description: <filename>gtknickcolors.h</filename> |
|
206524351826
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
21091
diff
changeset
|
27 | * @title: Conversation Nick Colors |
|
206524351826
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
21091
diff
changeset
|
28 | */ |
|
206524351826
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
21091
diff
changeset
|
29 | |
|
37992
0185eb26ac7d
Use GdkRGBA instead of GdkColor.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
35500
diff
changeset
|
30 | static const GdkRGBA nick_seed_colors[] = { |
|
38010
e7fe02862977
Fix GdkRGBA initializer types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37992
diff
changeset
|
31 | {64764/65535.0, 59881/65535.0, 20303/65535.0, 1}, /* Butter #1 */ |
|
e7fe02862977
Fix GdkRGBA initializer types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37992
diff
changeset
|
32 | {60909/65535.0, 54484/65535.0, 0/65535.0, 1}, /* Butter #2 */ |
|
e7fe02862977
Fix GdkRGBA initializer types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37992
diff
changeset
|
33 | {50372/65535.0, 41120/65535.0, 0/65535.0, 1}, /* Butter #3 */ |
|
e7fe02862977
Fix GdkRGBA initializer types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37992
diff
changeset
|
34 | {64764/65535.0, 44975/65535.0, 15934/65535.0, 1}, /* Orange #1 */ |
|
e7fe02862977
Fix GdkRGBA initializer types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37992
diff
changeset
|
35 | {62965/65535.0, 31097/65535.0, 0/65535.0, 1}, /* Orange #2 */ |
|
e7fe02862977
Fix GdkRGBA initializer types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37992
diff
changeset
|
36 | {52942/65535.0, 23644/65535.0, 0/65535.0, 1}, /* Orange #3 */ |
|
e7fe02862977
Fix GdkRGBA initializer types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37992
diff
changeset
|
37 | {59811/65535.0, 47545/65535.0, 28270/65535.0, 1}, /* Chocolate #1 */ |
|
e7fe02862977
Fix GdkRGBA initializer types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37992
diff
changeset
|
38 | {49601/65535.0, 32125/65535.0, 4369/65535.0, 1}, /* Chocolate #2 */ |
|
e7fe02862977
Fix GdkRGBA initializer types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37992
diff
changeset
|
39 | {36751/65535.0, 22873/65535.0, 514/65535.0, 1}, /* Chocolate #3 */ |
|
e7fe02862977
Fix GdkRGBA initializer types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37992
diff
changeset
|
40 | {35466/65535.0, 58082/65535.0, 13364/65535.0, 1}, /* Chameleon #1 */ |
|
e7fe02862977
Fix GdkRGBA initializer types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37992
diff
changeset
|
41 | {29555/65535.0, 53970/65535.0, 5654/65535.0, 1}, /* Chameleon #2 */ |
|
e7fe02862977
Fix GdkRGBA initializer types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37992
diff
changeset
|
42 | {20046/65535.0, 39578/65535.0, 1542/65535.0, 1}, /* Chameleon #3 */ |
|
e7fe02862977
Fix GdkRGBA initializer types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37992
diff
changeset
|
43 | {29289/65535.0, 40863/65535.0, 53199/65535.0, 1}, /* Sky Blue #1 */ |
|
e7fe02862977
Fix GdkRGBA initializer types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37992
diff
changeset
|
44 | {13364/65535.0, 25957/65535.0, 42148/65535.0, 1}, /* Sky Blue #2 */ |
|
e7fe02862977
Fix GdkRGBA initializer types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37992
diff
changeset
|
45 | { 8224/65535.0, 19018/65535.0, 34695/65535.0, 1}, /* Sky Blue #3 */ |
|
e7fe02862977
Fix GdkRGBA initializer types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37992
diff
changeset
|
46 | {44461/65535.0, 32639/65535.0, 43167/65535.0, 1}, /* Plum #1 */ |
|
e7fe02862977
Fix GdkRGBA initializer types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37992
diff
changeset
|
47 | {30069/65535.0, 20560/65535.0, 31611/65535.0, 1}, /* Plum #2 */ |
|
e7fe02862977
Fix GdkRGBA initializer types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37992
diff
changeset
|
48 | {23644/65535.0, 13621/65535.0, 26214/65535.0, 1}, /* Plum #3 */ |
|
e7fe02862977
Fix GdkRGBA initializer types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37992
diff
changeset
|
49 | {61423/65535.0, 10537/65535.0, 10537/65535.0, 1}, /* Scarlet Red #1 */ |
|
e7fe02862977
Fix GdkRGBA initializer types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37992
diff
changeset
|
50 | {52428/65535.0, 0/65535.0, 0/65535.0, 1}, /* Scarlet Red #2 */ |
|
e7fe02862977
Fix GdkRGBA initializer types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37992
diff
changeset
|
51 | {42148/65535.0, 0/65535.0, 0/65535.0, 1}, /* Scarlet Red #3 */ |
|
e7fe02862977
Fix GdkRGBA initializer types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37992
diff
changeset
|
52 | {34952/65535.0, 35466/65535.0, 34181/65535.0, 1}, /* Aluminium #4*/ |
|
e7fe02862977
Fix GdkRGBA initializer types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37992
diff
changeset
|
53 | {21845/65535.0, 22359/65535.0, 21331/65535.0, 1}, /* Aluminium #5*/ |
|
e7fe02862977
Fix GdkRGBA initializer types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37992
diff
changeset
|
54 | {11822/65535.0, 13364/65535.0, 13878/65535.0, 1} /* Aluminium #6*/ |
| 12360 | 55 | }; |
| 56 | ||
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
57 | #define PIDGIN_NUM_NICK_SEED_COLORS (sizeof(nick_seed_colors) / sizeof(nick_seed_colors[0])) |
| 12360 | 58 | |
| 59 | #endif |