Fri, 25 May 2007 00:36:20 +0000
Use purple_conversation_extended_menu to add items in the conversation
window menu. This closes #605.
| 10418 | 1 | /** |
|
10469
3edb0348ba88
[gaim-migrate @ 11751]
Mark Doliner <markdoliner@pidgin.im>
parents:
10447
diff
changeset
|
2 | * @file gtksavedstatuses.h GTK+ Saved Status Editor UI |
|
16254
eeb2bba4dc94
Rename the Doxygen group from gtkui to pidgin.
Richard Laager <rlaager@pidgin.im>
parents:
15931
diff
changeset
|
3 | * @ingroup pidgin |
| 10418 | 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 |
| 10418 | 6 | * |
| 15572 | 7 | * Pidgin is the legal property of its developers, whose names are too numerous |
| 10418 | 8 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 9 | * source distribution. | |
| 10 | * | |
| 11 | * This program is free software; you can redistribute it and/or modify | |
| 12 | * it under the terms of the GNU General Public License as published by | |
| 13 | * the Free Software Foundation; either version 2 of the License, or | |
| 14 | * (at your option) any later version. | |
| 15 | * | |
| 16 | * This program is distributed in the hope that it will be useful, | |
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 19 | * GNU General Public License for more details. | |
| 20 | * | |
| 21 | * You should have received a copy of the GNU General Public License | |
| 22 | * along with this program; if not, write to the Free Software | |
| 23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 24 | */ | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
25 | #ifndef _PIDGINSAVEDSTATUSES_H_ |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
26 | #define _PIDGINSAVEDSTATUSES_H_ |
| 10418 | 27 | |
|
10421
34797f8b5742
[gaim-migrate @ 11672]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
28 | #include "savedstatuses.h" |
| 10418 | 29 | #include "status.h" |
| 30 | ||
| 31 | /** | |
| 32 | * Shows the status window. | |
| 33 | */ | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
34 | void pidgin_status_window_show(void); |
| 10418 | 35 | |
| 36 | /** | |
| 37 | * Hides the status window. | |
| 38 | */ | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
39 | void pidgin_status_window_hide(void); |
| 10418 | 40 | |
| 41 | /** | |
|
10447
887380ec66f5
[gaim-migrate @ 11712]
Mark Doliner <markdoliner@pidgin.im>
parents:
10421
diff
changeset
|
42 | * Shows a status editor (used for adding a new saved status or |
|
887380ec66f5
[gaim-migrate @ 11712]
Mark Doliner <markdoliner@pidgin.im>
parents:
10421
diff
changeset
|
43 | * editing an already existing saved status). |
|
887380ec66f5
[gaim-migrate @ 11712]
Mark Doliner <markdoliner@pidgin.im>
parents:
10421
diff
changeset
|
44 | * |
|
13176
df549de66219
[gaim-migrate @ 15538]
Mark Doliner <markdoliner@pidgin.im>
parents:
13014
diff
changeset
|
45 | * @param edit TRUE if we want to edit an existing saved |
|
df549de66219
[gaim-migrate @ 15538]
Mark Doliner <markdoliner@pidgin.im>
parents:
13014
diff
changeset
|
46 | * status or FALSE to create a new one. You |
|
df549de66219
[gaim-migrate @ 15538]
Mark Doliner <markdoliner@pidgin.im>
parents:
13014
diff
changeset
|
47 | * can not edit transient statuses--they don't |
|
df549de66219
[gaim-migrate @ 15538]
Mark Doliner <markdoliner@pidgin.im>
parents:
13014
diff
changeset
|
48 | * have titles. If you want to edit a transient |
|
df549de66219
[gaim-migrate @ 15538]
Mark Doliner <markdoliner@pidgin.im>
parents:
13014
diff
changeset
|
49 | * status, set this to FALSE and seed the dialog |
|
df549de66219
[gaim-migrate @ 15538]
Mark Doliner <markdoliner@pidgin.im>
parents:
13014
diff
changeset
|
50 | * with the transient status using the status |
|
df549de66219
[gaim-migrate @ 15538]
Mark Doliner <markdoliner@pidgin.im>
parents:
13014
diff
changeset
|
51 | * parameter to this function. |
|
df549de66219
[gaim-migrate @ 15538]
Mark Doliner <markdoliner@pidgin.im>
parents:
13014
diff
changeset
|
52 | * @param status If edit is TRUE then this should be a |
| 15884 | 53 | * pointer to the PurpleSavedStatus to edit. |
|
13176
df549de66219
[gaim-migrate @ 15538]
Mark Doliner <markdoliner@pidgin.im>
parents:
13014
diff
changeset
|
54 | * If edit is FALSE then this can be NULL, |
|
df549de66219
[gaim-migrate @ 15538]
Mark Doliner <markdoliner@pidgin.im>
parents:
13014
diff
changeset
|
55 | * or you can pass in a saved status to |
|
df549de66219
[gaim-migrate @ 15538]
Mark Doliner <markdoliner@pidgin.im>
parents:
13014
diff
changeset
|
56 | * seed the initial values of the new status. |
|
10421
34797f8b5742
[gaim-migrate @ 11672]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
57 | */ |
| 15884 | 58 | void pidgin_status_editor_show(gboolean edit, PurpleSavedStatus *status); |
|
10421
34797f8b5742
[gaim-migrate @ 11672]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
59 | |
|
34797f8b5742
[gaim-migrate @ 11672]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
60 | /** |
|
13014
fa17f785b6fe
[gaim-migrate @ 15367]
Mark Doliner <markdoliner@pidgin.im>
parents:
12245
diff
changeset
|
61 | * Creates a dropdown menu of saved statuses and calls a callback |
|
fa17f785b6fe
[gaim-migrate @ 15367]
Mark Doliner <markdoliner@pidgin.im>
parents:
12245
diff
changeset
|
62 | * when one is selected |
|
fa17f785b6fe
[gaim-migrate @ 15367]
Mark Doliner <markdoliner@pidgin.im>
parents:
12245
diff
changeset
|
63 | * |
|
fa17f785b6fe
[gaim-migrate @ 15367]
Mark Doliner <markdoliner@pidgin.im>
parents:
12245
diff
changeset
|
64 | * @param status The default saved_status to show as 'selected' |
|
fa17f785b6fe
[gaim-migrate @ 15367]
Mark Doliner <markdoliner@pidgin.im>
parents:
12245
diff
changeset
|
65 | * @param callback The callback to call when the selection changes |
|
fa17f785b6fe
[gaim-migrate @ 15367]
Mark Doliner <markdoliner@pidgin.im>
parents:
12245
diff
changeset
|
66 | * @return The menu widget |
|
fa17f785b6fe
[gaim-migrate @ 15367]
Mark Doliner <markdoliner@pidgin.im>
parents:
12245
diff
changeset
|
67 | */ |
| 15884 | 68 | GtkWidget *pidgin_status_menu(PurpleSavedStatus *status, GCallback callback); |
|
13014
fa17f785b6fe
[gaim-migrate @ 15367]
Mark Doliner <markdoliner@pidgin.im>
parents:
12245
diff
changeset
|
69 | |
|
fa17f785b6fe
[gaim-migrate @ 15367]
Mark Doliner <markdoliner@pidgin.im>
parents:
12245
diff
changeset
|
70 | /** |
|
fa17f785b6fe
[gaim-migrate @ 15367]
Mark Doliner <markdoliner@pidgin.im>
parents:
12245
diff
changeset
|
71 | * Returns the GTK+ status handle. |
| 10418 | 72 | * |
| 73 | * @return The handle to the GTK+ status system. | |
| 74 | */ | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
75 | void *pidgin_status_get_handle(void); |
| 10418 | 76 | |
| 77 | /** | |
| 78 | * Initializes the GTK+ status system. | |
| 79 | */ | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
80 | void pidgin_status_init(void); |
| 10418 | 81 | |
| 82 | /** | |
| 83 | * Uninitializes the GTK+ status system. | |
| 84 | */ | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
85 | void pidgin_status_uninit(void); |
| 10418 | 86 | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
87 | #endif /* _PIDGINSAVEDSTATUSES_H_ */ |