pidgin/gtkconv.h

Fri, 30 Jun 2017 13:13:13 -0500

author
Mike Ruprecht <cmaiku@gmail.com>
date
Fri, 30 Jun 2017 13:13:13 -0500
changeset 38547
1772a0f0f77c
parent 37125
5c997dd3ae29
child 38744
48a376346964
permissions
-rw-r--r--

tls-certificate: Fix docstring function references

Several function references in the documentation of PurpleTlsCertificate
were using the wrong function names or just the wrong function. This
patch fixes those references.

20147
66f05a854eee applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents: 19859
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: 15566
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: 7996
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: 7996
diff changeset
5 * source distribution.
7326
599c9e8c9da4 [gaim-migrate @ 7912]
Nathan Fredrickson <nathan@silverorange.com>
parents: 7295
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: 19721
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: 35486
diff changeset
21
494f09f7f331 Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents: 35486
diff changeset
22 #ifndef _PIDGIN_CONVERSATION_H_
494f09f7f331 Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents: 35486
diff changeset
23 #define _PIDGIN_CONVERSATION_H_
35451
206524351826 Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents: 35415
diff changeset
24 /**
206524351826 Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents: 35415
diff changeset
25 * SECTION:gtkconv
206524351826 Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents: 35415
diff changeset
26 * @section_id: pidgin-gtkconv
206524351826 Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents: 35415
diff changeset
27 * @short_description: <filename>gtkconv.h</filename>
206524351826 Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents: 35415
diff changeset
28 * @title: Conversation API
206524351826 Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents: 35415
diff changeset
29 * @see_also: <link linkend="chapter-signals-gtkconv">Conversation signals</link>
206524351826 Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents: 35415
diff changeset
30 */
206524351826 Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents: 35415
diff changeset
31
35614
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
32 #define PIDGIN_TYPE_CONVERSATION (pidgin_conversation_get_type())
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
33
15562
8c8249fe5e3c gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
34 typedef struct _PidginImPane PidginImPane;
8c8249fe5e3c gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
35 typedef struct _PidginChatPane PidginChatPane;
8c8249fe5e3c gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
36 typedef struct _PidginConversation PidginConversation;
9709
2e73f176cc80 [gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents: 9687
diff changeset
37
11664
050d0caa0832 [gaim-migrate @ 13949]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11614
diff changeset
38 /**
35415
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
39 * PidginUnseenState:
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
40 * @PIDGIN_UNSEEN_NONE: No unseen text in the conversation.
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
41 * @PIDGIN_UNSEEN_EVENT: Unseen events in the conversation.
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
42 * @PIDGIN_UNSEEN_NO_LOG: Unseen text with NO_LOG flag.
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
43 * @PIDGIN_UNSEEN_TEXT: Unseen text in the conversation.
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
44 * @PIDGIN_UNSEEN_NICK: Unseen text and the nick was said.
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
45 *
11664
050d0caa0832 [gaim-migrate @ 13949]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11614
diff changeset
46 * Unseen text states.
050d0caa0832 [gaim-migrate @ 13949]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11614
diff changeset
47 */
050d0caa0832 [gaim-migrate @ 13949]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11614
diff changeset
48 typedef enum
050d0caa0832 [gaim-migrate @ 13949]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11614
diff changeset
49 {
35415
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
50 PIDGIN_UNSEEN_NONE,
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
51 PIDGIN_UNSEEN_EVENT,
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
52 PIDGIN_UNSEEN_NO_LOG,
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
53 PIDGIN_UNSEEN_TEXT,
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
54 PIDGIN_UNSEEN_NICK
15882
1dbd5756b7bf More Gaim to Pidgin stuff
Sean Egan <seanegan@pidgin.im>
parents: 15797
diff changeset
55 } PidginUnseenState;
11664
050d0caa0832 [gaim-migrate @ 13949]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11614
diff changeset
56
9498
432fc90c7e22 [gaim-migrate @ 10324]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 9497
diff changeset
57 enum {
432fc90c7e22 [gaim-migrate @ 10324]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 9497
diff changeset
58 CHAT_USERS_ICON_COLUMN,
11454
a604c2097a6e [gaim-migrate @ 13693]
Richard Laager <rlaager@pidgin.im>
parents: 11280
diff changeset
59 CHAT_USERS_ALIAS_COLUMN,
14027
708c2047424f [gaim-migrate @ 16521]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents: 13840
diff changeset
60 CHAT_USERS_ALIAS_KEY_COLUMN,
9498
432fc90c7e22 [gaim-migrate @ 10324]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 9497
diff changeset
61 CHAT_USERS_NAME_COLUMN,
9554
1609ba3612c3 [gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 9508
diff changeset
62 CHAT_USERS_FLAGS_COLUMN,
11454
a604c2097a6e [gaim-migrate @ 13693]
Richard Laager <rlaager@pidgin.im>
parents: 11280
diff changeset
63 CHAT_USERS_COLOR_COLUMN,
14645
71ccf40ee43b [gaim-migrate @ 17307]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14510
diff changeset
64 CHAT_USERS_WEIGHT_COLUMN,
32604
8d0a34f26244 Clean the API documentation in preparation for 3.0.0 by removing all the old @since tags.
Andrew Victor <andrew.victor@mxit.com>
parents: 32575
diff changeset
65 CHAT_USERS_ICON_STOCK_COLUMN,
9498
432fc90c7e22 [gaim-migrate @ 10324]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 9497
diff changeset
66 CHAT_USERS_COLUMNS
432fc90c7e22 [gaim-migrate @ 10324]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 9497
diff changeset
67 };
432fc90c7e22 [gaim-migrate @ 10324]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 9497
diff changeset
68
15562
8c8249fe5e3c gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
69 #define PIDGIN_CONVERSATION(conv) \
32255
3d9a47e21dce Convert to using the accessor functions.
Andrew Victor <andrew.victor@mxit.com>
parents: 32148
diff changeset
70 ((PidginConversation *)purple_conversation_get_ui_data(conv))
10008
1de3454a0dca [gaim-migrate @ 10925]
Mark Doliner <markdoliner@pidgin.im>
parents: 9885
diff changeset
71
15692
ecda27df58b9 Some more pidgininfication
Daniel Atallah <datallah@pidgin.im>
parents: 15578
diff changeset
72 #define PIDGIN_IS_PIDGIN_CONVERSATION(conv) \
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15882
diff changeset
73 (purple_conversation_get_ui_ops(conv) == \
15562
8c8249fe5e3c gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
74 pidgin_conversations_get_conv_ui_ops())
10008
1de3454a0dca [gaim-migrate @ 10925]
Mark Doliner <markdoliner@pidgin.im>
parents: 9885
diff changeset
75
15577
b8129373f65e More pidgin changes
Sean Egan <seanegan@pidgin.im>
parents: 15572
diff changeset
76 #include "pidgin.h"
10008
1de3454a0dca [gaim-migrate @ 10925]
Mark Doliner <markdoliner@pidgin.im>
parents: 9885
diff changeset
77 #include "conversation.h"
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11554
diff changeset
78 #include "gtkconvwin.h"
32575
eb4fc932fae9 Apply conversation theme when opening the GTK conversation. All the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32507
diff changeset
79 #include "gtkconv-theme.h"
10008
1de3454a0dca [gaim-migrate @ 10925]
Mark Doliner <markdoliner@pidgin.im>
parents: 9885
diff changeset
80
4359
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
81 /**************************************************************************
35472
474e26199560 Removed @name
Ankit Vani <a@nevitus.org>
parents: 35451
diff changeset
82 * Structures
4359
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
83 **************************************************************************/
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
84
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
85 /**
35415
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
86 * PidginConversation:
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
87 *
4359
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
88 * A GTK+ conversation pane.
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
89 */
15562
8c8249fe5e3c gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
90 struct _PidginConversation
4359
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
91 {
35614
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
92 gint box_count;
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
93
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15882
diff changeset
94 PurpleConversation *active_conv;
33734
acdc2b82a743 Fix a crash when receiving message from another contact within already opened conversation with meta-contact
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33683
diff changeset
95 PurpleConversation *last_conversed;
10810
076e608db319 [gaim-migrate @ 12463]
Tim Ringenbach <marv@pidgin.im>
parents: 10500
diff changeset
96 GList *convs;
13840
8ea0f9070d3a [gaim-migrate @ 16287]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 12832
diff changeset
97 GList *send_history;
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11554
diff changeset
98
35610
24b06c5e7760 Renamed PidginWindow to PidginConvWindow so that introspection associates it with pidgin_conv_window_* API
Ankit Vani <a@nevitus.org>
parents: 35487
diff changeset
99 PidginConvWindow *win;
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11554
diff changeset
100
4359
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
101 gboolean make_sound;
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
102
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
103 GtkWidget *tab_cont;
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
104 GtkWidget *tabby;
6771
06048ac9eb49 [gaim-migrate @ 7308]
Jesse Farmer
parents: 6392
diff changeset
105 GtkWidget *menu_tabby;
4359
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
106
32575
eb4fc932fae9 Apply conversation theme when opening the GTK conversation. All the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32507
diff changeset
107 PidginConvTheme *theme;
33384
215f0b668ac6 now loads the SenderColors.txt file from the theme if it exists, otherwise falls back to the built-in runtime-generated list
Nathan Walp <nwalp@pidgin.im>
parents: 33259
diff changeset
108 GArray *nick_colors;
32575
eb4fc932fae9 Apply conversation theme when opening the GTK conversation. All the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32507
diff changeset
109 PurpleMessageFlags last_flags;
32439
2c681e5daeeb Webkit Message views.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents: 26842
diff changeset
110 GtkWidget *webview;
4359
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
111 GtkWidget *entry;
14654
dbf687a008dc [gaim-migrate @ 17316]
Sean Egan <seanegan@pidgin.im>
parents: 14645
diff changeset
112 gboolean auto_resize; /* this is set to TRUE if the conversation
32148
73329b082d7d Remove some deprecated stuff
Mark Doliner <markdoliner@pidgin.im>
parents: 31546
diff changeset
113 * is being resized by a non-user-initiated
73329b082d7d Remove some deprecated stuff
Mark Doliner <markdoliner@pidgin.im>
parents: 31546
diff changeset
114 * event, such as the buddy icon appearing
14654
dbf687a008dc [gaim-migrate @ 17316]
Sean Egan <seanegan@pidgin.im>
parents: 14645
diff changeset
115 */
15416
2b1b922f804a [gaim-migrate @ 18147]
Sean Egan <seanegan@pidgin.im>
parents: 14654
diff changeset
116 gboolean entry_growing; /* True if the size of the entry was set
2b1b922f804a [gaim-migrate @ 18147]
Sean Egan <seanegan@pidgin.im>
parents: 14654
diff changeset
117 * automatically by typing too much to fit
2b1b922f804a [gaim-migrate @ 18147]
Sean Egan <seanegan@pidgin.im>
parents: 14654
diff changeset
118 * in one line */
15692
ecda27df58b9 Some more pidgininfication
Daniel Atallah <datallah@pidgin.im>
parents: 15578
diff changeset
119
7930
3005873ac411 [gaim-migrate @ 8601]
Mark Doliner <markdoliner@pidgin.im>
parents: 7887
diff changeset
120 GtkWidget *close; /* "x" on the tab */
6392
3db2b3c7b5aa [gaim-migrate @ 6897]
Christian Hammond <chipx86@chipx86.com>
parents: 5908
diff changeset
121 GtkWidget *icon;
4359
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
122 GtkWidget *tab_label;
6771
06048ac9eb49 [gaim-migrate @ 7308]
Jesse Farmer
parents: 6392
diff changeset
123 GtkWidget *menu_icon;
06048ac9eb49 [gaim-migrate @ 7308]
Jesse Farmer
parents: 6392
diff changeset
124 GtkWidget *menu_label;
4359
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
125
9332
9452c2623bd5 [gaim-migrate @ 10140]
Nathan Walp <nwalp@pidgin.im>
parents: 9188
diff changeset
126 GtkWidget *lower_hbox;
4359
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
127
15882
1dbd5756b7bf More Gaim to Pidgin stuff
Sean Egan <seanegan@pidgin.im>
parents: 15797
diff changeset
128 PidginUnseenState unseen_state;
12175
3e790a58d906 [gaim-migrate @ 14477]
Casey Harkins <charkins@pidgin.im>
parents: 12132
diff changeset
129 guint unseen_count;
11664
050d0caa0832 [gaim-migrate @ 13949]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11614
diff changeset
130
4359
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
131 union
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
132 {
15562
8c8249fe5e3c gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
133 PidginImPane *im;
8c8249fe5e3c gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
134 PidginChatPane *chat;
4359
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
135
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
136 } u;
15575
bd1e13b63e4b In Pidgin, display a full date on the timestamp of the first message to
Richard Laager <rlaager@pidgin.im>
parents: 15572
diff changeset
137
bd1e13b63e4b In Pidgin, display a full date on the timestamp of the first message to
Richard Laager <rlaager@pidgin.im>
parents: 15572
diff changeset
138 time_t newday;
18253
e25dd002e0be Start work on blist pane in conversation. Looks like: http://pidgin.im/~seanegan/infopane.png Certainly much to be done yet.
Sean Egan <seanegan@pidgin.im>
parents: 16254
diff changeset
139 GtkWidget *infopane_hbox;
e25dd002e0be Start work on blist pane in conversation. Looks like: http://pidgin.im/~seanegan/infopane.png Certainly much to be done yet.
Sean Egan <seanegan@pidgin.im>
parents: 16254
diff changeset
140 GtkWidget *infopane;
18277
51a0f13284cd properly scale buddy icons in infopane to preserve aspect ratio
Sean Egan <seanegan@pidgin.im>
parents: 18253
diff changeset
141 GtkListStore *infopane_model;
18253
e25dd002e0be Start work on blist pane in conversation. Looks like: http://pidgin.im/~seanegan/infopane.png Certainly much to be done yet.
Sean Egan <seanegan@pidgin.im>
parents: 16254
diff changeset
142 GtkTreeIter infopane_iter;
19598
86dfc5613674 Adding all the message from history in GtkIMHtml takes a bit long causing
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 19594
diff changeset
143
86dfc5613674 Adding all the message from history in GtkIMHtml takes a bit long causing
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 19594
diff changeset
144 /* Used when attaching a PidginConversation to a PurpleConversation
86dfc5613674 Adding all the message from history in GtkIMHtml takes a bit long causing
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 19594
diff changeset
145 * with message history */
34973
389cabbfe56a Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents: 34874
diff changeset
146 int attach_timer;
389cabbfe56a Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents: 34874
diff changeset
147 GList *attach_current;
29660
443bb7d278ae Use an unobtrusive search dialog.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 26842
diff changeset
148
35415
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
149 /*
31546
f65482e7e8c5 Use the @since doxygen comment for this note
Mark Doliner <markdoliner@pidgin.im>
parents: 29660
diff changeset
150 * Quick Find.
f65482e7e8c5 Use the @since doxygen comment for this note
Mark Doliner <markdoliner@pidgin.im>
parents: 29660
diff changeset
151 */
34973
389cabbfe56a Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents: 34874
diff changeset
152 GtkWidget *quickfind_entry;
389cabbfe56a Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents: 34874
diff changeset
153 GtkWidget *quickfind_container;
4359
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
154 };
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
155
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
156 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
157
4359
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
158 /**************************************************************************
35472
474e26199560 Removed @name
Ankit Vani <a@nevitus.org>
parents: 35451
diff changeset
159 * GTK+ Conversation API
4359
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
160 **************************************************************************/
5673
47f654fb5134 [gaim-migrate @ 6091]
Christian Hammond <chipx86@chipx86.com>
parents: 5167
diff changeset
161
47f654fb5134 [gaim-migrate @ 6091]
Christian Hammond <chipx86@chipx86.com>
parents: 5167
diff changeset
162 /**
35614
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
163 * pidgin_conversation_get_type:
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
164 *
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
165 * Returns: The #GType for the #PidginConversation boxed structure.
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
166 */
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
167 GType pidgin_conversation_get_type(void);
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
168
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
169 /**
35415
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
170 * pidgin_conversations_get_conv_ui_ops:
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
171 *
10814
7e17cb56b019 [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10810
diff changeset
172 * Returns the UI operations structure for GTK+ conversations.
4359
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
173 *
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 35117
diff changeset
174 * Returns: The GTK+ conversation operations structure.
4359
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
175 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15882
diff changeset
176 PurpleConversationUiOps *pidgin_conversations_get_conv_ui_ops(void);
4359
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
177
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
178 /**
35415
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
179 * pidgin_conversations_get_default_theme:
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
180 *
32991
9ffb2eddcc23 Add API for getting default conversation theme.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32938
diff changeset
181 * Returns the default theme for GTK+ conversations.
9ffb2eddcc23 Add API for getting default conversation theme.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32938
diff changeset
182 *
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 35117
diff changeset
183 * Returns: The default GTK+ conversation theme.
32991
9ffb2eddcc23 Add API for getting default conversation theme.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32938
diff changeset
184 */
9ffb2eddcc23 Add API for getting default conversation theme.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32938
diff changeset
185 PurpleTheme *pidgin_conversations_get_default_theme(void);
9ffb2eddcc23 Add API for getting default conversation theme.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32938
diff changeset
186
9ffb2eddcc23 Add API for getting default conversation theme.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32938
diff changeset
187 /**
35415
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
188 * pidgin_conv_update_buddy_icon:
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
189 * @im: The IM conversation.
4359
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
190 *
35415
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
191 * Updates the buddy icon on a conversation.
4359
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
192 */
34661
d9079090f7fe Updated gtkblist and gtkconv to use the GObject conversation API
Ankit Vani <a@nevitus.org>
parents: 34659
diff changeset
193 void pidgin_conv_update_buddy_icon(PurpleIMConversation *im);
4359
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
194
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
195 /**
35415
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
196 * pidgin_conv_switch_active_conversation:
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
197 * @conv: The conversation
11911
797cf405943c [gaim-migrate @ 14202]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11690
diff changeset
198 *
35415
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
199 * Sets the active conversation within a GTK-conversation.
11911
797cf405943c [gaim-migrate @ 14202]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11690
diff changeset
200 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15882
diff changeset
201 void pidgin_conv_switch_active_conversation(PurpleConversation *conv);
11911
797cf405943c [gaim-migrate @ 14202]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11690
diff changeset
202
797cf405943c [gaim-migrate @ 14202]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11690
diff changeset
203 /**
35415
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
204 * pidgin_conv_update_buttons_by_protocol:
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
205 * @conv: The conversation.
4359
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
206 *
35415
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
207 * Updates conversation buttons by protocol.
4359
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
208 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15882
diff changeset
209 void pidgin_conv_update_buttons_by_protocol(PurpleConversation *conv);
4359
cf899ee07d1d [gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
210
12021
dff8a2336172 [gaim-migrate @ 14314]
Casey Harkins <charkins@pidgin.im>
parents: 11911
diff changeset
211 /**
35415
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
212 * pidgin_conversations_get_unseen_all:
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
213 * @min_state: The minimum unseen state.
35614
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
214 * @hidden_only: If %TRUE, only consider hidden conversations.
35415
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
215 * @max_count: Maximum number of conversations to return, or 0 for
35614
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
216 * no maximum.
35415
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
217 *
34659
4fc616843cb2 Removed conversation type argument from pidgin conversation functions.
Ankit Vani <a@nevitus.org>
parents: 33734
diff changeset
218 * Returns a list of conversations of any type which have an unseen
12468
fe558afb01b4 [gaim-migrate @ 14778]
Casey Harkins <charkins@pidgin.im>
parents: 12239
diff changeset
219 * state greater than or equal to the specified minimum state. Using the
fe558afb01b4 [gaim-migrate @ 14778]
Casey Harkins <charkins@pidgin.im>
parents: 12239
diff changeset
220 * hidden_only parameter, this search can be limited to hidden
fe558afb01b4 [gaim-migrate @ 14778]
Casey Harkins <charkins@pidgin.im>
parents: 12239
diff changeset
221 * conversations. The max_count parameter will limit the total number of
fe558afb01b4 [gaim-migrate @ 14778]
Casey Harkins <charkins@pidgin.im>
parents: 12239
diff changeset
222 * converations returned if greater than zero. The returned list should
fe558afb01b4 [gaim-migrate @ 14778]
Casey Harkins <charkins@pidgin.im>
parents: 12239
diff changeset
223 * be freed by the caller.
12021
dff8a2336172 [gaim-migrate @ 14314]
Casey Harkins <charkins@pidgin.im>
parents: 11911
diff changeset
224 *
35614
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
225 * Returns: List of PurpleConversation matching criteria, or %NULL.
12021
dff8a2336172 [gaim-migrate @ 14314]
Casey Harkins <charkins@pidgin.im>
parents: 11911
diff changeset
226 */
12468
fe558afb01b4 [gaim-migrate @ 14778]
Casey Harkins <charkins@pidgin.im>
parents: 12239
diff changeset
227 GList *
34659
4fc616843cb2 Removed conversation type argument from pidgin conversation functions.
Ankit Vani <a@nevitus.org>
parents: 33734
diff changeset
228 pidgin_conversations_get_unseen_all(PidginUnseenState min_state,
4fc616843cb2 Removed conversation type argument from pidgin conversation functions.
Ankit Vani <a@nevitus.org>
parents: 33734
diff changeset
229 gboolean hidden_only,
4fc616843cb2 Removed conversation type argument from pidgin conversation functions.
Ankit Vani <a@nevitus.org>
parents: 33734
diff changeset
230 guint max_count);
4fc616843cb2 Removed conversation type argument from pidgin conversation functions.
Ankit Vani <a@nevitus.org>
parents: 33734
diff changeset
231
4fc616843cb2 Removed conversation type argument from pidgin conversation functions.
Ankit Vani <a@nevitus.org>
parents: 33734
diff changeset
232 /**
35415
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
233 * pidgin_conversations_get_unseen_ims:
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
234 * @min_state: The minimum unseen state.
35614
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
235 * @hidden_only: If %TRUE, only consider hidden conversations.
35415
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
236 * @max_count: Maximum number of conversations to return, or 0 for
35614
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
237 * no maximum.
35415
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
238 *
34659
4fc616843cb2 Removed conversation type argument from pidgin conversation functions.
Ankit Vani <a@nevitus.org>
parents: 33734
diff changeset
239 * Returns a list of IM conversations which have an unseen state greater
4fc616843cb2 Removed conversation type argument from pidgin conversation functions.
Ankit Vani <a@nevitus.org>
parents: 33734
diff changeset
240 * than or equal to the specified minimum state. Using the hidden_only
4fc616843cb2 Removed conversation type argument from pidgin conversation functions.
Ankit Vani <a@nevitus.org>
parents: 33734
diff changeset
241 * parameter, this search can be limited to hidden IM conversations. The
4fc616843cb2 Removed conversation type argument from pidgin conversation functions.
Ankit Vani <a@nevitus.org>
parents: 33734
diff changeset
242 * max_count parameter will limit the total number of IM converations
4fc616843cb2 Removed conversation type argument from pidgin conversation functions.
Ankit Vani <a@nevitus.org>
parents: 33734
diff changeset
243 * returned if greater than zero. The returned list should be freed by the
4fc616843cb2 Removed conversation type argument from pidgin conversation functions.
Ankit Vani <a@nevitus.org>
parents: 33734
diff changeset
244 * caller.
4fc616843cb2 Removed conversation type argument from pidgin conversation functions.
Ankit Vani <a@nevitus.org>
parents: 33734
diff changeset
245 *
35614
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
246 * Returns: List of PurpleIMConversation matching criteria, or %NULL.
34659
4fc616843cb2 Removed conversation type argument from pidgin conversation functions.
Ankit Vani <a@nevitus.org>
parents: 33734
diff changeset
247 */
4fc616843cb2 Removed conversation type argument from pidgin conversation functions.
Ankit Vani <a@nevitus.org>
parents: 33734
diff changeset
248 GList *
4fc616843cb2 Removed conversation type argument from pidgin conversation functions.
Ankit Vani <a@nevitus.org>
parents: 33734
diff changeset
249 pidgin_conversations_get_unseen_ims(PidginUnseenState min_state,
4fc616843cb2 Removed conversation type argument from pidgin conversation functions.
Ankit Vani <a@nevitus.org>
parents: 33734
diff changeset
250 gboolean hidden_only,
4fc616843cb2 Removed conversation type argument from pidgin conversation functions.
Ankit Vani <a@nevitus.org>
parents: 33734
diff changeset
251 guint max_count);
4fc616843cb2 Removed conversation type argument from pidgin conversation functions.
Ankit Vani <a@nevitus.org>
parents: 33734
diff changeset
252
4fc616843cb2 Removed conversation type argument from pidgin conversation functions.
Ankit Vani <a@nevitus.org>
parents: 33734
diff changeset
253 /**
35415
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
254 * pidgin_conversations_get_unseen_chats:
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
255 * @min_state: The minimum unseen state.
35614
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
256 * @hidden_only: If %TRUE, only consider hidden conversations.
35415
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
257 * @max_count: Maximum number of conversations to return, or 0 for
35614
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
258 * no maximum.
35415
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
259 *
34659
4fc616843cb2 Removed conversation type argument from pidgin conversation functions.
Ankit Vani <a@nevitus.org>
parents: 33734
diff changeset
260 * Returns a list of chat conversations which have an unseen state greater
4fc616843cb2 Removed conversation type argument from pidgin conversation functions.
Ankit Vani <a@nevitus.org>
parents: 33734
diff changeset
261 * than or equal to the specified minimum state. Using the hidden_only
4fc616843cb2 Removed conversation type argument from pidgin conversation functions.
Ankit Vani <a@nevitus.org>
parents: 33734
diff changeset
262 * parameter, this search can be limited to hidden chat conversations. The
4fc616843cb2 Removed conversation type argument from pidgin conversation functions.
Ankit Vani <a@nevitus.org>
parents: 33734
diff changeset
263 * max_count parameter will limit the total number of chat converations
4fc616843cb2 Removed conversation type argument from pidgin conversation functions.
Ankit Vani <a@nevitus.org>
parents: 33734
diff changeset
264 * returned if greater than zero. The returned list should be freed by the
4fc616843cb2 Removed conversation type argument from pidgin conversation functions.
Ankit Vani <a@nevitus.org>
parents: 33734
diff changeset
265 * caller.
4fc616843cb2 Removed conversation type argument from pidgin conversation functions.
Ankit Vani <a@nevitus.org>
parents: 33734
diff changeset
266 *
35614
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
267 * Returns: List of PurpleChatConversation matching criteria, or %NULL.
34659
4fc616843cb2 Removed conversation type argument from pidgin conversation functions.
Ankit Vani <a@nevitus.org>
parents: 33734
diff changeset
268 */
4fc616843cb2 Removed conversation type argument from pidgin conversation functions.
Ankit Vani <a@nevitus.org>
parents: 33734
diff changeset
269 GList *
4fc616843cb2 Removed conversation type argument from pidgin conversation functions.
Ankit Vani <a@nevitus.org>
parents: 33734
diff changeset
270 pidgin_conversations_get_unseen_chats(PidginUnseenState min_state,
12468
fe558afb01b4 [gaim-migrate @ 14778]
Casey Harkins <charkins@pidgin.im>
parents: 12239
diff changeset
271 gboolean hidden_only,
fe558afb01b4 [gaim-migrate @ 14778]
Casey Harkins <charkins@pidgin.im>
parents: 12239
diff changeset
272 guint max_count);
fe558afb01b4 [gaim-migrate @ 14778]
Casey Harkins <charkins@pidgin.im>
parents: 12239
diff changeset
273
12175
3e790a58d906 [gaim-migrate @ 14477]
Casey Harkins <charkins@pidgin.im>
parents: 12132
diff changeset
274 /**
35415
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
275 * pidgin_conversations_fill_menu:
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
276 * @menu: Menu widget to add items to.
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
277 * @convs: List of PurpleConversation to add to menu.
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
278 *
12468
fe558afb01b4 [gaim-migrate @ 14778]
Casey Harkins <charkins@pidgin.im>
parents: 12239
diff changeset
279 * Fill a menu with a list of conversations. Clicking the conversation
fe558afb01b4 [gaim-migrate @ 14778]
Casey Harkins <charkins@pidgin.im>
parents: 12239
diff changeset
280 * menu item will present that conversation to the user.
12175
3e790a58d906 [gaim-migrate @ 14477]
Casey Harkins <charkins@pidgin.im>
parents: 12132
diff changeset
281 *
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 35117
diff changeset
282 * Returns: Number of conversations added to menu.
12175
3e790a58d906 [gaim-migrate @ 14477]
Casey Harkins <charkins@pidgin.im>
parents: 12132
diff changeset
283 */
3e790a58d906 [gaim-migrate @ 14477]
Casey Harkins <charkins@pidgin.im>
parents: 12132
diff changeset
284 guint
15562
8c8249fe5e3c gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
285 pidgin_conversations_fill_menu(GtkWidget *menu, GList *convs);
12021
dff8a2336172 [gaim-migrate @ 14314]
Casey Harkins <charkins@pidgin.im>
parents: 11911
diff changeset
286
12116
17bf39d2678f [gaim-migrate @ 14416]
Casey Harkins <charkins@pidgin.im>
parents: 12021
diff changeset
287 /**
35415
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
288 * pidgin_conv_present_conversation:
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
289 * @conv: The conversation.
12116
17bf39d2678f [gaim-migrate @ 14416]
Casey Harkins <charkins@pidgin.im>
parents: 12021
diff changeset
290 *
35415
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
291 * Presents a purple conversation to the user.
12116
17bf39d2678f [gaim-migrate @ 14416]
Casey Harkins <charkins@pidgin.im>
parents: 12021
diff changeset
292 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15882
diff changeset
293 void pidgin_conv_present_conversation(PurpleConversation *conv);
12116
17bf39d2678f [gaim-migrate @ 14416]
Casey Harkins <charkins@pidgin.im>
parents: 12021
diff changeset
294
19721
4aea7d4bd205 Document the function to reattach conv-ui.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 19598
diff changeset
295 /**
35415
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
296 * pidgin_conv_attach_to_conversation:
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
297 * @conv: The conversation.
19721
4aea7d4bd205 Document the function to reattach conv-ui.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 19598
diff changeset
298 *
35415
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
299 * Reattach Pidgin UI to a conversation.
19721
4aea7d4bd205 Document the function to reattach conv-ui.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 19598
diff changeset
300 *
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 35117
diff changeset
301 * Returns: Wheter Pidgin UI was successfully attached.
19721
4aea7d4bd205 Document the function to reattach conv-ui.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 19598
diff changeset
302 */
19594
339d370c27f0 API to reattach a conversation to gtk UI. Use the new
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18277
diff changeset
303 gboolean pidgin_conv_attach_to_conversation(PurpleConversation *conv);
339d370c27f0 API to reattach a conversation to gtk UI. Use the new
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18277
diff changeset
304
35614
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
305 /**
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
306 * pidgin_conv_get_window:
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
307 * @gtkconv: The GTK+ conversation.
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
308 *
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
309 * Returns: The window the conversation belongs to.
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
310 */
35610
24b06c5e7760 Renamed PidginWindow to PidginConvWindow so that introspection associates it with pidgin_conv_window_* API
Ankit Vani <a@nevitus.org>
parents: 35487
diff changeset
311 PidginConvWindow *pidgin_conv_get_window(PidginConversation *gtkconv);
35614
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
312
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
313 /**
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
314 * pidgin_conv_get_tab_icon:
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
315 * @conv: The conversation.
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
316 * @small_icon: Whether to get the small icon.
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
317 *
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
318 * Returns: The tab icon.
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
319 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15882
diff changeset
320 GdkPixbuf *pidgin_conv_get_tab_icon(PurpleConversation *conv, gboolean small_icon);
35614
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
321
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
322 /**
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
323 * pidgin_conv_new:
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
324 * @conv: The conversation.
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
325 *
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
326 * Creates a new GTK+ conversation for a given #PurpleConversation.
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
327 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15882
diff changeset
328 void pidgin_conv_new(PurpleConversation *conv);
35614
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
329
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
330 /**
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
331 * pidgin_conv_get_tab_at_xy:
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
332 * @win: The conversation window.
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
333 * @x: X-coordinate to look up.
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
334 * @y: Y-coordinate to look up.
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
335 * @to_right: (out): Return address for a boolean which will be %TRUE if the
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
336 * coordinates are on the right side of the tab (or bottom in case of
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
337 * a vertical notebook), %FALSE otherwise.
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
338 *
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
339 * Returns: The tab index of a conversation in @win at (@x, @y).
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
340 */
35610
24b06c5e7760 Renamed PidginWindow to PidginConvWindow so that introspection associates it with pidgin_conv_window_* API
Ankit Vani <a@nevitus.org>
parents: 35487
diff changeset
341 int pidgin_conv_get_tab_at_xy(PidginConvWindow *win, int x, int y, gboolean *to_right);
35614
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
342
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
343 /**
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
344 * pidgin_conv_is_hidden:
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
345 * @gtkconv: The GTK+ conversation.
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
346 *
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
347 * Returns: %TRUE if the conversation is hidden, %FALSE otherwise.
d06ccc815e2f Box PidginConversation
Ankit Vani <a@nevitus.org>
parents: 35610
diff changeset
348 */
15563
9eea2b8c2846 pidginconv to pidgin_conv
Sean Egan <seanegan@pidgin.im>
parents: 15562
diff changeset
349 gboolean pidgin_conv_is_hidden(PidginConversation *gtkconv);
5673
47f654fb5134 [gaim-migrate @ 6091]
Christian Hammond <chipx86@chipx86.com>
parents: 5167
diff changeset
350
8582
7d573742efc5 [gaim-migrate @ 9332]
Etan Reisner <deryni@pidgin.im>
parents: 8317
diff changeset
351 /**************************************************************************/
35472
474e26199560 Removed @name
Ankit Vani <a@nevitus.org>
parents: 35451
diff changeset
352 /* GTK+ Conversations Subsystem */
8582
7d573742efc5 [gaim-migrate @ 9332]
Etan Reisner <deryni@pidgin.im>
parents: 8317
diff changeset
353 /**************************************************************************/
7d573742efc5 [gaim-migrate @ 9332]
Etan Reisner <deryni@pidgin.im>
parents: 8317
diff changeset
354
7d573742efc5 [gaim-migrate @ 9332]
Etan Reisner <deryni@pidgin.im>
parents: 8317
diff changeset
355 /**
35415
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
356 * pidgin_conversations_get_handle:
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
357 *
8582
7d573742efc5 [gaim-migrate @ 9332]
Etan Reisner <deryni@pidgin.im>
parents: 8317
diff changeset
358 * Returns the gtk conversations subsystem handle.
7d573742efc5 [gaim-migrate @ 9332]
Etan Reisner <deryni@pidgin.im>
parents: 8317
diff changeset
359 *
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 35117
diff changeset
360 * Returns: The conversations subsystem handle.
8582
7d573742efc5 [gaim-migrate @ 9332]
Etan Reisner <deryni@pidgin.im>
parents: 8317
diff changeset
361 */
15562
8c8249fe5e3c gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
362 void *pidgin_conversations_get_handle(void);
8582
7d573742efc5 [gaim-migrate @ 9332]
Etan Reisner <deryni@pidgin.im>
parents: 8317
diff changeset
363
7d573742efc5 [gaim-migrate @ 9332]
Etan Reisner <deryni@pidgin.im>
parents: 8317
diff changeset
364 /**
35415
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
365 * pidgin_conversations_init:
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
366 *
8582
7d573742efc5 [gaim-migrate @ 9332]
Etan Reisner <deryni@pidgin.im>
parents: 8317
diff changeset
367 * Initializes the GTK+ conversations subsystem.
7d573742efc5 [gaim-migrate @ 9332]
Etan Reisner <deryni@pidgin.im>
parents: 8317
diff changeset
368 */
15562
8c8249fe5e3c gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
369 void pidgin_conversations_init(void);
8582
7d573742efc5 [gaim-migrate @ 9332]
Etan Reisner <deryni@pidgin.im>
parents: 8317
diff changeset
370
7d573742efc5 [gaim-migrate @ 9332]
Etan Reisner <deryni@pidgin.im>
parents: 8317
diff changeset
371 /**
35415
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
372 * pidgin_conversations_uninit:
ba28be1a7611 Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
373 *
8582
7d573742efc5 [gaim-migrate @ 9332]
Etan Reisner <deryni@pidgin.im>
parents: 8317
diff changeset
374 * Uninitialized the GTK+ conversation subsystem.
7d573742efc5 [gaim-migrate @ 9332]
Etan Reisner <deryni@pidgin.im>
parents: 8317
diff changeset
375 */
15562
8c8249fe5e3c gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
376 void pidgin_conversations_uninit(void);
8582
7d573742efc5 [gaim-migrate @ 9332]
Etan Reisner <deryni@pidgin.im>
parents: 8317
diff changeset
377
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
378 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
379
15563
9eea2b8c2846 pidginconv to pidgin_conv
Sean Egan <seanegan@pidgin.im>
parents: 15562
diff changeset
380 #endif /* _PIDGIN_CONVERSATION_H_ */

mercurial