Fri, 16 Sep 2022 01:54:11 -0500
Change the credential provider row active indicator to a CheckButton
Because I noticed that Adw has a style that is for this sort of thing.
Testing Done:
Opened Credential prefs, and changed selected provider. Also checked that clicking the check button didn't accidentally change its state without changing the row, and that it could not be selected by keyboard separately from the row.
Reviewed at https://reviews.imfreedom.org/r/1775/
|
20147
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19862
diff
changeset
|
1 | /* pidgin |
| 5228 | 2 | * |
| 15572 | 3 | * Pidgin is the legal property of its developers, whose names are too numerous |
| 8046 | 4 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 5 | * source distribution. | |
| 5906 | 6 | * |
| 5228 | 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by | |
| 9 | * the Free Software Foundation; either version 2 of the License, or | |
| 10 | * (at your option) any later version. | |
| 11 | * | |
| 12 | * This program is distributed in the hope that it will be useful, | |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 15 | * GNU General Public License for more details. | |
| 16 | * | |
| 17 | * You should have received a copy of the GNU General Public License | |
| 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:
19652
diff
changeset
|
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 5228 | 20 | */ |
|
35487
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35473
diff
changeset
|
21 | |
|
41276
03f98ece6b26
Fix a ton of missing and incorrect global header guards
Gary Kramlich <grim@reaperworld.com>
parents:
41251
diff
changeset
|
22 | #if !defined(PIDGIN_GLOBAL_HEADER_INSIDE) && !defined(PIDGIN_COMPILATION) |
|
03f98ece6b26
Fix a ton of missing and incorrect global header guards
Gary Kramlich <grim@reaperworld.com>
parents:
41251
diff
changeset
|
23 | # error "only <pidgin.h> may be included directly" |
|
03f98ece6b26
Fix a ton of missing and incorrect global header guards
Gary Kramlich <grim@reaperworld.com>
parents:
41251
diff
changeset
|
24 | #endif |
|
03f98ece6b26
Fix a ton of missing and incorrect global header guards
Gary Kramlich <grim@reaperworld.com>
parents:
41251
diff
changeset
|
25 | |
|
35487
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35473
diff
changeset
|
26 | #ifndef _PIDGINBLIST_H_ |
|
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35473
diff
changeset
|
27 | #define _PIDGINBLIST_H_ |
|
35451
206524351826
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35415
diff
changeset
|
28 | |
|
40762
a7aca87d5ceb
Remove theming from the buddy list
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
29 | #include <gtk/gtk.h> |
|
a7aca87d5ceb
Remove theming from the buddy list
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
30 | |
|
a7aca87d5ceb
Remove theming from the buddy list
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
31 | #include <purple.h> |
|
a7aca87d5ceb
Remove theming from the buddy list
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
32 | |
|
35600
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35500
diff
changeset
|
33 | #define PIDGIN_TYPE_BUDDY_LIST (pidgin_buddy_list_get_type()) |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35500
diff
changeset
|
34 | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15524
diff
changeset
|
35 | typedef struct _PidginBuddyList PidginBuddyList; |
|
5872
754c63f29b77
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5631
diff
changeset
|
36 | |
| 5228 | 37 | typedef enum { |
|
15569
e85adc8d3b5c
gtkblist changes to pidgin
Sean Egan <seanegan@pidgin.im>
parents:
15562
diff
changeset
|
38 | PIDGIN_STATUS_ICON_LARGE, |
|
e85adc8d3b5c
gtkblist changes to pidgin
Sean Egan <seanegan@pidgin.im>
parents:
15562
diff
changeset
|
39 | PIDGIN_STATUS_ICON_SMALL |
|
7098
22eabd4f5ed4
[gaim-migrate @ 7663]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
40 | |
|
15569
e85adc8d3b5c
gtkblist changes to pidgin
Sean Egan <seanegan@pidgin.im>
parents:
15562
diff
changeset
|
41 | } PidginStatusIconSize; |
|
7098
22eabd4f5ed4
[gaim-migrate @ 7663]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
42 | |
| 5228 | 43 | /************************************************************************** |
| 35472 | 44 | * Structures |
| 5228 | 45 | **************************************************************************/ |
| 46 | /** | |
|
35415
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
47 | * PidginBuddyList: |
|
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
48 | * @vbox: This is the vbox that everything important gets packed |
|
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
49 | * into. Your plugin might want to pack something in it |
|
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
50 | * itself. Go, plugins! |
|
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
51 | * @treeview: It's a treeview... d'uh. |
|
40948
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
40938
diff
changeset
|
52 | * @treemodel: This is the treemodel. |
|
35415
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
53 | * @text_column: Column |
|
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
54 | * @refresh_timer: The timer for refreshing every 30 seconds |
|
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
55 | * @selected_node: The currently selected node |
|
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
56 | * @scrollbook: Scrollbook for alerts |
|
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
57 | * |
| 5228 | 58 | * Like, everything you need to know about the gtk buddy list |
| 59 | */ | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15524
diff
changeset
|
60 | struct _PidginBuddyList { |
|
39693
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39148
diff
changeset
|
61 | PurpleBuddyList parent; |
|
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39148
diff
changeset
|
62 | |
| 5228 | 63 | GtkWidget *window; |
|
35415
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
64 | GtkWidget *vbox; |
| 5228 | 65 | |
|
35415
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
66 | GtkWidget *treeview; |
|
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
67 | GtkTreeStore *treemodel; |
|
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
68 | GtkTreeViewColumn *text_column; |
| 11016 | 69 | |
| 70 | GtkCellRenderer *text_rend; | |
| 5228 | 71 | |
|
41578
a76d00557fea
Port buddy list to GTK4
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41577
diff
changeset
|
72 | GActionGroup *action_group; |
| 5228 | 73 | |
|
35415
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
74 | PurpleBlistNode *selected_node; |
|
10008
1de3454a0dca
[gaim-migrate @ 10925]
Mark Doliner <markdoliner@pidgin.im>
parents:
9791
diff
changeset
|
75 | }; |
|
7098
22eabd4f5ed4
[gaim-migrate @ 7663]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
76 | |
|
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
|
77 | 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
|
78 | |
| 5228 | 79 | /************************************************************************** |
|
41087
4fc5b0ddf55e
Remove the + from GTK
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40956
diff
changeset
|
80 | * GTK Buddy List API |
| 5228 | 81 | **************************************************************************/ |
| 5906 | 82 | |
|
39693
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39148
diff
changeset
|
83 | G_DECLARE_FINAL_TYPE(PidginBuddyList, pidgin_buddy_list, PIDGIN, BUDDY_LIST, |
|
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39148
diff
changeset
|
84 | PurpleBuddyList) |
|
35600
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35500
diff
changeset
|
85 | |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35500
diff
changeset
|
86 | /** |
|
35415
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
87 | * pidgin_blist_get_handle: |
|
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
88 | * |
|
41087
4fc5b0ddf55e
Remove the + from GTK
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40956
diff
changeset
|
89 | * Get the handle for the GTK blist system. |
| 8815 | 90 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
34864
diff
changeset
|
91 | * Returns: the handle to the blist system |
| 8815 | 92 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15524
diff
changeset
|
93 | void *pidgin_blist_get_handle(void); |
| 8815 | 94 | |
| 95 | /** | |
|
35415
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
96 | * pidgin_blist_init: |
|
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
97 | * |
|
41087
4fc5b0ddf55e
Remove the + from GTK
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40956
diff
changeset
|
98 | * Initializes the GTK blist system. |
| 5906 | 99 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15524
diff
changeset
|
100 | void pidgin_blist_init(void); |
| 5906 | 101 | |
| 5228 | 102 | /** |
|
35415
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
103 | * pidgin_blist_uninit: |
|
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
104 | * |
|
41087
4fc5b0ddf55e
Remove the + from GTK
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40956
diff
changeset
|
105 | * Uninitializes the GTK blist system. |
| 8815 | 106 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15524
diff
changeset
|
107 | void pidgin_blist_uninit(void); |
| 8815 | 108 | |
| 109 | /** | |
|
35415
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
110 | * pidgin_blist_get_default_gtk_blist: |
|
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
111 | * |
| 10643 | 112 | * Returns the default gtk buddy list |
| 11732 | 113 | * |
| 10643 | 114 | * There's normally only one buddy list window, but that isn't a necessity. This function |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15524
diff
changeset
|
115 | * returns the PidginBuddyList we're most likely wanting to work with. This is slightly |
| 10643 | 116 | * cleaner than an externed global. |
| 11732 | 117 | * |
|
41087
4fc5b0ddf55e
Remove the + from GTK
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40956
diff
changeset
|
118 | * Returns: (transfer none): The default GTK buddy list. |
| 10643 | 119 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15524
diff
changeset
|
120 | PidginBuddyList *pidgin_blist_get_default_gtk_blist(void); |
| 10643 | 121 | |
| 122 | /** | |
|
35415
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
123 | * pidgin_blist_refresh: |
|
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
124 | * @list: This is the core list that gets updated from |
|
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
125 | * |
| 5228 | 126 | * Refreshes all the nodes of the buddy list. |
| 127 | * This should only be called when something changes to affect most of the nodes (such as a ui preference changing) | |
| 128 | */ | |
| 15884 | 129 | void pidgin_blist_refresh(PurpleBuddyList *list); |
| 5228 | 130 | |
| 131 | /** | |
|
35415
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
132 | * pidgin_blist_get_emblem: |
|
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
133 | * @node: The node to return an emblem for |
|
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
134 | * |
|
29728
62c59080a6bf
Update pidgin_blist_get_emblem() docs to be accurate.
Daniel Atallah <datallah@pidgin.im>
parents:
29673
diff
changeset
|
135 | * Returns the blist emblem. |
|
62c59080a6bf
Update pidgin_blist_get_emblem() docs to be accurate.
Daniel Atallah <datallah@pidgin.im>
parents:
29673
diff
changeset
|
136 | * |
|
62c59080a6bf
Update pidgin_blist_get_emblem() docs to be accurate.
Daniel Atallah <datallah@pidgin.im>
parents:
29673
diff
changeset
|
137 | * This may be an existing pixbuf that has been given an additional ref, |
|
62c59080a6bf
Update pidgin_blist_get_emblem() docs to be accurate.
Daniel Atallah <datallah@pidgin.im>
parents:
29673
diff
changeset
|
138 | * so it shouldn't be modified. |
| 15524 | 139 | * |
|
38744
48a376346964
Lots of updates for Pidgin-3.0.gir
Gary Kramlich <grim@reaperworld.com>
parents:
37121
diff
changeset
|
140 | * Returns: (transfer full): A GdkPixbuf for the emblem to show, or NULL |
| 15524 | 141 | */ |
| 142 | GdkPixbuf * | |
|
34864
0e292d8887de
Renamed PurpleBListNode back to PurpleBlistNode
Ankit Vani <a@nevitus.org>
parents:
34709
diff
changeset
|
143 | pidgin_blist_get_emblem(PurpleBlistNode *node); |
| 15524 | 144 | |
| 145 | /** | |
|
35415
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
146 | * pidgin_blist_node_is_contact_expanded: |
|
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
147 | * @node: The node in question. |
|
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
148 | * |
|
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
149 | * Returns a boolean indicating if @node is part of an expanded contact. |
|
11018
a3843543f132
[gaim-migrate @ 12888]
Richard Laager <rlaager@pidgin.im>
parents:
11016
diff
changeset
|
150 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
34864
diff
changeset
|
151 | * This only makes sense for contact and buddy nodes. %FALSE is returned |
|
11018
a3843543f132
[gaim-migrate @ 12888]
Richard Laager <rlaager@pidgin.im>
parents:
11016
diff
changeset
|
152 | * for other types of nodes. |
|
a3843543f132
[gaim-migrate @ 12888]
Richard Laager <rlaager@pidgin.im>
parents:
11016
diff
changeset
|
153 | * |
|
35415
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
154 | * Returns: A boolean indicating if @node is part of an expanded contact. |
|
11018
a3843543f132
[gaim-migrate @ 12888]
Richard Laager <rlaager@pidgin.im>
parents:
11016
diff
changeset
|
155 | */ |
|
34864
0e292d8887de
Renamed PurpleBListNode back to PurpleBlistNode
Ankit Vani <a@nevitus.org>
parents:
34709
diff
changeset
|
156 | gboolean pidgin_blist_node_is_contact_expanded(PurpleBlistNode *node); |
|
11018
a3843543f132
[gaim-migrate @ 12888]
Richard Laager <rlaager@pidgin.im>
parents:
11016
diff
changeset
|
157 | |
| 5422 | 158 | /************************************************************************** |
|
41087
4fc5b0ddf55e
Remove the + from GTK
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40956
diff
changeset
|
159 | * GTK Buddy List sorting functions |
| 5422 | 160 | **************************************************************************/ |
| 161 | ||
|
34864
0e292d8887de
Renamed PurpleBListNode back to PurpleBlistNode
Ankit Vani <a@nevitus.org>
parents:
34709
diff
changeset
|
162 | typedef void (*pidgin_blist_sort_function)(PurpleBlistNode *new, PurpleBuddyList *blist, GtkTreeIter group, GtkTreeIter *cur, GtkTreeIter *iter); |
| 5422 | 163 | |
| 11796 | 164 | /** |
|
35415
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
165 | * pidgin_blist_get_sort_methods: |
|
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
166 | * |
| 11796 | 167 | * Gets the current list of sort methods. |
| 168 | * | |
|
38744
48a376346964
Lots of updates for Pidgin-3.0.gir
Gary Kramlich <grim@reaperworld.com>
parents:
37121
diff
changeset
|
169 | * Returns: (transfer none) (element-type PidginBlistSortMethod): A GSlist of sort methods |
| 11796 | 170 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15524
diff
changeset
|
171 | GList *pidgin_blist_get_sort_methods(void); |
| 5422 | 172 | |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
173 | struct _PidginBlistSortMethod { |
| 5631 | 174 | char *id; |
| 5422 | 175 | char *name; |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15524
diff
changeset
|
176 | pidgin_blist_sort_function func; |
| 5422 | 177 | }; |
| 178 | ||
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
179 | typedef struct _PidginBlistSortMethod PidginBlistSortMethod; |
| 11796 | 180 | |
| 5422 | 181 | /** |
|
35415
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
182 | * pidgin_blist_sort_method_reg: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
34864
diff
changeset
|
183 | * @id: The unique ID of the sorting method |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
34864
diff
changeset
|
184 | * @name: The method's name. |
|
38744
48a376346964
Lots of updates for Pidgin-3.0.gir
Gary Kramlich <grim@reaperworld.com>
parents:
37121
diff
changeset
|
185 | * @func: (scope call): A pointer to the function. |
| 5422 | 186 | * |
|
35415
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
187 | * Registers a buddy list sorting method. |
| 5422 | 188 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15524
diff
changeset
|
189 | void pidgin_blist_sort_method_reg(const char *id, const char *name, pidgin_blist_sort_function func); |
| 5422 | 190 | |
| 191 | /** | |
|
35415
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
192 | * pidgin_blist_sort_method_unreg: |
|
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
193 | * @id: The method's id |
| 5422 | 194 | * |
|
35415
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
195 | * Unregisters a buddy list sorting method. |
| 5422 | 196 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15524
diff
changeset
|
197 | void pidgin_blist_sort_method_unreg(const char *id); |
| 5422 | 198 | |
| 199 | /** | |
|
35415
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
200 | * pidgin_blist_sort_method_set: |
|
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
201 | * @id: The method's id. |
| 5422 | 202 | * |
|
35415
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
203 | * Sets a buddy list sorting method. |
| 5422 | 204 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15524
diff
changeset
|
205 | void pidgin_blist_sort_method_set(const char *id); |
| 5422 | 206 | |
| 207 | /** | |
|
35415
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
208 | * pidgin_blist_setup_sort_methods: |
|
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
209 | * |
| 5422 | 210 | * Sets up the programs default sort methods |
| 211 | */ | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15524
diff
changeset
|
212 | void pidgin_blist_setup_sort_methods(void); |
| 5422 | 213 | |
|
5936
4bac764cc792
[gaim-migrate @ 6376]
Christian Hammond <chipx86@chipx86.com>
parents:
5906
diff
changeset
|
214 | /** |
|
35415
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
215 | * pidgin_blist_update_sort_methods: |
|
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
216 | * |
|
41087
4fc5b0ddf55e
Remove the + from GTK
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40956
diff
changeset
|
217 | * Updates the Sorting menu on the GTK buddy list window. |
| 11796 | 218 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15524
diff
changeset
|
219 | void pidgin_blist_update_sort_methods(void); |
| 11796 | 220 | |
| 221 | /** | |
|
35415
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
222 | * pidgin_blist_joinchat_is_showable: |
|
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
223 | * |
|
8940
3e22cf150db0
[gaim-migrate @ 9710]
Mark Doliner <markdoliner@pidgin.im>
parents:
8815
diff
changeset
|
224 | * Determines if showing the join chat dialog is a valid action. |
|
3e22cf150db0
[gaim-migrate @ 9710]
Mark Doliner <markdoliner@pidgin.im>
parents:
8815
diff
changeset
|
225 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
34864
diff
changeset
|
226 | * Returns: Returns TRUE if there are accounts online capable of |
|
8940
3e22cf150db0
[gaim-migrate @ 9710]
Mark Doliner <markdoliner@pidgin.im>
parents:
8815
diff
changeset
|
227 | * joining chat rooms. Otherwise returns FALSE. |
|
8305
5a6d1168a8b3
[gaim-migrate @ 9029]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
228 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15524
diff
changeset
|
229 | gboolean pidgin_blist_joinchat_is_showable(void); |
|
8940
3e22cf150db0
[gaim-migrate @ 9710]
Mark Doliner <markdoliner@pidgin.im>
parents:
8815
diff
changeset
|
230 | |
|
3e22cf150db0
[gaim-migrate @ 9710]
Mark Doliner <markdoliner@pidgin.im>
parents:
8815
diff
changeset
|
231 | /** |
|
35415
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
232 | * pidgin_blist_joinchat_show: |
|
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
233 | * |
|
8940
3e22cf150db0
[gaim-migrate @ 9710]
Mark Doliner <markdoliner@pidgin.im>
parents:
8815
diff
changeset
|
234 | * Shows the join chat dialog. |
|
3e22cf150db0
[gaim-migrate @ 9710]
Mark Doliner <markdoliner@pidgin.im>
parents:
8815
diff
changeset
|
235 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15524
diff
changeset
|
236 | void pidgin_blist_joinchat_show(void); |
| 5422 | 237 | |
| 9051 | 238 | /** |
|
35415
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
239 | * pidgin_blist_get_name_markup: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
34864
diff
changeset
|
240 | * @buddy: The buddy to return markup from |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
34864
diff
changeset
|
241 | * @selected: Whether this buddy is selected. If TRUE, the markup will not change the color. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
34864
diff
changeset
|
242 | * @aliased: TRUE to return the appropriate alias of this buddy, FALSE to return its username and status information |
|
35415
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
243 | * |
|
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
244 | * Returns a buddy's Pango markup appropriate for setting in a GtkCellRenderer. |
|
ba28be1a7611
Convert docs from doxygen to gtk-doc format for gtkaccount to gtkconvwin
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
245 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
34864
diff
changeset
|
246 | * Returns: The markup for this buddy |
|
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
|
247 | */ |
|
18274
b4eb1720fddf
Show screenname instead of alias in conversation infopanes
Sean Egan <seanegan@pidgin.im>
parents:
18253
diff
changeset
|
248 | gchar *pidgin_blist_get_name_markup(PurpleBuddy *buddy, gboolean selected, gboolean aliased); |
|
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
|
249 | |
| 18970 | 250 | /** |
|
40955
5afbdae4554a
Use standard GTK tooltips in the conversation.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40948
diff
changeset
|
251 | * pidgin_blist_query_tooltip_for_node: |
|
5afbdae4554a
Use standard GTK tooltips in the conversation.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40948
diff
changeset
|
252 | * @node: The buddy list to query a tooltip for. |
|
5afbdae4554a
Use standard GTK tooltips in the conversation.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40948
diff
changeset
|
253 | * @tooltip: The tooltip object to add a tooltip to. |
|
5afbdae4554a
Use standard GTK tooltips in the conversation.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40948
diff
changeset
|
254 | * |
|
5afbdae4554a
Use standard GTK tooltips in the conversation.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40948
diff
changeset
|
255 | * Queries and creates a custom tooltip for a buddy list node. |
|
5afbdae4554a
Use standard GTK tooltips in the conversation.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40948
diff
changeset
|
256 | * |
|
5afbdae4554a
Use standard GTK tooltips in the conversation.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40948
diff
changeset
|
257 | * Returns: %TRUE if a custom tooltip was added, %FALSE otherwise. |
|
5afbdae4554a
Use standard GTK tooltips in the conversation.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40948
diff
changeset
|
258 | * |
|
5afbdae4554a
Use standard GTK tooltips in the conversation.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40948
diff
changeset
|
259 | * Since: 3.0.0 |
|
5afbdae4554a
Use standard GTK tooltips in the conversation.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40948
diff
changeset
|
260 | */ |
|
5afbdae4554a
Use standard GTK tooltips in the conversation.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40948
diff
changeset
|
261 | gboolean pidgin_blist_query_tooltip_for_node(PurpleBlistNode *node, GtkTooltip *tooltip); |
|
5afbdae4554a
Use standard GTK tooltips in the conversation.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40948
diff
changeset
|
262 | |
|
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
|
263 | G_END_DECLS |
| 18970 | 264 | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15524
diff
changeset
|
265 | #endif /* _PIDGINBLIST_H_ */ |