pidgin/gtkutils.h

Wed, 15 Nov 2023 16:07:26 -0600

author
Gary Kramlich <grim@reaperworld.com>
date
Wed, 15 Nov 2023 16:07:26 -0600
changeset 42501
d1f17ab61ecf
parent 42464
5de142a471e0
child 42550
d745bb34f491
permissions
-rw-r--r--

Remove a few gtk utility functions

Testing Done:
Compiled

Reviewed at https://reviews.imfreedom.org/r/2815/

20147
66f05a854eee applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents: 20036
diff changeset
1 /* pidgin
4359
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
2 *
15572
e069b22c1fc4 headers to pidgin
Sean Egan <seanegan@pidgin.im>
parents: 15568
diff changeset
3 * Pidgin is the legal property of its developers, whose names are too numerous
8046
c581b20a47d6 [gaim-migrate @ 8730]
Sean Egan <seanegan@pidgin.im>
parents: 7956
diff changeset
4 * to list here. Please refer to the COPYRIGHT file distributed with this
c581b20a47d6 [gaim-migrate @ 8730]
Sean Egan <seanegan@pidgin.im>
parents: 7956
diff changeset
5 * source distribution.
6646
b9a0b5eb74e6 [gaim-migrate @ 7171]
Christian Hammond <chipx86@chipx86.com>
parents: 6372
diff changeset
6 *
4359
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
7 * This program is free software; you can redistribute it and/or modify
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
8 * it under the terms of the GNU General Public License as published by
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
9 * the Free Software Foundation; either version 2 of the License, or
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
10 * (at your option) any later version.
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
11 *
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
12 * This program is distributed in the hope that it will be useful,
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
15 * GNU General Public License for more details.
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
16 *
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
17 * You should have received a copy of the GNU General Public License
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
18 * 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: 19547
diff changeset
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
4359
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
20 */
35487
494f09f7f331 Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents: 35471
diff changeset
21
40502
875489636847 pidgin.h phase3: create pidgin.h and force its usage
Gary Kramlich <grim@reaperworld.com>
parents: 40496
diff changeset
22 #if !defined(PIDGIN_GLOBAL_HEADER_INSIDE) && !defined(PIDGIN_COMPILATION)
875489636847 pidgin.h phase3: create pidgin.h and force its usage
Gary Kramlich <grim@reaperworld.com>
parents: 40496
diff changeset
23 # error "only <pidgin.h> may be included directly"
875489636847 pidgin.h phase3: create pidgin.h and force its usage
Gary Kramlich <grim@reaperworld.com>
parents: 40496
diff changeset
24 #endif
875489636847 pidgin.h phase3: create pidgin.h and force its usage
Gary Kramlich <grim@reaperworld.com>
parents: 40496
diff changeset
25
35487
494f09f7f331 Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents: 35471
diff changeset
26 #ifndef _PIDGINUTILS_H_
494f09f7f331 Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents: 35471
diff changeset
27 #define _PIDGINUTILS_H_
35451
206524351826 Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents: 35419
diff changeset
28
42347
d768e30362a4 Fix some random include issues
Gary Kramlich <grim@reaperworld.com>
parents: 41766
diff changeset
29 #include <gtk/gtk.h>
40360
e21f3bbcc2a5 Update all of the pidgin code to include purple.h
Gary Kramlich <grim@reaperworld.com>
parents: 40302
diff changeset
30
e21f3bbcc2a5 Update all of the pidgin code to include purple.h
Gary Kramlich <grim@reaperworld.com>
parents: 40302
diff changeset
31 #include <purple.h>
4359
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
32
42462
f7f248098e8f Add Since and visibility for Pidgin symbols in ChangeLog.API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42347
diff changeset
33 #include "pidginversion.h"
f7f248098e8f Add Since and visibility for Pidgin symbols in ChangeLog.API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42347
diff changeset
34
42464
5de142a471e0 Add Since tags and visibility for Pidgin 2.x symbols
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42462
diff changeset
35 PIDGIN_AVAILABLE_TYPE_IN_2_1
18966
6a0715b72b6b Screenname auto-completion filtering by Leonardo Fernandes, Fixes #519
Sean Egan <seanegan@pidgin.im>
parents: 18672
diff changeset
36 typedef struct {
6a0715b72b6b Screenname auto-completion filtering by Leonardo Fernandes, Fixes #519
Sean Egan <seanegan@pidgin.im>
parents: 18672
diff changeset
37 gboolean is_buddy;
41137
3c1574216aed Now that the History API is here, remove the purple logging api
Gary Kramlich <grim@reaperworld.com>
parents: 41124
diff changeset
38 PurpleBuddy *buddy;
18966
6a0715b72b6b Screenname auto-completion filtering by Leonardo Fernandes, Fixes #519
Sean Egan <seanegan@pidgin.im>
parents: 18672
diff changeset
39 } PidginBuddyCompletionEntry;
6a0715b72b6b Screenname auto-completion filtering by Leonardo Fernandes, Fixes #519
Sean Egan <seanegan@pidgin.im>
parents: 18672
diff changeset
40
42464
5de142a471e0 Add Since tags and visibility for Pidgin 2.x symbols
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42462
diff changeset
41 PIDGIN_AVAILABLE_TYPE_IN_2_1
18966
6a0715b72b6b Screenname auto-completion filtering by Leonardo Fernandes, Fixes #519
Sean Egan <seanegan@pidgin.im>
parents: 18672
diff changeset
42 typedef gboolean (*PidginFilterBuddyCompletionEntryFunc) (const PidginBuddyCompletionEntry *completion_entry, gpointer user_data);
6a0715b72b6b Screenname auto-completion filtering by Leonardo Fernandes, Fixes #519
Sean Egan <seanegan@pidgin.im>
parents: 18672
diff changeset
43
6a0715b72b6b Screenname auto-completion filtering by Leonardo Fernandes, Fixes #519
Sean Egan <seanegan@pidgin.im>
parents: 18672
diff changeset
44
32790
b95c7c504118 Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32604
diff changeset
45 G_BEGIN_DECLS
b95c7c504118 Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32604
diff changeset
46
4359
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
47 /**
35405
d3f9e6dad44b Convert docs from doxygen to gtk-doc format for UI headers that change in .plugins
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
48 * pidgin_setup_screenname_autocomplete:
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 35105
diff changeset
49 * @entry: The GtkEntry on which to setup autocomplete.
39796
b42070e4ea6e Rename optmenu -> chooser in other files.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 39786
diff changeset
50 * @chooser: A menu for accounts, returned by pidgin_account_chooser_new(). If
b42070e4ea6e Rename optmenu -> chooser in other files.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 39786
diff changeset
51 * @chooser is not %NULL, it'll be updated when a username is chosen
39786
7800f52d0ae6 Rename pidgin_account_option_menu_* to pidgin_account_chooser_*.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 39785
diff changeset
52 * from the autocomplete list.
38743
61e429efe744 A lot of annotation cleanups!
Gary Kramlich <grim@reaperworld.com>
parents: 38709
diff changeset
53 * @filter_func: (scope call): A function for checking if an autocomplete entry
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 35105
diff changeset
54 * should be shown. This can be %NULL.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 35105
diff changeset
55 * @user_data: The data to be passed to the filter_func function.
35405
d3f9e6dad44b Convert docs from doxygen to gtk-doc format for UI headers that change in .plugins
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
56 *
39796
b42070e4ea6e Rename optmenu -> chooser in other files.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 39786
diff changeset
57 * Add autocompletion of screenames to an entry, supporting a filtering
b42070e4ea6e Rename optmenu -> chooser in other files.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 39786
diff changeset
58 * function.
42464
5de142a471e0 Add Since tags and visibility for Pidgin 2.x symbols
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42462
diff changeset
59 *
5de142a471e0 Add Since tags and visibility for Pidgin 2.x symbols
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42462
diff changeset
60 * Since: 2.0.0
18966
6a0715b72b6b Screenname auto-completion filtering by Leonardo Fernandes, Fixes #519
Sean Egan <seanegan@pidgin.im>
parents: 18672
diff changeset
61 */
42464
5de142a471e0 Add Since tags and visibility for Pidgin 2.x symbols
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42462
diff changeset
62 PIDGIN_AVAILABLE_IN_ALL
39796
b42070e4ea6e Rename optmenu -> chooser in other files.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 39786
diff changeset
63 void pidgin_setup_screenname_autocomplete(
b42070e4ea6e Rename optmenu -> chooser in other files.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 39786
diff changeset
64 GtkWidget *entry, GtkWidget *chooser,
b42070e4ea6e Rename optmenu -> chooser in other files.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 39786
diff changeset
65 PidginFilterBuddyCompletionEntryFunc filter_func, gpointer user_data);
18966
6a0715b72b6b Screenname auto-completion filtering by Leonardo Fernandes, Fixes #519
Sean Egan <seanegan@pidgin.im>
parents: 18672
diff changeset
66
6a0715b72b6b Screenname auto-completion filtering by Leonardo Fernandes, Fixes #519
Sean Egan <seanegan@pidgin.im>
parents: 18672
diff changeset
67 /**
35405
d3f9e6dad44b Convert docs from doxygen to gtk-doc format for UI headers that change in .plugins
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
68 * pidgin_screenname_autocomplete_default_filter:
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 35105
diff changeset
69 * @completion_entry: The completion entry to filter.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 35105
diff changeset
70 * @all_accounts: If this is %FALSE, only the autocompletion entries
18966
6a0715b72b6b Screenname auto-completion filtering by Leonardo Fernandes, Fixes #519
Sean Egan <seanegan@pidgin.im>
parents: 18672
diff changeset
71 * which belong to an online account will be filtered.
35405
d3f9e6dad44b Convert docs from doxygen to gtk-doc format for UI headers that change in .plugins
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
72 *
d3f9e6dad44b Convert docs from doxygen to gtk-doc format for UI headers that change in .plugins
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
73 * The default filter function for username autocomplete.
d3f9e6dad44b Convert docs from doxygen to gtk-doc format for UI headers that change in .plugins
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
74 *
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 35105
diff changeset
75 * Returns: Returns %TRUE if the autocompletion entry is filtered.
42464
5de142a471e0 Add Since tags and visibility for Pidgin 2.x symbols
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42462
diff changeset
76 *
5de142a471e0 Add Since tags and visibility for Pidgin 2.x symbols
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42462
diff changeset
77 * Since: 2.1.0
18966
6a0715b72b6b Screenname auto-completion filtering by Leonardo Fernandes, Fixes #519
Sean Egan <seanegan@pidgin.im>
parents: 18672
diff changeset
78 */
42464
5de142a471e0 Add Since tags and visibility for Pidgin 2.x symbols
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42462
diff changeset
79 PIDGIN_AVAILABLE_IN_2_1
18966
6a0715b72b6b Screenname auto-completion filtering by Leonardo Fernandes, Fixes #519
Sean Egan <seanegan@pidgin.im>
parents: 18672
diff changeset
80 gboolean pidgin_screenname_autocomplete_default_filter(const PidginBuddyCompletionEntry *completion_entry, gpointer all_accounts);
6a0715b72b6b Screenname auto-completion filtering by Leonardo Fernandes, Fixes #519
Sean Egan <seanegan@pidgin.im>
parents: 18672
diff changeset
81
6a0715b72b6b Screenname auto-completion filtering by Leonardo Fernandes, Fixes #519
Sean Egan <seanegan@pidgin.im>
parents: 18672
diff changeset
82 /**
35405
d3f9e6dad44b Convert docs from doxygen to gtk-doc format for UI headers that change in .plugins
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
83 * pidgin_retrieve_user_info:
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 35105
diff changeset
84 * @conn: The connection to get information from.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 35105
diff changeset
85 * @name: The user to get information about.
35405
d3f9e6dad44b Convert docs from doxygen to gtk-doc format for UI headers that change in .plugins
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
86 *
d3f9e6dad44b Convert docs from doxygen to gtk-doc format for UI headers that change in .plugins
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
87 * Get information about a user. Show immediate feedback.
42462
f7f248098e8f Add Since and visibility for Pidgin symbols in ChangeLog.API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42347
diff changeset
88 *
f7f248098e8f Add Since and visibility for Pidgin symbols in ChangeLog.API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42347
diff changeset
89 * Since: 2.1.0
17360
4b04b2ee459a Use utility functions to get user info. Closes #964.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 17359
diff changeset
90 */
42462
f7f248098e8f Add Since and visibility for Pidgin symbols in ChangeLog.API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42347
diff changeset
91 PIDGIN_AVAILABLE_IN_2_1
17360
4b04b2ee459a Use utility functions to get user info. Closes #964.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 17359
diff changeset
92 void pidgin_retrieve_user_info(PurpleConnection *conn, const char *name);
4b04b2ee459a Use utility functions to get user info. Closes #964.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 17359
diff changeset
93
4b04b2ee459a Use utility functions to get user info. Closes #964.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 17359
diff changeset
94 /**
35405
d3f9e6dad44b Convert docs from doxygen to gtk-doc format for UI headers that change in .plugins
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
95 * pidgin_retrieve_user_info_in_chat:
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 35105
diff changeset
96 * @conn: The connection to get information from.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 35105
diff changeset
97 * @name: The user to get information about.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 35105
diff changeset
98 * @chatid: The chat id.
35405
d3f9e6dad44b Convert docs from doxygen to gtk-doc format for UI headers that change in .plugins
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
99 *
d3f9e6dad44b Convert docs from doxygen to gtk-doc format for UI headers that change in .plugins
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
100 * Get information about a user in a chat. Show immediate feedback.
42462
f7f248098e8f Add Since and visibility for Pidgin symbols in ChangeLog.API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42347
diff changeset
101 *
f7f248098e8f Add Since and visibility for Pidgin symbols in ChangeLog.API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42347
diff changeset
102 * Since: 2.1.0
18281
f7dd07e1e434 Show immediate feedback when getting information about someone in a chat.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18278
diff changeset
103 */
42462
f7f248098e8f Add Since and visibility for Pidgin symbols in ChangeLog.API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42347
diff changeset
104 PIDGIN_AVAILABLE_IN_2_1
18281
f7dd07e1e434 Show immediate feedback when getting information about someone in a chat.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18278
diff changeset
105 void pidgin_retrieve_user_info_in_chat(PurpleConnection *conn, const char *name, int chatid);
f7dd07e1e434 Show immediate feedback when getting information about someone in a chat.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18278
diff changeset
106
f7dd07e1e434 Show immediate feedback when getting information about someone in a chat.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18278
diff changeset
107 /**
35405
d3f9e6dad44b Convert docs from doxygen to gtk-doc format for UI headers that change in .plugins
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
108 * pidgin_set_accessible_label:
d3f9e6dad44b Convert docs from doxygen to gtk-doc format for UI headers that change in .plugins
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
109 * @w: The widget that we want to name.
d3f9e6dad44b Convert docs from doxygen to gtk-doc format for UI headers that change in .plugins
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
110 * @l: A GtkLabel that we want to use as the ATK name for the widget.
d3f9e6dad44b Convert docs from doxygen to gtk-doc format for UI headers that change in .plugins
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
111 *
25888
d0fdd378a635 Remove trailing whitespace
Mark Doliner <markdoliner@pidgin.im>
parents: 25885
diff changeset
112 * Sets an ATK name for a given widget. Also sets the labelled-by
8137
ca2132ad085e [gaim-migrate @ 8842]
Marc Mulcahy
parents: 8046
diff changeset
113 * and label-for ATK relationships.
42464
5de142a471e0 Add Since tags and visibility for Pidgin 2.x symbols
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42462
diff changeset
114 *
5de142a471e0 Add Since tags and visibility for Pidgin 2.x symbols
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42462
diff changeset
115 * Since: 2.0.0
8137
ca2132ad085e [gaim-migrate @ 8842]
Marc Mulcahy
parents: 8046
diff changeset
116 */
42464
5de142a471e0 Add Since tags and visibility for Pidgin 2.x symbols
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42462
diff changeset
117 PIDGIN_AVAILABLE_IN_ALL
35720
863f87bfc06e Smiley manager: cleanup
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35500
diff changeset
118 void pidgin_set_accessible_label(GtkWidget *w, GtkLabel *l);
8143
ce4b6383777b [gaim-migrate @ 8851]
Nathan Fredrickson <nathan@silverorange.com>
parents: 8137
diff changeset
119
ce4b6383777b [gaim-migrate @ 8851]
Nathan Fredrickson <nathan@silverorange.com>
parents: 8137
diff changeset
120 /**
35405
d3f9e6dad44b Convert docs from doxygen to gtk-doc format for UI headers that change in .plugins
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
121 * pidgin_auto_parent_window:
d3f9e6dad44b Convert docs from doxygen to gtk-doc format for UI headers that change in .plugins
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
122 * @window: The window to make transient.
22007
386062b58867 Try to make a window transient for a suitable parent window. This currently
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 22005
diff changeset
123 *
35405
d3f9e6dad44b Convert docs from doxygen to gtk-doc format for UI headers that change in .plugins
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
124 * Automatically make a window transient to a suitable parent window.
22007
386062b58867 Try to make a window transient for a suitable parent window. This currently
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 22005
diff changeset
125 *
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 35105
diff changeset
126 * Returns: Whether the window was made transient or not.
42462
f7f248098e8f Add Since and visibility for Pidgin symbols in ChangeLog.API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42347
diff changeset
127 *
f7f248098e8f Add Since and visibility for Pidgin symbols in ChangeLog.API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42347
diff changeset
128 * Since: 2.4.0
22007
386062b58867 Try to make a window transient for a suitable parent window. This currently
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 22005
diff changeset
129 */
42462
f7f248098e8f Add Since and visibility for Pidgin symbols in ChangeLog.API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42347
diff changeset
130 PIDGIN_AVAILABLE_IN_2_4
22007
386062b58867 Try to make a window transient for a suitable parent window. This currently
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 22005
diff changeset
131 gboolean pidgin_auto_parent_window(GtkWidget *window);
386062b58867 Try to make a window transient for a suitable parent window. This currently
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 22005
diff changeset
132
22131
12b395dc8c59 Remove a lot of duplication from a lot of places. Closes #4558.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 22102
diff changeset
133 /**
35405
d3f9e6dad44b Convert docs from doxygen to gtk-doc format for UI headers that change in .plugins
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
134 * pidgin_add_widget_to_vbox:
37994
11829debec7a Replace Gtk[HV]Box with GtkBox.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 37879
diff changeset
135 * @vbox: The vertically-oriented GtkBox to add the widget to.
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 35105
diff changeset
136 * @widget_label: The label to give the widget, can be %NULL.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 35105
diff changeset
137 * @sg: The GtkSizeGroup to add the label to, can be %NULL.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 35105
diff changeset
138 * @widget: The GtkWidget to add.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 35105
diff changeset
139 * @expand: Whether to expand the widget horizontally.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 35105
diff changeset
140 * @p_label: Place to store a pointer to the GtkLabel, or %NULL if you don't care.
22131
12b395dc8c59 Remove a lot of duplication from a lot of places. Closes #4558.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 22102
diff changeset
141 *
37994
11829debec7a Replace Gtk[HV]Box with GtkBox.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 37879
diff changeset
142 * Add a labelled widget to a GtkBox
35405
d3f9e6dad44b Convert docs from doxygen to gtk-doc format for UI headers that change in .plugins
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
143 *
38743
61e429efe744 A lot of annotation cleanups!
Gary Kramlich <grim@reaperworld.com>
parents: 38709
diff changeset
144 * Returns: (transfer full): A GtkBox already added to the GtkBox containing the GtkLabel and the GtkWidget.
42462
f7f248098e8f Add Since and visibility for Pidgin symbols in ChangeLog.API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42347
diff changeset
145 *
f7f248098e8f Add Since and visibility for Pidgin symbols in ChangeLog.API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42347
diff changeset
146 * Since: 2.4.0
22131
12b395dc8c59 Remove a lot of duplication from a lot of places. Closes #4558.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 22102
diff changeset
147 */
42462
f7f248098e8f Add Since and visibility for Pidgin symbols in ChangeLog.API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42347
diff changeset
148 PIDGIN_AVAILABLE_IN_2_4
22131
12b395dc8c59 Remove a lot of duplication from a lot of places. Closes #4558.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 22102
diff changeset
149 GtkWidget *pidgin_add_widget_to_vbox(GtkBox *vbox, const char *widget_label, GtkSizeGroup *sg, GtkWidget *widget, gboolean expand, GtkWidget **p_label);
12b395dc8c59 Remove a lot of duplication from a lot of places. Closes #4558.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 22102
diff changeset
150
32790
b95c7c504118 Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32604
diff changeset
151 G_END_DECLS
b95c7c504118 Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32604
diff changeset
152
15562
8c8249fe5e3c gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents: 15496
diff changeset
153 #endif /* _PIDGINUTILS_H_ */
15177
8b6c66e09388 [gaim-migrate @ 17901]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 15094
diff changeset
154

mercurial