Sun, 09 Nov 2008 20:55:10 +0000
Added menu items to buddy list context menu to start voice and video sessions
After discussing the matter with Maiku, we decided to have two choises.
"Audio call" which will show up if audio sessions is possible with a buddy and
the other item is either "Audio/Video" or "Video" depending on if the buddy
supports both at the same time or not
| 5530 | 1 | /** |
| 2 | * @file gtkprefs.h GTK+ Preferences | |
|
16254
eeb2bba4dc94
Rename the Doxygen group from gtkui to pidgin.
Richard Laager <rlaager@pidgin.im>
parents:
15931
diff
changeset
|
3 | * @ingroup pidgin |
|
20147
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
4 | */ |
|
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
5 | |
|
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
6 | /* pidgin |
| 5530 | 7 | * |
| 15572 | 8 | * Pidgin is the legal property of its developers, whose names are too numerous |
| 8046 | 9 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 10 | * source distribution. | |
| 5530 | 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:
16254
diff
changeset
|
24 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 5530 | 25 | * |
| 26 | */ | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
27 | #ifndef _PIDGINPREFS_H_ |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
28 | #define _PIDGINPREFS_H_ |
|
9713
bb37562302a1
[gaim-migrate @ 10574]
Mark Doliner <markdoliner@pidgin.im>
parents:
9422
diff
changeset
|
29 | |
| 7976 | 30 | #include "prefs.h" |
| 5530 | 31 | |
|
22648
e286d795c5f9
Patch from Marcus Lundblad ('mlundblad') to improve audio support in xmpp.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
32 | |
| 5530 | 33 | /** |
| 34 | * Initializes all UI-specific preferences. | |
| 35 | */ | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
36 | void pidgin_prefs_init(void); |
| 5530 | 37 | |
| 38 | /** | |
| 39 | * Shows the preferences dialog. | |
| 40 | */ | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
41 | void pidgin_prefs_show(void); |
| 5530 | 42 | |
| 43 | /** | |
| 7976 | 44 | * Add a new checkbox for a boolean preference |
| 45 | * | |
| 46 | * @param title The text to be displayed as the checkbox label | |
| 15884 | 47 | * @param key The key of the purple bool pref that will be represented by the checkbox |
| 7976 | 48 | * @param page The page to which the new checkbox will be added |
| 49 | */ | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
50 | GtkWidget *pidgin_prefs_checkbox(const char *title, const char *key, |
| 7987 | 51 | GtkWidget *page); |
| 7976 | 52 | |
| 53 | /** | |
| 54 | * Add a new spin button representing an int preference | |
| 55 | * | |
| 56 | * @param page The page to which the spin button will be added | |
| 57 | * @param title The text to be displayed as the spin button label | |
| 7987 | 58 | * @param key The key of the int pref that will be represented by the spin button |
| 7976 | 59 | * @param min The minimum value of the spin button |
| 60 | * @param max The maximum value of the spin button | |
| 61 | * @param sg If not NULL, the size group to which the spin button will be added | |
|
8238
f7d22f952df5
[gaim-migrate @ 8961]
Mark Doliner <markdoliner@pidgin.im>
parents:
8046
diff
changeset
|
62 | * @return An hbox containing both the label and the spinner. Can be |
|
8735
01248ea222d3
[gaim-migrate @ 9490]
Jonathan Champ <royanee@users.sourceforge.net>
parents:
8713
diff
changeset
|
63 | * used to set the widgets to sensitive or insensitive based on the |
|
8238
f7d22f952df5
[gaim-migrate @ 8961]
Mark Doliner <markdoliner@pidgin.im>
parents:
8046
diff
changeset
|
64 | * value of a checkbox. |
| 7976 | 65 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
66 | GtkWidget *pidgin_prefs_labeled_spin_button(GtkWidget *page, |
| 10367 | 67 | const gchar *title, const char *key, int min, int max, GtkSizeGroup *sg); |
| 7976 | 68 | |
| 69 | /** | |
| 9422 | 70 | * Add a new entry representing a string preference |
| 71 | * | |
| 72 | * @param page The page to which the entry will be added | |
| 73 | * @param title The text to be displayed as the entry label | |
| 74 | * @param key The key of the string pref that will be represented by the entry | |
| 75 | * @param sg If not NULL, the size group to which the entry will be added | |
| 76 | * | |
| 77 | * @return An hbox containing both the label and the entry. Can be used to set | |
| 78 | * the widgets to sensitive or insensitive based on the value of a | |
| 79 | * checkbox. | |
| 80 | */ | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
81 | GtkWidget *pidgin_prefs_labeled_entry(GtkWidget *page, const gchar *title, |
| 10367 | 82 | const char *key, GtkSizeGroup *sg); |
| 9422 | 83 | |
| 84 | /** | |
| 7976 | 85 | * Add a new dropdown representing a preference of the specified type |
| 86 | * | |
| 7978 | 87 | * @param page The page to which the dropdown will be added |
| 88 | * @param title The text to be displayed as the dropdown label | |
| 7976 | 89 | * @param type The type of preference to be stored in the generated dropdown |
| 7987 | 90 | * @param key The key of the pref that will be represented by the dropdown |
| 8713 | 91 | * @param ... The choices to be added to the dropdown, choices should be |
| 92 | * paired as label/value | |
| 7976 | 93 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
94 | GtkWidget *pidgin_prefs_dropdown(GtkWidget *page, const gchar *title, |
| 15884 | 95 | PurplePrefType type, const char *key, ...); |
| 7976 | 96 | |
| 97 | /** | |
| 98 | * Add a new dropdown representing a preference of the specified type | |
| 99 | * | |
| 7978 | 100 | * @param page The page to which the dropdown will be added |
| 101 | * @param title The text to be displayed as the dropdown label | |
| 7987 | 102 | * @param type The type of preference to be stored in the dropdown |
| 103 | * @param key The key of the pref that will be represented by the dropdown | |
| 8713 | 104 | * @param menuitems The choices to be added to the dropdown, choices should |
| 105 | * be paired as label/value | |
| 7976 | 106 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
107 | GtkWidget *pidgin_prefs_dropdown_from_list(GtkWidget *page, |
| 15884 | 108 | const gchar * title, PurplePrefType type, const char *key, |
| 7987 | 109 | GList *menuitems); |
| 7976 | 110 | |
|
8905
cedfa637389f
[gaim-migrate @ 9674]
Mark Doliner <markdoliner@pidgin.im>
parents:
8900
diff
changeset
|
111 | /** |
|
cedfa637389f
[gaim-migrate @ 9674]
Mark Doliner <markdoliner@pidgin.im>
parents:
8900
diff
changeset
|
112 | * Rename legacy prefs and delete some that no longer exist. |
|
cedfa637389f
[gaim-migrate @ 9674]
Mark Doliner <markdoliner@pidgin.im>
parents:
8900
diff
changeset
|
113 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
114 | void pidgin_prefs_update_old(void); |
|
8905
cedfa637389f
[gaim-migrate @ 9674]
Mark Doliner <markdoliner@pidgin.im>
parents:
8900
diff
changeset
|
115 | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
116 | #endif /* _PIDGINPREFS_H_ */ |