Thu, 06 Feb 2014 20:47:29 +0530
Update doc labels for renamed functions
|
18358
2122fd567315
Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18190
diff
changeset
|
1 | /* |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
2 | * GNT - The GLib Ncurses Toolkit |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
3 | * |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
4 | * GNT is the legal property of its developers, whose names are too numerous |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
5 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
6 | * source distribution. |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
7 | * |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
8 | * This library is free software; you can redistribute it and/or modify |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
9 | * it under the terms of the GNU General Public License as published by |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
10 | * the Free Software Foundation; either version 2 of the License, or |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
11 | * (at your option) any later version. |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
12 | * |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
13 | * This program is distributed in the hope that it will be useful, |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
16 | * GNU General Public License for more details. |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
17 | * |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
18 | * You should have received a copy of the GNU General Public License |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
19 | * 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:
18830
diff
changeset
|
20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
21 | */ |
|
35446
c0f80955551d
Add sections for libgnt and re-arrange GNT doc index
Ankit Vani <a@nevitus.org>
parents:
35409
diff
changeset
|
22 | /** |
|
c0f80955551d
Add sections for libgnt and re-arrange GNT doc index
Ankit Vani <a@nevitus.org>
parents:
35409
diff
changeset
|
23 | * SECTION:gnttree |
|
c0f80955551d
Add sections for libgnt and re-arrange GNT doc index
Ankit Vani <a@nevitus.org>
parents:
35409
diff
changeset
|
24 | * @section_id: libgnt-gnttree |
|
c0f80955551d
Add sections for libgnt and re-arrange GNT doc index
Ankit Vani <a@nevitus.org>
parents:
35409
diff
changeset
|
25 | * @short_description: <filename>gnttree.h</filename> |
|
c0f80955551d
Add sections for libgnt and re-arrange GNT doc index
Ankit Vani <a@nevitus.org>
parents:
35409
diff
changeset
|
26 | * @title: Tree |
|
c0f80955551d
Add sections for libgnt and re-arrange GNT doc index
Ankit Vani <a@nevitus.org>
parents:
35409
diff
changeset
|
27 | */ |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
28 | |
|
13852
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
29 | #ifndef GNT_TREE_H |
|
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
30 | #define GNT_TREE_H |
|
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
31 | |
|
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
32 | #include "gntwidget.h" |
|
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
33 | #include "gnt.h" |
|
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
34 | #include "gntcolors.h" |
|
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
35 | #include "gntkeys.h" |
|
13993
8c12e7d15b40
[gaim-migrate @ 16458]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13969
diff
changeset
|
36 | #include "gnttextview.h" |
|
13852
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
37 | |
|
35379
ea1a0327001e
Rename _get_gtype() functions in libgnt to _get_type()
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
38 | #define GNT_TYPE_TREE (gnt_tree_get_type()) |
|
13852
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
39 | #define GNT_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_TREE, GntTree)) |
|
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
40 | #define GNT_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GNT_TYPE_TREE, GntTreeClass)) |
|
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
41 | #define GNT_IS_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNT_TYPE_TREE)) |
|
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
42 | #define GNT_IS_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GNT_TYPE_TREE)) |
|
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
43 | #define GNT_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_TREE, GntTreeClass)) |
|
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
44 | |
|
15991
1efb6bd8ba3f
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15886
diff
changeset
|
45 | typedef struct _GntTree GntTree; |
|
1efb6bd8ba3f
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15886
diff
changeset
|
46 | typedef struct _GntTreePriv GntTreePriv; |
|
1efb6bd8ba3f
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15886
diff
changeset
|
47 | typedef struct _GntTreeClass GntTreeClass; |
|
13852
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
48 | |
|
15991
1efb6bd8ba3f
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15886
diff
changeset
|
49 | typedef struct _GntTreeRow GntTreeRow; |
|
1efb6bd8ba3f
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15886
diff
changeset
|
50 | typedef struct _GntTreeCol GntTreeCol; |
|
13852
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
51 | |
|
32206
a2c62b07ae5a
Please correct me if I'm wrong, but I don't think we gain anything
Mark Doliner <markdoliner@pidgin.im>
parents:
31293
diff
changeset
|
52 | typedef enum { |
|
18558
1a90a2b56443
Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18403
diff
changeset
|
53 | GNT_TREE_COLUMN_INVISIBLE = 1 << 0, |
|
1a90a2b56443
Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18403
diff
changeset
|
54 | GNT_TREE_COLUMN_FIXED_SIZE = 1 << 1, |
|
18598
946f9240fe5c
Allow storing non-string binary data in tree columns.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18597
diff
changeset
|
55 | GNT_TREE_COLUMN_BINARY_DATA = 1 << 2, |
|
18632
c7a3b70f0ae7
Allow showing right-aligned text trees. Right-align the size in the file
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18624
diff
changeset
|
56 | GNT_TREE_COLUMN_RIGHT_ALIGNED = 1 << 3, |
|
18558
1a90a2b56443
Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18403
diff
changeset
|
57 | } GntTreeColumnFlag; |
|
1a90a2b56443
Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18403
diff
changeset
|
58 | |
|
15991
1efb6bd8ba3f
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15886
diff
changeset
|
59 | struct _GntTree |
|
13852
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
60 | { |
|
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
61 | GntWidget parent; |
|
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
62 | |
|
14026
ad91ce0effe2
[gaim-migrate @ 16520]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14014
diff
changeset
|
63 | GntTreeRow *current; /* current selection */ |
|
13852
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
64 | |
|
14026
ad91ce0effe2
[gaim-migrate @ 16520]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14014
diff
changeset
|
65 | GntTreeRow *top; /* The topmost visible item */ |
|
ad91ce0effe2
[gaim-migrate @ 16520]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14014
diff
changeset
|
66 | GntTreeRow *bottom; /* The bottommost visible item */ |
|
31293
169eeb43b52c
Remove trailing whitespace
Richard Laager <rlaager@pidgin.im>
parents:
30499
diff
changeset
|
67 | |
|
14026
ad91ce0effe2
[gaim-migrate @ 16520]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14014
diff
changeset
|
68 | GntTreeRow *root; /* The root of all evil */ |
|
31293
169eeb43b52c
Remove trailing whitespace
Richard Laager <rlaager@pidgin.im>
parents:
30499
diff
changeset
|
69 | |
|
14026
ad91ce0effe2
[gaim-migrate @ 16520]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14014
diff
changeset
|
70 | GList *list; /* List of GntTreeRow s */ |
|
14033
127990de806d
[gaim-migrate @ 16529]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14026
diff
changeset
|
71 | GHashTable *hash; /* We need this for quickly referencing the rows */ |
|
15220
fc8b223f4b75
[gaim-migrate @ 17944]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14939
diff
changeset
|
72 | guint (*hash_func)(gconstpointer); |
|
fc8b223f4b75
[gaim-migrate @ 17944]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14939
diff
changeset
|
73 | gboolean (*hash_eq_func)(gconstpointer, gconstpointer); |
|
fc8b223f4b75
[gaim-migrate @ 17944]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14939
diff
changeset
|
74 | GDestroyNotify key_destroy; |
|
fc8b223f4b75
[gaim-migrate @ 17944]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14939
diff
changeset
|
75 | GDestroyNotify value_destroy; |
|
14026
ad91ce0effe2
[gaim-migrate @ 16520]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14014
diff
changeset
|
76 | |
|
ad91ce0effe2
[gaim-migrate @ 16520]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14014
diff
changeset
|
77 | int ncol; /* No. of columns */ |
|
ad91ce0effe2
[gaim-migrate @ 16520]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14014
diff
changeset
|
78 | struct _GntTreeColInfo |
|
ad91ce0effe2
[gaim-migrate @ 16520]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14014
diff
changeset
|
79 | { |
|
ad91ce0effe2
[gaim-migrate @ 16520]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14014
diff
changeset
|
80 | int width; |
|
14033
127990de806d
[gaim-migrate @ 16529]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14026
diff
changeset
|
81 | char *title; |
|
18558
1a90a2b56443
Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18403
diff
changeset
|
82 | int width_ratio; |
|
1a90a2b56443
Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18403
diff
changeset
|
83 | GntTreeColumnFlag flags; |
|
14026
ad91ce0effe2
[gaim-migrate @ 16520]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14014
diff
changeset
|
84 | } *columns; /* Would a GList be better? */ |
|
14033
127990de806d
[gaim-migrate @ 16529]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14026
diff
changeset
|
85 | gboolean show_title; |
|
14675
be8af28d1980
[gaim-migrate @ 17341]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14446
diff
changeset
|
86 | gboolean show_separator; /* Whether to show column separators */ |
|
14167
ca6027c33d2c
[gaim-migrate @ 16739]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14153
diff
changeset
|
87 | |
|
18786
87d4f1e609cb
Allow setting the search column in a tree to use for typeahead searching.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18783
diff
changeset
|
88 | GntTreePriv *priv; |
|
13852
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
89 | }; |
|
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
90 | |
|
15991
1efb6bd8ba3f
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15886
diff
changeset
|
91 | struct _GntTreeClass |
|
13852
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
92 | { |
|
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
93 | GntWidgetClass parent; |
|
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
94 | |
|
14675
be8af28d1980
[gaim-migrate @ 17341]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14446
diff
changeset
|
95 | void (*selection_changed)(GntTreeRow *old, GntTreeRow * current); |
|
14905
23f31a7acc73
[gaim-migrate @ 17612]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14817
diff
changeset
|
96 | void (*toggled)(GntTree *tree, gpointer key); |
|
13922
7195a6fe2416
[gaim-migrate @ 16321]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13916
diff
changeset
|
97 | |
|
35447
5a8d59fd6c2e
Add /*< private >*/ for all padding members in libgnt
Ankit Vani <a@nevitus.org>
parents:
35446
diff
changeset
|
98 | /*< private >*/ |
|
13852
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
99 | void (*gnt_reserved1)(void); |
|
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
100 | void (*gnt_reserved2)(void); |
|
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
101 | void (*gnt_reserved3)(void); |
|
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
102 | void (*gnt_reserved4)(void); |
|
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
103 | }; |
|
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
104 | |
|
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
105 | G_BEGIN_DECLS |
|
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
106 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
107 | /** |
|
35477
5036e4cd8a46
Update doc labels for renamed functions
Ankit Vani <a@nevitus.org>
parents:
35476
diff
changeset
|
108 | * gnt_tree_get_type: |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
109 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
110 | * Returns: The GType for GntTree |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
111 | */ |
|
35379
ea1a0327001e
Rename _get_gtype() functions in libgnt to _get_type()
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
112 | GType gnt_tree_get_type(void); |
|
13852
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
113 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
114 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
115 | * gnt_tree_new: |
|
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
116 | * |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
117 | * Create a tree with one column. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
118 | * |
| 35476 | 119 | * See gnt_tree_new_with_columns(). |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
120 | * |
| 35476 | 121 | * Returns: The newly created tree |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
122 | */ |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
123 | GntWidget * gnt_tree_new(void); |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
124 | |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
125 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
126 | * gnt_tree_new_with_columns: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
127 | * @columns: Number of columns |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
128 | * |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
129 | * Create a tree with a specified number of columns. |
|
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
130 | * |
| 35471 | 131 | * See gnt_tree_new(). |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
132 | * |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
133 | * Returns: The newly created tree |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
134 | */ |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
135 | GntWidget * gnt_tree_new_with_columns(int columns); |
|
13852
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
136 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
137 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
138 | * gnt_tree_set_visible_rows: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
139 | * @tree: The tree |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
140 | * @rows: The number of rows |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
141 | * |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
142 | * The number of rows the tree should display at a time. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
143 | */ |
|
13852
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
144 | void gnt_tree_set_visible_rows(GntTree *tree, int rows); |
|
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
145 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
146 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
147 | * gnt_tree_get_visible_rows: |
|
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
148 | * @tree: The tree |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
149 | * |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
150 | * Get the number visible rows. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
151 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
152 | * Returns: The number of visible rows |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
153 | */ |
|
13852
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
154 | int gnt_tree_get_visible_rows(GntTree *tree); |
|
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
155 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
156 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
157 | * gnt_tree_scroll: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
158 | * @tree: The tree |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
159 | * @count: If positive, the tree will be scrolled down by count rows, |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
160 | * otherwise, it will be scrolled up by count rows. |
|
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
161 | * |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
162 | * Scroll the contents of the tree. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
163 | */ |
|
13852
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
164 | void gnt_tree_scroll(GntTree *tree, int count); |
|
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
165 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
166 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
167 | * gnt_tree_add_row_after: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
168 | * @tree: The tree |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
169 | * @key: The key for the row |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
170 | * @row: The row to insert |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
171 | * @parent: The key for the parent row |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
172 | * @bigbro: The key for the row to insert the new row after. |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
173 | * |
|
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
174 | * Insert a row in the tree. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
175 | * |
| 35471 | 176 | * See gnt_tree_create_row(), gnt_tree_add_row_last(), gnt_tree_add_choice(). |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
177 | * |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
178 | * Returns: The inserted row |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
179 | */ |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
180 | GntTreeRow * gnt_tree_add_row_after(GntTree *tree, void *key, GntTreeRow *row, void *parent, void *bigbro); |
|
13852
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
181 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
182 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
183 | * gnt_tree_add_row_last: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
184 | * @tree: The tree |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
185 | * @key: The key for the row |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
186 | * @row: The row to insert |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
187 | * @parent: The key for the parent row |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
188 | * |
|
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
189 | * Insert a row at the end of the tree. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
190 | * |
| 35471 | 191 | * See gnt_tree_create_row(), gnt_tree_add_row_after(), gnt_tree_add_choice(). |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
192 | * |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
193 | * Returns: The inserted row |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
194 | */ |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
195 | GntTreeRow * gnt_tree_add_row_last(GntTree *tree, void *key, GntTreeRow *row, void *parent); |
|
14167
ca6027c33d2c
[gaim-migrate @ 16739]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14153
diff
changeset
|
196 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
197 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
198 | * gnt_tree_get_selection_data: |
|
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
199 | * @tree: The tree |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
200 | * |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
201 | * Get the key for the selected row. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
202 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
203 | * Returns: The key for the selected row |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
204 | */ |
|
13852
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
205 | gpointer gnt_tree_get_selection_data(GntTree *tree); |
|
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
206 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
207 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
208 | * gnt_tree_get_selection_text: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
209 | * @tree: The tree |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
210 | * |
|
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
211 | * Get the text displayed for the selected row. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
212 | * |
| 35471 | 213 | * See gnt_tree_get_row_text_list(), gnt_tree_get_selection_text_list(). |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
214 | * |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
215 | * Returns: The text, which needs to be freed by the caller |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
216 | */ |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
217 | char * gnt_tree_get_selection_text(GntTree *tree); |
|
13997
546ca912cb25
[gaim-migrate @ 16466]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13993
diff
changeset
|
218 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
219 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
220 | * gnt_tree_get_row_text_list: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
221 | * @tree: The tree |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
222 | * @key: A key corresponding to the row in question. If key |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
223 | * is %NULL, the text list for the selected row will |
|
18830
7e9784f65d5d
Anoter patch from Javeed Shaikh to introduce a utility function for a tree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18829
diff
changeset
|
224 | * be returned. |
|
7e9784f65d5d
Anoter patch from Javeed Shaikh to introduce a utility function for a tree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18829
diff
changeset
|
225 | * |
|
7e9784f65d5d
Anoter patch from Javeed Shaikh to introduce a utility function for a tree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18829
diff
changeset
|
226 | * Get a list of text for a row. |
|
7e9784f65d5d
Anoter patch from Javeed Shaikh to introduce a utility function for a tree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18829
diff
changeset
|
227 | * |
| 35471 | 228 | * See gnt_tree_get_selection_text_list(), gnt_tree_get_selection_text(). |
|
18830
7e9784f65d5d
Anoter patch from Javeed Shaikh to introduce a utility function for a tree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18829
diff
changeset
|
229 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
230 | * Returns: A list of texts of a row. The list and its data should be |
|
18830
7e9784f65d5d
Anoter patch from Javeed Shaikh to introduce a utility function for a tree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18829
diff
changeset
|
231 | * freed by the caller. The caller should make sure that if |
|
7e9784f65d5d
Anoter patch from Javeed Shaikh to introduce a utility function for a tree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18829
diff
changeset
|
232 | * any column of the tree contains binary data, it's not freed. |
|
7e9784f65d5d
Anoter patch from Javeed Shaikh to introduce a utility function for a tree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18829
diff
changeset
|
233 | */ |
|
7e9784f65d5d
Anoter patch from Javeed Shaikh to introduce a utility function for a tree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18829
diff
changeset
|
234 | GList * gnt_tree_get_row_text_list(GntTree *tree, gpointer key); |
|
7e9784f65d5d
Anoter patch from Javeed Shaikh to introduce a utility function for a tree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18829
diff
changeset
|
235 | |
|
7e9784f65d5d
Anoter patch from Javeed Shaikh to introduce a utility function for a tree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18829
diff
changeset
|
236 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
237 | * gnt_tree_row_get_key: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
238 | * @tree: The tree |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
239 | * @row: The GntTreeRow object |
|
30499
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
240 | * |
|
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
241 | * Get the key of a row. |
|
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
242 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
243 | * Returns: The key of the row. |
|
30499
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
244 | * |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
245 | * Since: 2.8.0 (gnt), 2.7.2 (pidgin) |
|
30499
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
246 | */ |
|
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
247 | gpointer gnt_tree_row_get_key(GntTree *tree, GntTreeRow *row); |
|
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
248 | |
|
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
249 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
250 | * gnt_tree_row_get_next: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
251 | * @tree: The tree |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
252 | * @row: The GntTreeRow object |
|
30499
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
253 | * |
|
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
254 | * Get the next row. |
|
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
255 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
256 | * Returns: The next row. |
|
30499
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
257 | * |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
258 | * Since: 2.8.0 (gnt), 2.7.2 (pidgin) |
|
30499
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
259 | */ |
|
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
260 | GntTreeRow * gnt_tree_row_get_next(GntTree *tree, GntTreeRow *row); |
|
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
261 | |
|
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
262 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
263 | * gnt_tree_row_get_prev: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
264 | * @tree: The tree |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
265 | * @row: The GntTreeRow object |
|
30499
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
266 | * |
|
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
267 | * Get the previous row. |
|
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
268 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
269 | * Returns: The previous row. |
|
30499
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
270 | * |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
271 | * Since: 2.8.0 (gnt), 2.7.2 (pidgin) |
|
30499
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
272 | */ |
|
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
273 | GntTreeRow * gnt_tree_row_get_prev(GntTree *tree, GntTreeRow *row); |
|
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
274 | |
|
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
275 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
276 | * gnt_tree_row_get_child: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
277 | * @tree: The tree |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
278 | * @row: The GntTreeRow object |
|
30499
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
279 | * |
|
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
280 | * Get the child row. |
|
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
281 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
282 | * Returns: The child row. |
|
30499
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
283 | * |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
284 | * Since: 2.8.0 (gnt), 2.7.2 (pidgin) |
|
30499
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
285 | */ |
|
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
286 | GntTreeRow * gnt_tree_row_get_child(GntTree *tree, GntTreeRow *row); |
|
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
287 | |
|
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
288 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
289 | * gnt_tree_row_get_parent: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
290 | * @tree: The tree |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
291 | * @row: The GntTreeRow object |
|
30499
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
292 | * |
|
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
293 | * Get the parent row. |
|
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
294 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
295 | * Returns: The parent row. |
|
30499
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
296 | * |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
297 | * Since: 2.8.0 (gnt), 2.7.2 (pidgin) |
|
30499
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
298 | */ |
|
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
299 | GntTreeRow * gnt_tree_row_get_parent(GntTree *tree, GntTreeRow *row); |
|
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
300 | |
|
19e9d4a69086
Make the combobox a tiny bit friendlier.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22362
diff
changeset
|
301 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
302 | * gnt_tree_get_selection_text_list: |
|
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
303 | * @tree: The tree |
|
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
304 | * |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
305 | * Get a list of text of the current row. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
306 | * |
| 35471 | 307 | * See gnt_tree_get_row_text_list(), gnt_tree_get_selection_text(). |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
308 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
309 | * Returns: A list of texts of the currently selected row. The list |
|
18830
7e9784f65d5d
Anoter patch from Javeed Shaikh to introduce a utility function for a tree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18829
diff
changeset
|
310 | * and its data should be freed by the caller. The caller |
|
7e9784f65d5d
Anoter patch from Javeed Shaikh to introduce a utility function for a tree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18829
diff
changeset
|
311 | * should make sure that if any column of the tree contains |
|
7e9784f65d5d
Anoter patch from Javeed Shaikh to introduce a utility function for a tree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18829
diff
changeset
|
312 | * binary data, it's not freed. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
313 | */ |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
314 | GList * gnt_tree_get_selection_text_list(GntTree *tree); |
|
14041
6afba85cfc30
[gaim-migrate @ 16540]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14033
diff
changeset
|
315 | |
|
18190
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
17586
diff
changeset
|
316 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
317 | * gnt_tree_get_rows: |
|
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
318 | * @tree: The tree |
|
18190
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
17586
diff
changeset
|
319 | * |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
320 | * Returns the list of rows in the tree. |
|
18190
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
17586
diff
changeset
|
321 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
322 | * Returns: The list of the rows. The list should not be modified by the caller. |
|
18190
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
17586
diff
changeset
|
323 | */ |
|
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
17586
diff
changeset
|
324 | GList *gnt_tree_get_rows(GntTree *tree); |
| 14817 | 325 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
326 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
327 | * gnt_tree_remove: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
328 | * @tree: The tree |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
329 | * @key: The key for the row to remove |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
330 | * |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
331 | * Remove a row from the tree. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
332 | */ |
|
13852
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
333 | void gnt_tree_remove(GntTree *tree, gpointer key); |
|
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
334 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
335 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
336 | * gnt_tree_remove_all: |
|
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
337 | * @tree: The tree |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
338 | * |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
339 | * Remove all the item from the tree. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
340 | */ |
|
14153
9da98052a4e1
[gaim-migrate @ 16715]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14109
diff
changeset
|
341 | void gnt_tree_remove_all(GntTree *tree); |
|
9da98052a4e1
[gaim-migrate @ 16715]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14109
diff
changeset
|
342 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
343 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
344 | * gnt_tree_get_selection_visible_line: |
|
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
345 | * @tree: The tree |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
346 | * |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
347 | * Get the visible line number of the selected row. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
348 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
349 | * Returns: The line number of the currently selected row |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
350 | */ |
|
13922
7195a6fe2416
[gaim-migrate @ 16321]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13916
diff
changeset
|
351 | int gnt_tree_get_selection_visible_line(GntTree *tree); |
|
7195a6fe2416
[gaim-migrate @ 16321]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13916
diff
changeset
|
352 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
353 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
354 | * gnt_tree_change_text: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
355 | * @tree: The tree |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
356 | * @key: The key for the row |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
357 | * @colno: The index of the column |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
358 | * @text: The new text |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
359 | * |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
360 | * Change the text of a column in a row. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
361 | */ |
|
14026
ad91ce0effe2
[gaim-migrate @ 16520]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14014
diff
changeset
|
362 | void gnt_tree_change_text(GntTree *tree, gpointer key, int colno, const char *text); |
|
13926
d2c1522276b3
[gaim-migrate @ 16328]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13922
diff
changeset
|
363 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
364 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
365 | * gnt_tree_add_choice: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
366 | * @tree: The tree |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
367 | * @key: The key for the row |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
368 | * @row: The row to add |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
369 | * @parent: The parent of the row, or %NULL |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
370 | * @bigbro: The row to insert after, or %NULL |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
371 | * |
|
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
372 | * Add a checkable item in the tree. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
373 | * |
| 35471 | 374 | * See gnt_tree_create_row(), gnt_tree_create_row_from_list(), |
| 375 | * gnt_tree_add_row_last(), gnt_tree_add_row_after(). | |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
376 | * |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
377 | * Returns: The row inserted. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
378 | */ |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
379 | GntTreeRow * gnt_tree_add_choice(GntTree *tree, void *key, GntTreeRow *row, void *parent, void *bigbro); |
|
13969
0541f389442e
[gaim-migrate @ 16402]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13926
diff
changeset
|
380 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
381 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
382 | * gnt_tree_set_choice: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
383 | * @tree: The tree |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
384 | * @key: The key for the row |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
385 | * @set: %TRUE if the item should be checked, %FALSE if not |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
386 | * |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
387 | * Set whether a checkable item is checked or not. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
388 | */ |
|
13969
0541f389442e
[gaim-migrate @ 16402]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13926
diff
changeset
|
389 | void gnt_tree_set_choice(GntTree *tree, void *key, gboolean set); |
|
0541f389442e
[gaim-migrate @ 16402]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13926
diff
changeset
|
390 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
391 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
392 | * gnt_tree_get_choice: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
393 | * @tree: The tree |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
394 | * @key: The key for the row |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
395 | * |
|
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
396 | * Return whether a row is selected or not, where the row is a checkable item. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
397 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
398 | * Returns: %TRUE if the row is checked, %FALSE otherwise. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
399 | */ |
|
13969
0541f389442e
[gaim-migrate @ 16402]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13926
diff
changeset
|
400 | gboolean gnt_tree_get_choice(GntTree *tree, void *key); |
|
0541f389442e
[gaim-migrate @ 16402]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13926
diff
changeset
|
401 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
402 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
403 | * gnt_tree_set_row_flags: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
404 | * @tree: The tree |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
405 | * @key: The key for the row |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
406 | * @flags: The flags to set |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
407 | * |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
408 | * Set flags for the text in a row in the tree. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
409 | */ |
|
13993
8c12e7d15b40
[gaim-migrate @ 16458]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13969
diff
changeset
|
410 | void gnt_tree_set_row_flags(GntTree *tree, void *key, GntTextFormatFlags flags); |
|
8c12e7d15b40
[gaim-migrate @ 16458]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13969
diff
changeset
|
411 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
412 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
413 | * gnt_tree_set_row_color: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
414 | * @tree: The tree |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
415 | * @key: The key for the row |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
416 | * @color: The color |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
417 | * |
|
21804
931ef2cc7cfb
Add support for colour in gnttreerows, and colourise the blist. Fixes #1490
Richard Nelson <wabz@pidgin.im>
parents:
20939
diff
changeset
|
418 | * Set color for the text in a row in the tree. |
|
931ef2cc7cfb
Add support for colour in gnttreerows, and colourise the blist. Fixes #1490
Richard Nelson <wabz@pidgin.im>
parents:
20939
diff
changeset
|
419 | * |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
420 | * Since: 2.4.0 |
|
21804
931ef2cc7cfb
Add support for colour in gnttreerows, and colourise the blist. Fixes #1490
Richard Nelson <wabz@pidgin.im>
parents:
20939
diff
changeset
|
421 | */ |
|
22362
cb8ef3599f3d
Fix some minor 'make docs' errors. For some reason the callback
Mark Doliner <markdoliner@pidgin.im>
parents:
22284
diff
changeset
|
422 | void gnt_tree_set_row_color(GntTree *tree, void *key, int color); |
|
21804
931ef2cc7cfb
Add support for colour in gnttreerows, and colourise the blist. Fixes #1490
Richard Nelson <wabz@pidgin.im>
parents:
20939
diff
changeset
|
423 | |
|
931ef2cc7cfb
Add support for colour in gnttreerows, and colourise the blist. Fixes #1490
Richard Nelson <wabz@pidgin.im>
parents:
20939
diff
changeset
|
424 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
425 | * gnt_tree_set_selected: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
426 | * @tree: The tree |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
427 | * @key: The key of the row to select |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
428 | * |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
429 | * Select a row. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
430 | */ |
|
14014
223d99ce2f06
[gaim-migrate @ 16500]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13997
diff
changeset
|
431 | void gnt_tree_set_selected(GntTree *tree , void *key); |
|
223d99ce2f06
[gaim-migrate @ 16500]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13997
diff
changeset
|
432 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
433 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
434 | * gnt_tree_create_row: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
435 | * @tree: The tree |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
436 | * @...: A string for each column in the tree |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
437 | * |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
438 | * Create a row to insert in the tree. |
|
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
439 | * |
| 35471 | 440 | * See gnt_tree_create_row_from_list(), gnt_tree_add_row_after(), |
| 441 | * gnt_tree_add_row_last(), gnt_tree_add_choice(). | |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
442 | * |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
443 | * Returns: The row |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
444 | */ |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
445 | GntTreeRow * gnt_tree_create_row(GntTree *tree, ...); |
|
14026
ad91ce0effe2
[gaim-migrate @ 16520]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14014
diff
changeset
|
446 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
447 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
448 | * gnt_tree_create_row_from_list: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
449 | * @tree: The tree |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
450 | * @list: The list containing the text for each column |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
451 | * |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
452 | * Create a row from a list of text. |
|
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
453 | * |
| 35471 | 454 | * See gnt_tree_create_row(), gnt_tree_add_row_after(), gnt_tree_add_row_last(), |
| 455 | * gnt_tree_add_choice(). | |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
456 | * |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
457 | * Returns: The row |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
458 | */ |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
459 | GntTreeRow * gnt_tree_create_row_from_list(GntTree *tree, GList *list); |
|
14041
6afba85cfc30
[gaim-migrate @ 16540]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14033
diff
changeset
|
460 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
461 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
462 | * gnt_tree_set_col_width: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
463 | * @tree: The tree |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
464 | * @col: The index of the column |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
465 | * @width: The width for the column |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
466 | * |
|
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
467 | * Set the width of a column in the tree. |
|
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
468 | * |
| 35471 | 469 | * See gnt_tree_set_column_width_ratio(), gnt_tree_set_column_resizable() |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
470 | */ |
|
14026
ad91ce0effe2
[gaim-migrate @ 16520]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14014
diff
changeset
|
471 | void gnt_tree_set_col_width(GntTree *tree, int col, int width); |
|
ad91ce0effe2
[gaim-migrate @ 16520]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14014
diff
changeset
|
472 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
473 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
474 | * gnt_tree_set_column_title: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
475 | * @tree: The tree |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
476 | * @index: The index of the column |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
477 | * @title: The title for the column |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
478 | * |
|
18403
218a6f247a1c
Oops. I missed this. This allows setting tree-column titles one by one.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18358
diff
changeset
|
479 | * Set the title for a column. |
|
218a6f247a1c
Oops. I missed this. This allows setting tree-column titles one by one.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18358
diff
changeset
|
480 | * |
| 35471 | 481 | * See gnt_tree_set_column_titles(), gnt_tree_set_show_title(). |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
482 | * |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
483 | * Since: 2.0.0 (gnt), 2.1.0 (pidgin) |
|
18403
218a6f247a1c
Oops. I missed this. This allows setting tree-column titles one by one.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18358
diff
changeset
|
484 | */ |
|
218a6f247a1c
Oops. I missed this. This allows setting tree-column titles one by one.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18358
diff
changeset
|
485 | void gnt_tree_set_column_title(GntTree *tree, int index, const char *title); |
|
218a6f247a1c
Oops. I missed this. This allows setting tree-column titles one by one.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18358
diff
changeset
|
486 | |
|
218a6f247a1c
Oops. I missed this. This allows setting tree-column titles one by one.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18358
diff
changeset
|
487 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
488 | * gnt_tree_set_column_titles: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
489 | * @tree: The tree |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
490 | * @...: One title for each column in the tree |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
491 | * |
|
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
492 | * Set the titles of the columns |
|
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
493 | * |
| 35471 | 494 | * See gnt_tree_set_column_title(), gnt_tree_set_show_title(). |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
495 | */ |
|
14033
127990de806d
[gaim-migrate @ 16529]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14026
diff
changeset
|
496 | void gnt_tree_set_column_titles(GntTree *tree, ...); |
|
127990de806d
[gaim-migrate @ 16529]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14026
diff
changeset
|
497 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
498 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
499 | * gnt_tree_set_show_title: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
500 | * @tree: The tree |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
501 | * @set: If %TRUE, the column titles are displayed |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
502 | * |
|
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
503 | * Set whether to display the title of the columns. |
|
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
504 | * |
| 35471 | 505 | * See gnt_tree_set_column_title(), gnt_tree_set_column_titles(). |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
506 | */ |
|
14033
127990de806d
[gaim-migrate @ 16529]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14026
diff
changeset
|
507 | void gnt_tree_set_show_title(GntTree *tree, gboolean set); |
|
127990de806d
[gaim-migrate @ 16529]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14026
diff
changeset
|
508 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
509 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
510 | * gnt_tree_set_compare_func: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
511 | * @tree: The tree |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
512 | * @func: The comparison function, which is used to compare |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
513 | * the keys |
|
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
514 | * |
|
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
515 | * Set the compare function for sorting the data. |
|
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
516 | * |
| 35471 | 517 | * See gnt_tree_sort_row(). |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
518 | */ |
|
14167
ca6027c33d2c
[gaim-migrate @ 16739]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14153
diff
changeset
|
519 | void gnt_tree_set_compare_func(GntTree *tree, GCompareFunc func); |
|
ca6027c33d2c
[gaim-migrate @ 16739]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14153
diff
changeset
|
520 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
521 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
522 | * gnt_tree_set_expanded: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
523 | * @tree: The tree |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
524 | * @key: The key of the row |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
525 | * @expanded: Whether to expand the child rows |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
526 | * |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
527 | * Set whether a row, which has child rows, should be expanded. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
528 | */ |
|
14446
5f36f08183e8
[gaim-migrate @ 17090]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14167
diff
changeset
|
529 | void gnt_tree_set_expanded(GntTree *tree, void *key, gboolean expanded); |
|
5f36f08183e8
[gaim-migrate @ 17090]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14167
diff
changeset
|
530 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
531 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
532 | * gnt_tree_set_show_separator: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
533 | * @tree: The tree |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
534 | * @set: If %TRUE, the column separators are displayed |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
535 | * |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
536 | * Set whether to show column separators. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
537 | */ |
|
14675
be8af28d1980
[gaim-migrate @ 17341]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14446
diff
changeset
|
538 | void gnt_tree_set_show_separator(GntTree *tree, gboolean set); |
|
be8af28d1980
[gaim-migrate @ 17341]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14446
diff
changeset
|
539 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
540 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
541 | * gnt_tree_sort_row: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
542 | * @tree: The tree |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
543 | * @row: The row to sort |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
544 | * |
|
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
545 | * Sort a row in the tree. |
|
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
546 | * |
| 35471 | 547 | * See gnt_tree_set_compare_func(). |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
548 | */ |
| 14774 | 549 | void gnt_tree_sort_row(GntTree *tree, void *row); |
| 550 | ||
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
551 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
552 | * gnt_tree_adjust_columns: |
|
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
553 | * @tree: The tree |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
554 | * |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
555 | * Automatically adjust the width of the columns in the tree. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
556 | */ |
|
14678
97f57691faab
[gaim-migrate @ 17344]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14675
diff
changeset
|
557 | void gnt_tree_adjust_columns(GntTree *tree); |
|
97f57691faab
[gaim-migrate @ 17344]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14675
diff
changeset
|
558 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
559 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
560 | * gnt_tree_set_hash_fns: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
561 | * @tree: The tree |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
562 | * @hash: The hashing function |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
563 | * @eq: The function to compare keys |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
564 | * @kd: The function to use to free the keys when a row is removed |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
565 | * from the tree |
|
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
566 | * |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
567 | * Set the hash functions to use to hash, compare and free the keys. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
568 | */ |
|
15220
fc8b223f4b75
[gaim-migrate @ 17944]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14939
diff
changeset
|
569 | void gnt_tree_set_hash_fns(GntTree *tree, gpointer hash, gpointer eq, gpointer kd); |
|
fc8b223f4b75
[gaim-migrate @ 17944]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14939
diff
changeset
|
570 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
571 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
572 | * gnt_tree_set_column_visible: |
|
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
573 | * @tree: The tree |
|
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
574 | * @col: The index of the column |
|
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
575 | * @vis: If %FALSE, the column will not be displayed |
|
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
576 | * |
|
18558
1a90a2b56443
Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18403
diff
changeset
|
577 | * Set whether a column is visible or not. |
|
1a90a2b56443
Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18403
diff
changeset
|
578 | * This can be useful when, for example, we want to store some data |
|
1a90a2b56443
Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18403
diff
changeset
|
579 | * which we don't want/need to display. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16030
diff
changeset
|
580 | */ |
|
16030
fb61f4100934
Allow making some columns invisible.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15991
diff
changeset
|
581 | void gnt_tree_set_column_visible(GntTree *tree, int col, gboolean vis); |
|
fb61f4100934
Allow making some columns invisible.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15991
diff
changeset
|
582 | |
|
18558
1a90a2b56443
Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18403
diff
changeset
|
583 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
584 | * gnt_tree_set_column_resizable: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
585 | * @tree: The tree |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
586 | * @col: The index of the column |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
587 | * @res: If %FALSE, the column will not be resized when the |
|
18558
1a90a2b56443
Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18403
diff
changeset
|
588 | * tree is resized |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
589 | * |
|
18558
1a90a2b56443
Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18403
diff
changeset
|
590 | * Set whether a column can be resized to keep the same ratio when the |
|
1a90a2b56443
Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18403
diff
changeset
|
591 | * tree is resized. |
|
31293
169eeb43b52c
Remove trailing whitespace
Richard Laager <rlaager@pidgin.im>
parents:
30499
diff
changeset
|
592 | * |
| 35471 | 593 | * See gnt_tree_set_col_width(), gnt_tree_set_column_width_ratio(). |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
594 | * |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
595 | * Since: 2.0.0 (gnt), 2.1.0 (pidgin) |
|
18558
1a90a2b56443
Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18403
diff
changeset
|
596 | */ |
|
1a90a2b56443
Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18403
diff
changeset
|
597 | void gnt_tree_set_column_resizable(GntTree *tree, int col, gboolean res); |
|
1a90a2b56443
Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18403
diff
changeset
|
598 | |
|
1a90a2b56443
Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18403
diff
changeset
|
599 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
600 | * gnt_tree_set_column_is_binary: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
601 | * @tree: The tree |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
602 | * @col: The index of the column |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
603 | * @bin: %TRUE if the data for the column is binary |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
604 | * |
|
18598
946f9240fe5c
Allow storing non-string binary data in tree columns.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18597
diff
changeset
|
605 | * Set whether data in a column should be considered as binary data, and |
|
946f9240fe5c
Allow storing non-string binary data in tree columns.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18597
diff
changeset
|
606 | * not as strings. A column containing binary data will be display empty text. |
|
946f9240fe5c
Allow storing non-string binary data in tree columns.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18597
diff
changeset
|
607 | */ |
|
946f9240fe5c
Allow storing non-string binary data in tree columns.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18597
diff
changeset
|
608 | void gnt_tree_set_column_is_binary(GntTree *tree, int col, gboolean bin); |
|
946f9240fe5c
Allow storing non-string binary data in tree columns.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18597
diff
changeset
|
609 | |
|
946f9240fe5c
Allow storing non-string binary data in tree columns.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18597
diff
changeset
|
610 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
611 | * gnt_tree_set_column_is_right_aligned: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
612 | * @tree: The tree |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
613 | * @col: The index of the column |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
614 | * @right: %TRUE if the text in the column should be right aligned |
|
20939
13dd02add7c1
Add @since doxygen tags for finch/libgnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
19859
diff
changeset
|
615 | * |
|
18632
c7a3b70f0ae7
Allow showing right-aligned text trees. Right-align the size in the file
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18624
diff
changeset
|
616 | * Set whether text in a column should be right-aligned. |
|
c7a3b70f0ae7
Allow showing right-aligned text trees. Right-align the size in the file
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18624
diff
changeset
|
617 | * |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
618 | * Since: 2.0.0 (gnt), 2.1.0 (pidgin) |
|
18632
c7a3b70f0ae7
Allow showing right-aligned text trees. Right-align the size in the file
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18624
diff
changeset
|
619 | */ |
|
c7a3b70f0ae7
Allow showing right-aligned text trees. Right-align the size in the file
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18624
diff
changeset
|
620 | void gnt_tree_set_column_is_right_aligned(GntTree *tree, int col, gboolean right); |
|
c7a3b70f0ae7
Allow showing right-aligned text trees. Right-align the size in the file
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18624
diff
changeset
|
621 | |
|
c7a3b70f0ae7
Allow showing right-aligned text trees. Right-align the size in the file
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18624
diff
changeset
|
622 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
623 | * gnt_tree_set_column_width_ratio: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
624 | * @tree: The tree |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
625 | * @cols: Array of widths. The width must have the same number |
|
18558
1a90a2b56443
Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18403
diff
changeset
|
626 | * of entries as the number of columns in the tree, or |
|
1a90a2b56443
Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18403
diff
changeset
|
627 | * end with a negative value for a column-width. |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
628 | * |
|
18558
1a90a2b56443
Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18403
diff
changeset
|
629 | * Set column widths to use when calculating column widths after a tree |
|
1a90a2b56443
Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18403
diff
changeset
|
630 | * is resized. |
|
1a90a2b56443
Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18403
diff
changeset
|
631 | * |
| 35471 | 632 | * See gnt_tree_set_col_width(), gnt_tree_set_column_resizable(). |
|
18597
6a9e4ef6f424
Docs for GntTree.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18558
diff
changeset
|
633 | * |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
634 | * Since: 2.0.0 (gnt), 2.1.0 (pidgin) |
|
18558
1a90a2b56443
Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18403
diff
changeset
|
635 | */ |
|
1a90a2b56443
Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18403
diff
changeset
|
636 | void gnt_tree_set_column_width_ratio(GntTree *tree, int cols[]); |
|
1a90a2b56443
Resize tree-columns nicely when the tree is resized. We can tell it to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18403
diff
changeset
|
637 | |
|
18786
87d4f1e609cb
Allow setting the search column in a tree to use for typeahead searching.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18783
diff
changeset
|
638 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
639 | * gnt_tree_set_search_column: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
640 | * @tree: The tree |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
641 | * @col: The index of the column |
|
20939
13dd02add7c1
Add @since doxygen tags for finch/libgnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
19859
diff
changeset
|
642 | * |
|
18786
87d4f1e609cb
Allow setting the search column in a tree to use for typeahead searching.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18783
diff
changeset
|
643 | * Set the column to use for typeahead searching. |
|
87d4f1e609cb
Allow setting the search column in a tree to use for typeahead searching.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18783
diff
changeset
|
644 | * |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
645 | * Since: 2.0.0 (gnt), 2.1.0 (pidgin) |
|
18786
87d4f1e609cb
Allow setting the search column in a tree to use for typeahead searching.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18783
diff
changeset
|
646 | */ |
|
87d4f1e609cb
Allow setting the search column in a tree to use for typeahead searching.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18783
diff
changeset
|
647 | void gnt_tree_set_search_column(GntTree *tree, int col); |
|
87d4f1e609cb
Allow setting the search column in a tree to use for typeahead searching.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18783
diff
changeset
|
648 | |
|
18787
a96af97dc501
New feature: successful compilation.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18786
diff
changeset
|
649 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
650 | * gnt_tree_is_searching: |
|
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
651 | * @tree: The tree |
|
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
652 | * |
|
18787
a96af97dc501
New feature: successful compilation.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18786
diff
changeset
|
653 | * Check whether the user is currently in the middle of a search. |
|
a96af97dc501
New feature: successful compilation.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18786
diff
changeset
|
654 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
655 | * Returns: %TRUE if the user is searching, %FALSE otherwise. |
|
20939
13dd02add7c1
Add @since doxygen tags for finch/libgnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
19859
diff
changeset
|
656 | * |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
657 | * Since: 2.0.0 (gnt), 2.1.0 (pidgin) |
|
18787
a96af97dc501
New feature: successful compilation.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18786
diff
changeset
|
658 | */ |
|
a96af97dc501
New feature: successful compilation.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18786
diff
changeset
|
659 | gboolean gnt_tree_is_searching(GntTree *tree); |
|
a96af97dc501
New feature: successful compilation.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18786
diff
changeset
|
660 | |
|
18827
822e004cae0c
Allow using custom search functions.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18803
diff
changeset
|
661 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
662 | * gnt_tree_set_search_function: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
663 | * @tree: The tree |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
664 | * @func: The custom search function. The search function is |
|
18829
35138e0fbf77
Patch from Javeed Shaikh to make the search function non-braindamaged.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18827
diff
changeset
|
665 | * sent the tree itself, the key of a row, the search |
|
35138e0fbf77
Patch from Javeed Shaikh to make the search function non-braindamaged.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18827
diff
changeset
|
666 | * string and the content of row in the search column. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
667 | * If the function returns %TRUE, the row is dislayed, |
|
18829
35138e0fbf77
Patch from Javeed Shaikh to make the search function non-braindamaged.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18827
diff
changeset
|
668 | * otherwise it's not. |
|
20939
13dd02add7c1
Add @since doxygen tags for finch/libgnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
19859
diff
changeset
|
669 | * |
|
18827
822e004cae0c
Allow using custom search functions.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18803
diff
changeset
|
670 | * Set a custom search function. |
|
822e004cae0c
Allow using custom search functions.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18803
diff
changeset
|
671 | * |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
672 | * Since: 2.0.0 (gnt), 2.1.0 (pidgin) |
|
18827
822e004cae0c
Allow using custom search functions.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18803
diff
changeset
|
673 | */ |
|
822e004cae0c
Allow using custom search functions.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18803
diff
changeset
|
674 | void gnt_tree_set_search_function(GntTree *tree, |
|
18829
35138e0fbf77
Patch from Javeed Shaikh to make the search function non-braindamaged.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18827
diff
changeset
|
675 | gboolean (*func)(GntTree *tree, gpointer key, const char *search, const char *current)); |
|
18827
822e004cae0c
Allow using custom search functions.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18803
diff
changeset
|
676 | |
|
22284
1eaf3526de19
Function to get the parent key.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22015
diff
changeset
|
677 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
678 | * gnt_tree_get_parent_key: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
679 | * @tree: The tree |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
680 | * @key: The key for the row. |
|
22284
1eaf3526de19
Function to get the parent key.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22015
diff
changeset
|
681 | * |
|
1eaf3526de19
Function to get the parent key.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22015
diff
changeset
|
682 | * Get the parent key for a row. |
|
1eaf3526de19
Function to get the parent key.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22015
diff
changeset
|
683 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
684 | * Returns: The key of the parent row. |
|
22284
1eaf3526de19
Function to get the parent key.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22015
diff
changeset
|
685 | * |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
686 | * Since: 2.4.0 |
|
22284
1eaf3526de19
Function to get the parent key.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22015
diff
changeset
|
687 | */ |
|
1eaf3526de19
Function to get the parent key.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22015
diff
changeset
|
688 | gpointer gnt_tree_get_parent_key(GntTree *tree, gpointer key); |
|
1eaf3526de19
Function to get the parent key.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22015
diff
changeset
|
689 | |
|
13852
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
690 | G_END_DECLS |
|
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
691 | |
|
1d3ae9f34d42
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
692 | #endif /* GNT_TREE_H */ |