pidgin/gtkpounce.h

Sat, 10 Nov 2007 22:28:55 +0000

author
Stu Tomlinson <nosnilmot@pidgin.im>
date
Sat, 10 Nov 2007 22:28:55 +0000
changeset 21474
8c76dc27a5c1
parent 21223
6517e0eda8bc
child 21224
a3b64f274ab3
child 21653
621c47778132
permissions
-rw-r--r--

Fix for the crash reported by WormFood in #pidgin when right clicking on
the info pane for a conversation when the account is disconnected.

5032
2276c67b0243 [gaim-migrate @ 5375]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
1 /**
5864
86822afeeab0 [gaim-migrate @ 6295]
Christian Hammond <chipx86@chipx86.com>
parents: 5857
diff changeset
2 * @file gtkpounce.h GTK+ Buddy Pounce API
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
5032
2276c67b0243 [gaim-migrate @ 5375]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
7 *
15572
e069b22c1fc4 headers to pidgin
Sean Egan <seanegan@pidgin.im>
parents: 15562
diff changeset
8 * Pidgin is the legal property of its developers, whose names are too numerous
8046
c581b20a47d6 [gaim-migrate @ 8730]
Sean Egan <seanegan@pidgin.im>
parents: 5907
diff changeset
9 * to list here. Please refer to the COPYRIGHT file distributed with this
c581b20a47d6 [gaim-migrate @ 8730]
Sean Egan <seanegan@pidgin.im>
parents: 5907
diff changeset
10 * source distribution.
5032
2276c67b0243 [gaim-migrate @ 5375]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
11 *
2276c67b0243 [gaim-migrate @ 5375]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
12 * This program is free software; you can redistribute it and/or modify
2276c67b0243 [gaim-migrate @ 5375]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
13 * it under the terms of the GNU General Public License as published by
2276c67b0243 [gaim-migrate @ 5375]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
14 * the Free Software Foundation; either version 2 of the License, or
2276c67b0243 [gaim-migrate @ 5375]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
15 * (at your option) any later version.
2276c67b0243 [gaim-migrate @ 5375]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
16 *
2276c67b0243 [gaim-migrate @ 5375]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
17 * This program is distributed in the hope that it will be useful,
2276c67b0243 [gaim-migrate @ 5375]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
2276c67b0243 [gaim-migrate @ 5375]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2276c67b0243 [gaim-migrate @ 5375]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
20 * GNU General Public License for more details.
2276c67b0243 [gaim-migrate @ 5375]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
21 *
2276c67b0243 [gaim-migrate @ 5375]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
22 * You should have received a copy of the GNU General Public License
2276c67b0243 [gaim-migrate @ 5375]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
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
5032
2276c67b0243 [gaim-migrate @ 5375]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
25 */
15562
8c8249fe5e3c gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
26 #ifndef _PIDGINPOUNCE_H_
8c8249fe5e3c gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
27 #define _PIDGINPOUNCE_H_
5032
2276c67b0243 [gaim-migrate @ 5375]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
28
2276c67b0243 [gaim-migrate @ 5375]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
29 #include "pounce.h"
2276c67b0243 [gaim-migrate @ 5375]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
30
21223
6517e0eda8bc Wrap the newly deprecated functions with #ifndef PURPLE_DISABLE_DEPRECATED.
Richard Laager <rlaager@pidgin.im>
parents: 21217
diff changeset
31 #ifndef PURPLE_DISABLE_DEPRECATED
5032
2276c67b0243 [gaim-migrate @ 5375]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
32 /**
2276c67b0243 [gaim-migrate @ 5375]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
33 * Displays a New Buddy Pounce or Edit Buddy Pounce dialog.
2276c67b0243 [gaim-migrate @ 5375]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
34 *
21215
775a49fdc926 Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@pidgin.im>
parents: 20706
diff changeset
35 * @param account The optional account to use.
775a49fdc926 Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@pidgin.im>
parents: 20706
diff changeset
36 * @param name The optional name to pounce on.
775a49fdc926 Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@pidgin.im>
parents: 20706
diff changeset
37 * @param cur_pounce The current buddy pounce, if editing an existing one.
775a49fdc926 Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@pidgin.im>
parents: 20706
diff changeset
38 *
775a49fdc926 Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@pidgin.im>
parents: 20706
diff changeset
39 * @deprecated Use pidgin_pounce_editor_show_with_parent() instead.
775a49fdc926 Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@pidgin.im>
parents: 20706
diff changeset
40 */
775a49fdc926 Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@pidgin.im>
parents: 20706
diff changeset
41 void pidgin_pounce_editor_show(PurpleAccount *account, const char *name,
775a49fdc926 Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@pidgin.im>
parents: 20706
diff changeset
42 PurplePounce *cur_pounce);
21223
6517e0eda8bc Wrap the newly deprecated functions with #ifndef PURPLE_DISABLE_DEPRECATED.
Richard Laager <rlaager@pidgin.im>
parents: 21217
diff changeset
43 #endif
21215
775a49fdc926 Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@pidgin.im>
parents: 20706
diff changeset
44
775a49fdc926 Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@pidgin.im>
parents: 20706
diff changeset
45 /**
775a49fdc926 Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@pidgin.im>
parents: 20706
diff changeset
46 * Displays a New Buddy Pounce or Edit Buddy Pounce dialog.
775a49fdc926 Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@pidgin.im>
parents: 20706
diff changeset
47 *
20706
2b2ff7b44fb2 Doing pounces
Gabriel Schulhof <nix@go-nix.ca>
parents: 20684
diff changeset
48 * @param parent The parent window.
5907
b2812113a4a6 [gaim-migrate @ 6339]
Christian Hammond <chipx86@chipx86.com>
parents: 5875
diff changeset
49 * @param account The optional account to use.
b2812113a4a6 [gaim-migrate @ 6339]
Christian Hammond <chipx86@chipx86.com>
parents: 5875
diff changeset
50 * @param name The optional name to pounce on.
8735
01248ea222d3 [gaim-migrate @ 9490]
Jonathan Champ <royanee@users.sourceforge.net>
parents: 8046
diff changeset
51 * @param cur_pounce The current buddy pounce, if editing an existing one.
21215
775a49fdc926 Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@pidgin.im>
parents: 20706
diff changeset
52 *
775a49fdc926 Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@pidgin.im>
parents: 20706
diff changeset
53 * @since 2.3.0
5032
2276c67b0243 [gaim-migrate @ 5375]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
54 */
20706
2b2ff7b44fb2 Doing pounces
Gabriel Schulhof <nix@go-nix.ca>
parents: 20684
diff changeset
55 void pidgin_pounce_editor_show_with_parent(GtkWindow *parent, PurpleAccount *account, const char *name,
2b2ff7b44fb2 Doing pounces
Gabriel Schulhof <nix@go-nix.ca>
parents: 20684
diff changeset
56 PurplePounce *cur_pounce);
2b2ff7b44fb2 Doing pounces
Gabriel Schulhof <nix@go-nix.ca>
parents: 20684
diff changeset
57
21223
6517e0eda8bc Wrap the newly deprecated functions with #ifndef PURPLE_DISABLE_DEPRECATED.
Richard Laager <rlaager@pidgin.im>
parents: 21217
diff changeset
58 #ifndef PURPLE_DISABLE_DEPRECATED
20706
2b2ff7b44fb2 Doing pounces
Gabriel Schulhof <nix@go-nix.ca>
parents: 20684
diff changeset
59 /**
21215
775a49fdc926 Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@pidgin.im>
parents: 20706
diff changeset
60 * Shows the pounces manager window.
775a49fdc926 Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@pidgin.im>
parents: 20706
diff changeset
61 *
775a49fdc926 Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@pidgin.im>
parents: 20706
diff changeset
62 * @deprecated Use pidgin_pounces_manager_show_with_parent() instead.
20706
2b2ff7b44fb2 Doing pounces
Gabriel Schulhof <nix@go-nix.ca>
parents: 20684
diff changeset
63 */
21215
775a49fdc926 Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@pidgin.im>
parents: 20706
diff changeset
64 void pidgin_pounces_manager_show(void);
21223
6517e0eda8bc Wrap the newly deprecated functions with #ifndef PURPLE_DISABLE_DEPRECATED.
Richard Laager <rlaager@pidgin.im>
parents: 21217
diff changeset
65 #endif
5032
2276c67b0243 [gaim-migrate @ 5375]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
66
2276c67b0243 [gaim-migrate @ 5375]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
67 /**
12136
027b7ebee256 [gaim-migrate @ 14436]
Kevin Stange <kstange@pidgin.im>
parents: 9713
diff changeset
68 * Shows the pounces manager window.
21215
775a49fdc926 Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@pidgin.im>
parents: 20706
diff changeset
69 *
775a49fdc926 Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@pidgin.im>
parents: 20706
diff changeset
70 * @since 2.3.0
12136
027b7ebee256 [gaim-migrate @ 14436]
Kevin Stange <kstange@pidgin.im>
parents: 9713
diff changeset
71 */
20706
2b2ff7b44fb2 Doing pounces
Gabriel Schulhof <nix@go-nix.ca>
parents: 20684
diff changeset
72 void pidgin_pounces_manager_show_with_parent(GtkWindow *parent);
2b2ff7b44fb2 Doing pounces
Gabriel Schulhof <nix@go-nix.ca>
parents: 20684
diff changeset
73
2b2ff7b44fb2 Doing pounces
Gabriel Schulhof <nix@go-nix.ca>
parents: 20684
diff changeset
74 /**
12136
027b7ebee256 [gaim-migrate @ 14436]
Kevin Stange <kstange@pidgin.im>
parents: 9713
diff changeset
75 * Hides the pounces manager window.
027b7ebee256 [gaim-migrate @ 14436]
Kevin Stange <kstange@pidgin.im>
parents: 9713
diff changeset
76 */
15562
8c8249fe5e3c gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
77 void pidgin_pounces_manager_hide(void);
12136
027b7ebee256 [gaim-migrate @ 14436]
Kevin Stange <kstange@pidgin.im>
parents: 9713
diff changeset
78
027b7ebee256 [gaim-migrate @ 14436]
Kevin Stange <kstange@pidgin.im>
parents: 9713
diff changeset
79 /**
12155
a7f7e1ecd799 [gaim-migrate @ 14456]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 12136
diff changeset
80 * Returns the gtkpounces handle
5032
2276c67b0243 [gaim-migrate @ 5375]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
81 *
12155
a7f7e1ecd799 [gaim-migrate @ 14456]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 12136
diff changeset
82 * @return The handle to the GTK+ pounces system
5032
2276c67b0243 [gaim-migrate @ 5375]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
83 */
15562
8c8249fe5e3c gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
84 void *pidgin_pounces_get_handle(void);
5032
2276c67b0243 [gaim-migrate @ 5375]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
85
5875
493a921c0378 [gaim-migrate @ 6307]
Christian Hammond <chipx86@chipx86.com>
parents: 5864
diff changeset
86 /**
493a921c0378 [gaim-migrate @ 6307]
Christian Hammond <chipx86@chipx86.com>
parents: 5864
diff changeset
87 * Initializes the GTK+ pounces subsystem.
493a921c0378 [gaim-migrate @ 6307]
Christian Hammond <chipx86@chipx86.com>
parents: 5864
diff changeset
88 */
15562
8c8249fe5e3c gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
89 void pidgin_pounces_init(void);
5875
493a921c0378 [gaim-migrate @ 6307]
Christian Hammond <chipx86@chipx86.com>
parents: 5864
diff changeset
90
15562
8c8249fe5e3c gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
91 #endif /* _PIDGINPOUNCE_H_ */

mercurial