Wed, 29 Jan 2014 05:28:33 +0530
Convert doxygen's @return and @param commands for gtk-doc
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
1 | /** |
|
18358
2122fd567315
Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
17586
diff
changeset
|
2 | * @file gnttextview.h Textview API |
|
2122fd567315
Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
17586
diff
changeset
|
3 | * @ingroup gnt |
|
2122fd567315
Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
17586
diff
changeset
|
4 | */ |
|
2122fd567315
Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
17586
diff
changeset
|
5 | /* |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
6 | * GNT - The GLib Ncurses Toolkit |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
7 | * |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
8 | * GNT is the legal property of its developers, whose names are too numerous |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
9 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
10 | * source distribution. |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
11 | * |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
12 | * This library is free software; you can redistribute it and/or modify |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
13 | * it under the terms of the GNU General Public License as published by |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
14 | * the Free Software Foundation; either version 2 of the License, or |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
15 | * (at your option) any later version. |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
16 | * |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
17 | * This program is distributed in the hope that it will be useful, |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
20 | * GNU General Public License for more details. |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
21 | * |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
22 | * You should have received a copy of the GNU General Public License |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
23 | * along with this program; if not, write to the Free Software |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19183
diff
changeset
|
24 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
25 | */ |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
26 | |
|
13944
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
27 | #ifndef GNT_TEXT_VIEW_H |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
28 | #define GNT_TEXT_VIEW_H |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
29 | |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
30 | #include "gntwidget.h" |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
31 | #include "gnt.h" |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
32 | #include "gntcolors.h" |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
33 | #include "gntkeys.h" |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
34 | |
|
15991
1efb6bd8ba3f
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15886
diff
changeset
|
35 | #define GNT_TYPE_TEXT_VIEW (gnt_text_view_get_gtype()) |
|
1efb6bd8ba3f
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15886
diff
changeset
|
36 | #define GNT_TEXT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_TEXT_VIEW, GntTextView)) |
|
1efb6bd8ba3f
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15886
diff
changeset
|
37 | #define GNT_TEXT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GNT_TYPE_TEXT_VIEW, GntTextViewClass)) |
|
1efb6bd8ba3f
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15886
diff
changeset
|
38 | #define GNT_IS_TEXT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNT_TYPE_TEXT_VIEW)) |
|
1efb6bd8ba3f
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15886
diff
changeset
|
39 | #define GNT_IS_TEXT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GNT_TYPE_TEXT_VIEW)) |
|
1efb6bd8ba3f
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15886
diff
changeset
|
40 | #define GNT_TEXT_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_TEXT_VIEW, GntTextViewClass)) |
|
13944
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
41 | |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
42 | #define GNT_TEXT_VIEW_FLAGS(obj) (GNT_TEXT_VIEW(obj)->priv.flags) |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
43 | #define GNT_TEXT_VIEW_SET_FLAGS(obj, flags) (GNT_TEXT_VIEW_FLAGS(obj) |= flags) |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
44 | #define GNT_TEXT_VIEW_UNSET_FLAGS(obj, flags) (GNT_TEXT_VIEW_FLAGS(obj) &= ~(flags)) |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
45 | |
|
15991
1efb6bd8ba3f
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15886
diff
changeset
|
46 | typedef struct _GntTextView GntTextView; |
|
1efb6bd8ba3f
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15886
diff
changeset
|
47 | typedef struct _GntTextViewPriv GntTextViewPriv; |
|
1efb6bd8ba3f
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15886
diff
changeset
|
48 | typedef struct _GntTextViewClass GntTextViewClass; |
|
13944
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
49 | |
|
19183
aee7b7ad425e
New flag to show text top-aligned in a textview.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18803
diff
changeset
|
50 | typedef enum |
|
aee7b7ad425e
New flag to show text top-aligned in a textview.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18803
diff
changeset
|
51 | { |
|
18368
ffeff952aa09
Add flags to a textview to decide whether to show scrollbars, and whether
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18358
diff
changeset
|
52 | GNT_TEXT_VIEW_NO_SCROLL = 1 << 0, |
|
ffeff952aa09
Add flags to a textview to decide whether to show scrollbars, and whether
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18358
diff
changeset
|
53 | GNT_TEXT_VIEW_WRAP_CHAR = 1 << 1, |
|
19183
aee7b7ad425e
New flag to show text top-aligned in a textview.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18803
diff
changeset
|
54 | GNT_TEXT_VIEW_TOP_ALIGN = 1 << 2, |
|
18368
ffeff952aa09
Add flags to a textview to decide whether to show scrollbars, and whether
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18358
diff
changeset
|
55 | } GntTextViewFlag; |
|
ffeff952aa09
Add flags to a textview to decide whether to show scrollbars, and whether
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18358
diff
changeset
|
56 | |
|
15991
1efb6bd8ba3f
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15886
diff
changeset
|
57 | struct _GntTextView |
|
13944
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
58 | { |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
59 | GntWidget parent; |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
60 | |
|
14445
69f18df58bbf
[gaim-migrate @ 17089]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14092
diff
changeset
|
61 | GString *string; |
|
13958
bd1c3bb3f33d
[gaim-migrate @ 16381]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13944
diff
changeset
|
62 | GList *list; /* List of GntTextLine */ |
|
15233
fdd9e78534ad
[gaim-migrate @ 17957]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14939
diff
changeset
|
63 | |
|
fdd9e78534ad
[gaim-migrate @ 17957]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14939
diff
changeset
|
64 | GList *tags; /* A list of tags */ |
|
18368
ffeff952aa09
Add flags to a textview to decide whether to show scrollbars, and whether
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18358
diff
changeset
|
65 | GntTextViewFlag flags; |
|
13944
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
66 | }; |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
67 | |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
68 | typedef enum |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
69 | { |
|
14026
ad91ce0effe2
[gaim-migrate @ 16520]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14014
diff
changeset
|
70 | GNT_TEXT_FLAG_NORMAL = 0, |
|
13944
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
71 | GNT_TEXT_FLAG_BOLD = 1 << 0, |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
72 | GNT_TEXT_FLAG_UNDERLINE = 1 << 1, |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
73 | GNT_TEXT_FLAG_BLINK = 1 << 2, |
|
13958
bd1c3bb3f33d
[gaim-migrate @ 16381]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13944
diff
changeset
|
74 | GNT_TEXT_FLAG_DIM = 1 << 3, |
|
bd1c3bb3f33d
[gaim-migrate @ 16381]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13944
diff
changeset
|
75 | GNT_TEXT_FLAG_HIGHLIGHT = 1 << 4, |
|
13993
8c12e7d15b40
[gaim-migrate @ 16458]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13958
diff
changeset
|
76 | } GntTextFormatFlags; |
|
13944
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
77 | |
|
15991
1efb6bd8ba3f
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15886
diff
changeset
|
78 | struct _GntTextViewClass |
|
13944
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
79 | { |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
80 | GntWidgetClass parent; |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
81 | |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
82 | void (*gnt_reserved1)(void); |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
83 | void (*gnt_reserved2)(void); |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
84 | void (*gnt_reserved3)(void); |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
85 | void (*gnt_reserved4)(void); |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
86 | }; |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
87 | |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
88 | G_BEGIN_DECLS |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
89 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
90 | /** |
|
37017
8e2b68c79fa1
Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
91 | * Returns: GType for GntTextView. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
92 | */ |
|
13944
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
93 | GType gnt_text_view_get_gtype(void); |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
94 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
95 | /** |
|
21243
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
96 | * Create a new textview. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
97 | * |
|
37017
8e2b68c79fa1
Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
98 | * Returns: The newly created textview. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
99 | */ |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
100 | GntWidget * gnt_text_view_new(void); |
|
13944
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
101 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
102 | /** |
|
21243
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
103 | * Scroll the textview. |
|
37017
8e2b68c79fa1
Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
104 | * @view: The textview to scroll. |
|
8e2b68c79fa1
Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
105 | * @scroll: scroll > 0 means scroll up, < 0 means scroll down, == 0 means scroll to the end. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
106 | */ |
|
13944
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
107 | void gnt_text_view_scroll(GntTextView *view, int scroll); |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
108 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
109 | /** |
|
21243
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
110 | * Append new text in a textview. |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
111 | * |
|
37017
8e2b68c79fa1
Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
112 | * @view: The textview. |
|
8e2b68c79fa1
Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
113 | * @text: The text to append to the textview. |
|
8e2b68c79fa1
Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
114 | * @flags: The text-flags to apply to the new text. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
115 | */ |
|
13993
8c12e7d15b40
[gaim-migrate @ 16458]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13958
diff
changeset
|
116 | void gnt_text_view_append_text_with_flags(GntTextView *view, const char *text, GntTextFormatFlags flags); |
|
13944
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
117 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
118 | /** |
|
21243
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
119 | * Append text in the textview, with some identifier (tag) for the added text. |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
120 | * |
|
37017
8e2b68c79fa1
Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
121 | * @view: The textview. |
|
8e2b68c79fa1
Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
122 | * @text: The text to append. |
|
8e2b68c79fa1
Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
123 | * @flags: The text-flags to apply to the new text. |
|
8e2b68c79fa1
Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
124 | * @tag: The tag for the appended text, so it can be changed later (@see gnt_text_view_tag_change) |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
125 | */ |
|
15233
fdd9e78534ad
[gaim-migrate @ 17957]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14939
diff
changeset
|
126 | void gnt_text_view_append_text_with_tag(GntTextView *view, const char *text, GntTextFormatFlags flags, const char *tag); |
|
fdd9e78534ad
[gaim-migrate @ 17957]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14939
diff
changeset
|
127 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
128 | /** |
|
21243
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
129 | * Move the cursor to the beginning of the next line and resets text-attributes. |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
130 | * It first completes the current line with the current text-attributes. |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
131 | * |
|
37017
8e2b68c79fa1
Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
132 | * @view: The textview. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
133 | */ |
|
13944
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
134 | void gnt_text_view_next_line(GntTextView *view); |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
135 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
136 | /** |
|
21243
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
137 | * Convert GNT-text formats to ncurses-text attributes. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
138 | * |
|
37017
8e2b68c79fa1
Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
139 | * @flags: The GNT text format. |
|
21243
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
140 | * |
|
37017
8e2b68c79fa1
Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
141 | * Returns: Nucrses text attribute. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
142 | */ |
|
14014
223d99ce2f06
[gaim-migrate @ 16500]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13993
diff
changeset
|
143 | chtype gnt_text_format_flag_to_chtype(GntTextFormatFlags flags); |
|
223d99ce2f06
[gaim-migrate @ 16500]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13993
diff
changeset
|
144 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
145 | /** |
|
21243
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
146 | * Clear the contents of the textview. |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
147 | * |
|
37017
8e2b68c79fa1
Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
148 | * @view: The textview. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
149 | */ |
|
14033
127990de806d
[gaim-migrate @ 16529]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14026
diff
changeset
|
150 | void gnt_text_view_clear(GntTextView *view); |
|
127990de806d
[gaim-migrate @ 16529]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14026
diff
changeset
|
151 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
152 | /** |
|
21243
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
153 | * The number of lines below the bottom-most visible line. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
154 | * |
|
37017
8e2b68c79fa1
Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
155 | * @view: The textview. |
|
21243
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
156 | * |
|
37017
8e2b68c79fa1
Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
157 | * Returns: Number of lines below the bottom-most visible line. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
158 | */ |
|
14092
191e12cbe464
[gaim-migrate @ 16632]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14033
diff
changeset
|
159 | int gnt_text_view_get_lines_below(GntTextView *view); |
|
191e12cbe464
[gaim-migrate @ 16632]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14033
diff
changeset
|
160 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
161 | /** |
|
21243
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
162 | * The number of lines above the topmost visible line. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
163 | * |
|
37017
8e2b68c79fa1
Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
164 | * @view: The textview. |
|
21243
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
165 | * |
|
37017
8e2b68c79fa1
Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
166 | * Returns: Number of lines above the topmost visible line. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
167 | */ |
|
14092
191e12cbe464
[gaim-migrate @ 16632]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14033
diff
changeset
|
168 | int gnt_text_view_get_lines_above(GntTextView *view); |
|
191e12cbe464
[gaim-migrate @ 16632]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14033
diff
changeset
|
169 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
170 | /** |
|
21243
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
171 | * Change the text of a tag. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
172 | * |
|
37017
8e2b68c79fa1
Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
173 | * @view: The textview. |
|
8e2b68c79fa1
Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
174 | * @name: The name of the tag. |
|
8e2b68c79fa1
Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
175 | * @text: The new text for the text. If 'text' is @c NULL, the tag is removed. |
|
8e2b68c79fa1
Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
176 | * @all: @c TRUE if all of the instancess of the tag should be changed, @c FALSE if |
|
21243
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
177 | * only the first instance should be changed. |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
178 | * |
|
37017
8e2b68c79fa1
Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
179 | * Returns: The number of instances changed. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
180 | */ |
|
15233
fdd9e78534ad
[gaim-migrate @ 17957]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14939
diff
changeset
|
181 | int gnt_text_view_tag_change(GntTextView *view, const char *name, const char *text, gboolean all); |
|
fdd9e78534ad
[gaim-migrate @ 17957]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14939
diff
changeset
|
182 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
183 | /** |
|
21243
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
184 | * Setup hooks so that pressing up/down/page-up/page-down keys when 'widget' is |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
185 | * in focus scrolls the textview. |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
186 | * |
|
37017
8e2b68c79fa1
Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
187 | * @view: The textview. |
|
8e2b68c79fa1
Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
188 | * @widget: The trigger widget. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
189 | */ |
|
16186
73cb5b43aaf9
Add a utility function to assist scrolling in a textview.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15991
diff
changeset
|
190 | void gnt_text_view_attach_scroll_widget(GntTextView *view, GntWidget *widget); |
|
73cb5b43aaf9
Add a utility function to assist scrolling in a textview.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15991
diff
changeset
|
191 | |
|
18368
ffeff952aa09
Add flags to a textview to decide whether to show scrollbars, and whether
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18358
diff
changeset
|
192 | /** |
|
21243
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
193 | * Setup appropriate hooks so that pressing some keys when the 'pager' widget |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
194 | * is in focus triggers the PAGER to popup with the contents of the textview |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
195 | * in it. |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
196 | * |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
197 | * The default key-combination to trigger the pager is a-v, and the default |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
198 | * PAGER application is $PAGER. Both can be changed in ~/.gntrc like this: |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
199 | * |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
200 | * @code |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
201 | * [pager] |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
202 | * key = a-v |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
203 | * path = /path/to/pager |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
204 | * @endcode |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
205 | * |
|
37017
8e2b68c79fa1
Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
206 | * @view: The textview. |
|
8e2b68c79fa1
Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
207 | * @pager: The widget to trigger the PAGER. |
|
18604
2ff126dbae16
Utility function to start the pager with the contents of a textview.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18368
diff
changeset
|
208 | */ |
|
2ff126dbae16
Utility function to start the pager with the contents of a textview.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18368
diff
changeset
|
209 | void gnt_text_view_attach_pager_widget(GntTextView *view, GntWidget *pager); |
|
2ff126dbae16
Utility function to start the pager with the contents of a textview.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18368
diff
changeset
|
210 | |
|
2ff126dbae16
Utility function to start the pager with the contents of a textview.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18368
diff
changeset
|
211 | /** |
|
21243
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
212 | * Setup appropriate hooks so that pressing some keys when 'widget' |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
213 | * is in focus triggers the EDITOR to popup with the contents of the textview |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
214 | * in it. |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
215 | * |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
216 | * The default key-combination to trigger the pager is a-e, and the default |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
217 | * EDITOR application is $EDITOR. Both can be changed in ~/.gntrc like this: |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
218 | * |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
219 | * @code |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
220 | * [editor] |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
221 | * key = a-e |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
222 | * path = /path/to/editor |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
223 | * @endcode |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
224 | * |
|
37017
8e2b68c79fa1
Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
225 | * @view: The textview. |
|
8e2b68c79fa1
Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
226 | * @widget: The widget to trigger the EDITOR. |
|
18791
12003d1b25bf
Allow changing the content of a textview using $EDITOR.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18604
diff
changeset
|
227 | */ |
|
21243
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
228 | void gnt_text_view_attach_editor_widget(GntTextView *view, GntWidget *widget); |
|
18791
12003d1b25bf
Allow changing the content of a textview using $EDITOR.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18604
diff
changeset
|
229 | |
|
12003d1b25bf
Allow changing the content of a textview using $EDITOR.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18604
diff
changeset
|
230 | /** |
|
18368
ffeff952aa09
Add flags to a textview to decide whether to show scrollbars, and whether
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18358
diff
changeset
|
231 | * Set a GntTextViewFlag for the textview widget. |
|
ffeff952aa09
Add flags to a textview to decide whether to show scrollbars, and whether
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18358
diff
changeset
|
232 | * |
|
37017
8e2b68c79fa1
Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
233 | * @view: The textview widget |
|
8e2b68c79fa1
Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
234 | * @flag: The flag to set |
|
20939
13dd02add7c1
Add @since doxygen tags for finch/libgnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
19859
diff
changeset
|
235 | * |
|
13dd02add7c1
Add @since doxygen tags for finch/libgnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
19859
diff
changeset
|
236 | * @since 2.0.0 (gnt), 2.1.0 (pidgin) |
|
18368
ffeff952aa09
Add flags to a textview to decide whether to show scrollbars, and whether
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18358
diff
changeset
|
237 | */ |
|
ffeff952aa09
Add flags to a textview to decide whether to show scrollbars, and whether
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18358
diff
changeset
|
238 | void gnt_text_view_set_flag(GntTextView *view, GntTextViewFlag flag); |
|
ffeff952aa09
Add flags to a textview to decide whether to show scrollbars, and whether
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18358
diff
changeset
|
239 | |
|
13944
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
240 | G_END_DECLS |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
241 | |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
242 | #endif /* GNT_TEXT_VIEW_H */ |