Fri, 27 Apr 2018 07:02:15 -0400
Move gnt version information into libgnt meson.build.
|
18358
2122fd567315
Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
17586
diff
changeset
|
1 | /* |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
2 | * GNT - The GLib Ncurses Toolkit |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
3 | * |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
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:
16186
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:
16186
diff
changeset
|
6 | * source distribution. |
|
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 | * 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
|
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:
16186
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:
16186
diff
changeset
|
11 | * (at your option) any later version. |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
12 | * |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
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:
16186
diff
changeset
|
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
16 | * GNU General Public License for more details. |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
17 | * |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
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:
16186
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:
19183
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:
16186
diff
changeset
|
21 | */ |
|
35487
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35477
diff
changeset
|
22 | |
|
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35477
diff
changeset
|
23 | #ifndef GNT_TEXT_VIEW_H |
|
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35477
diff
changeset
|
24 | #define GNT_TEXT_VIEW_H |
|
35446
c0f80955551d
Add sections for libgnt and re-arrange GNT doc index
Ankit Vani <a@nevitus.org>
parents:
35409
diff
changeset
|
25 | /** |
|
c0f80955551d
Add sections for libgnt and re-arrange GNT doc index
Ankit Vani <a@nevitus.org>
parents:
35409
diff
changeset
|
26 | * SECTION:gnttextview |
|
c0f80955551d
Add sections for libgnt and re-arrange GNT doc index
Ankit Vani <a@nevitus.org>
parents:
35409
diff
changeset
|
27 | * @section_id: libgnt-gnttextview |
|
c0f80955551d
Add sections for libgnt and re-arrange GNT doc index
Ankit Vani <a@nevitus.org>
parents:
35409
diff
changeset
|
28 | * @short_description: <filename>gnttextview.h</filename> |
|
c0f80955551d
Add sections for libgnt and re-arrange GNT doc index
Ankit Vani <a@nevitus.org>
parents:
35409
diff
changeset
|
29 | * @title: Textview |
|
c0f80955551d
Add sections for libgnt and re-arrange GNT doc index
Ankit Vani <a@nevitus.org>
parents:
35409
diff
changeset
|
30 | */ |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
31 | |
|
13944
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
32 | #include "gntwidget.h" |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
33 | #include "gnt.h" |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
34 | #include "gntcolors.h" |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
35 | #include "gntkeys.h" |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
36 | |
|
35379
ea1a0327001e
Rename _get_gtype() functions in libgnt to _get_type()
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
37 | #define GNT_TYPE_TEXT_VIEW (gnt_text_view_get_type()) |
|
15991
1efb6bd8ba3f
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15886
diff
changeset
|
38 | #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
|
39 | #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
|
40 | #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
|
41 | #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
|
42 | #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
|
43 | |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
44 | #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
|
45 | #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
|
46 | #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
|
47 | |
|
15991
1efb6bd8ba3f
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15886
diff
changeset
|
48 | 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
|
49 | 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
|
50 | typedef struct _GntTextViewClass GntTextViewClass; |
|
13944
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
51 | |
|
19183
aee7b7ad425e
New flag to show text top-aligned in a textview.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18803
diff
changeset
|
52 | typedef enum |
|
aee7b7ad425e
New flag to show text top-aligned in a textview.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18803
diff
changeset
|
53 | { |
|
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
|
54 | 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
|
55 | 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
|
56 | 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
|
57 | } 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
|
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 _GntTextView |
|
13944
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
60 | { |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
61 | GntWidget parent; |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
62 | |
|
14445
69f18df58bbf
[gaim-migrate @ 17089]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14092
diff
changeset
|
63 | GString *string; |
|
13958
bd1c3bb3f33d
[gaim-migrate @ 16381]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13944
diff
changeset
|
64 | GList *list; /* List of GntTextLine */ |
|
15233
fdd9e78534ad
[gaim-migrate @ 17957]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14939
diff
changeset
|
65 | |
|
fdd9e78534ad
[gaim-migrate @ 17957]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14939
diff
changeset
|
66 | 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
|
67 | GntTextViewFlag flags; |
|
13944
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
68 | }; |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
69 | |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
70 | typedef enum |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
71 | { |
|
14026
ad91ce0effe2
[gaim-migrate @ 16520]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14014
diff
changeset
|
72 | GNT_TEXT_FLAG_NORMAL = 0, |
|
13944
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
73 | GNT_TEXT_FLAG_BOLD = 1 << 0, |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
74 | GNT_TEXT_FLAG_UNDERLINE = 1 << 1, |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
75 | GNT_TEXT_FLAG_BLINK = 1 << 2, |
|
13958
bd1c3bb3f33d
[gaim-migrate @ 16381]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13944
diff
changeset
|
76 | GNT_TEXT_FLAG_DIM = 1 << 3, |
|
bd1c3bb3f33d
[gaim-migrate @ 16381]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13944
diff
changeset
|
77 | GNT_TEXT_FLAG_HIGHLIGHT = 1 << 4, |
|
13993
8c12e7d15b40
[gaim-migrate @ 16458]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13958
diff
changeset
|
78 | } GntTextFormatFlags; |
|
13944
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
79 | |
|
15991
1efb6bd8ba3f
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15886
diff
changeset
|
80 | struct _GntTextViewClass |
|
13944
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 | GntWidgetClass parent; |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
83 | |
|
35447
5a8d59fd6c2e
Add /*< private >*/ for all padding members in libgnt
Ankit Vani <a@nevitus.org>
parents:
35446
diff
changeset
|
84 | /*< private >*/ |
|
13944
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
85 | void (*gnt_reserved1)(void); |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
86 | void (*gnt_reserved2)(void); |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
87 | void (*gnt_reserved3)(void); |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
88 | void (*gnt_reserved4)(void); |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
89 | }; |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
90 | |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
91 | G_BEGIN_DECLS |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
92 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
93 | /** |
|
35477
5036e4cd8a46
Update doc labels for renamed functions
Ankit Vani <a@nevitus.org>
parents:
35475
diff
changeset
|
94 | * gnt_text_view_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
|
95 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
96 | * Returns: GType for GntTextView. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
97 | */ |
|
35379
ea1a0327001e
Rename _get_gtype() functions in libgnt to _get_type()
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
98 | GType gnt_text_view_get_type(void); |
|
13944
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
99 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
100 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
101 | * gnt_text_view_new: |
|
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
102 | * |
|
21243
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
103 | * Create a new textview. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
104 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
105 | * Returns: The newly created textview. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
106 | */ |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
107 | GntWidget * gnt_text_view_new(void); |
|
13944
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 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
110 | * gnt_text_view_scroll: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
111 | * @view: The textview to scroll. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
112 | * @scroll: scroll > 0 means scroll up, < 0 means scroll down, == 0 means scroll to the end. |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
113 | * |
|
21243
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
114 | * Scroll the textview. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
115 | */ |
|
13944
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
116 | void gnt_text_view_scroll(GntTextView *view, int scroll); |
|
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 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
119 | * gnt_text_view_append_text_with_flags: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
120 | * @view: The textview. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
121 | * @text: The text to append to the textview. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
122 | * @flags: The text-flags to apply to the new text. |
|
21243
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
123 | * |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
124 | * Append new text in a textview. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
125 | */ |
|
13993
8c12e7d15b40
[gaim-migrate @ 16458]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13958
diff
changeset
|
126 | 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
|
127 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
128 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
129 | * gnt_text_view_append_text_with_tag: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
130 | * @view: The textview. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
131 | * @text: The text to append. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
132 | * @flags: The text-flags to apply to the new text. |
|
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 | * @tag: The tag for the appended text, so it can be changed later (see gnt_text_view_tag_change()) |
|
21243
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
134 | * |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
135 | * Append text in the textview, with some identifier (tag) for the added text. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
136 | */ |
|
15233
fdd9e78534ad
[gaim-migrate @ 17957]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14939
diff
changeset
|
137 | 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
|
138 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
139 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
140 | * gnt_text_view_next_line: |
|
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
141 | * @view: The textview. |
|
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
142 | * |
|
21243
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
143 | * 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
|
144 | * It first completes the current line with the current text-attributes. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
145 | */ |
|
13944
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
146 | void gnt_text_view_next_line(GntTextView *view); |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
147 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
148 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
149 | * gnt_text_format_flag_to_chtype: |
|
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
150 | * @flags: The GNT text format. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
151 | * |
|
21243
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
152 | * Convert GNT-text formats to ncurses-text attributes. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
153 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
154 | * Returns: Nucrses text attribute. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
155 | */ |
|
14014
223d99ce2f06
[gaim-migrate @ 16500]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13993
diff
changeset
|
156 | chtype gnt_text_format_flag_to_chtype(GntTextFormatFlags flags); |
|
223d99ce2f06
[gaim-migrate @ 16500]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
13993
diff
changeset
|
157 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
158 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
159 | * gnt_text_view_clear: |
|
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
160 | * @view: The textview. |
|
21243
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
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 | * Clear the contents of the textview. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
163 | */ |
|
14033
127990de806d
[gaim-migrate @ 16529]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14026
diff
changeset
|
164 | void gnt_text_view_clear(GntTextView *view); |
|
127990de806d
[gaim-migrate @ 16529]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14026
diff
changeset
|
165 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
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_text_view_get_lines_below: |
|
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
168 | * @view: The textview. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
169 | * |
|
21243
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
170 | * 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
|
171 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
172 | * 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
|
173 | */ |
|
14092
191e12cbe464
[gaim-migrate @ 16632]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14033
diff
changeset
|
174 | int gnt_text_view_get_lines_below(GntTextView *view); |
|
191e12cbe464
[gaim-migrate @ 16632]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14033
diff
changeset
|
175 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
176 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
177 | * gnt_text_view_get_lines_above: |
|
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
178 | * @view: The textview. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
179 | * |
|
21243
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
180 | * The number of lines above the topmost visible line. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
181 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
182 | * Returns: Number of lines above the topmost visible line. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
183 | */ |
|
14092
191e12cbe464
[gaim-migrate @ 16632]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14033
diff
changeset
|
184 | int gnt_text_view_get_lines_above(GntTextView *view); |
|
191e12cbe464
[gaim-migrate @ 16632]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14033
diff
changeset
|
185 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
186 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
187 | * gnt_text_view_tag_change: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
188 | * @view: The textview. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
189 | * @name: The name of the tag. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
190 | * @text: The new text for the text. If 'text' is %NULL, the tag is removed. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
191 | * @all: %TRUE if all of the instancess of the tag should be changed, %FALSE if |
|
21243
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
192 | * only the first instance should be changed. |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
193 | * |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
194 | * Change the text of a tag. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
195 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
196 | * Returns: The number of instances changed. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
197 | */ |
|
15233
fdd9e78534ad
[gaim-migrate @ 17957]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14939
diff
changeset
|
198 | 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
|
199 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
200 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
201 | * gnt_text_view_attach_scroll_widget: |
|
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
202 | * @view: The textview. |
|
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
203 | * @widget: The trigger widget. |
|
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
204 | * |
|
21243
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
205 | * 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
|
206 | * in focus scrolls the textview. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16186
diff
changeset
|
207 | */ |
|
16186
73cb5b43aaf9
Add a utility function to assist scrolling in a textview.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15991
diff
changeset
|
208 | 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
|
209 | |
|
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
|
210 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
211 | * gnt_text_view_attach_pager_widget: |
|
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
212 | * @view: The textview. |
|
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
213 | * @pager: The widget to trigger the PAGER. |
|
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
214 | * |
|
21243
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
215 | * 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
|
216 | * 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
|
217 | * in it. |
|
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 | * 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
|
220 | * 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
|
221 | * |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
222 | * <programlisting> |
|
21243
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
223 | * [pager] |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
224 | * key = a-v |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
225 | * path = /path/to/pager |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
226 | * </programlisting> |
|
18604
2ff126dbae16
Utility function to start the pager with the contents of a textview.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18368
diff
changeset
|
227 | */ |
|
2ff126dbae16
Utility function to start the pager with the contents of a textview.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18368
diff
changeset
|
228 | 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
|
229 | |
|
2ff126dbae16
Utility function to start the pager with the contents of a textview.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18368
diff
changeset
|
230 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
231 | * gnt_text_view_attach_editor_widget: |
|
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
232 | * @view: The textview. |
|
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
233 | * @widget: The widget to trigger the EDITOR. |
|
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
234 | * |
|
21243
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
235 | * Setup appropriate hooks so that pressing some keys when 'widget' |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
236 | * 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
|
237 | * in it. |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
238 | * |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
239 | * 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
|
240 | * 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
|
241 | * |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
242 | * <programlisting> |
|
21243
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
243 | * [editor] |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
244 | * key = a-e |
|
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
245 | * path = /path/to/editor |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
246 | * </programlisting> |
|
18791
12003d1b25bf
Allow changing the content of a textview using $EDITOR.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18604
diff
changeset
|
247 | */ |
|
21243
287bfd29dae6
Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20939
diff
changeset
|
248 | 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
|
249 | |
|
12003d1b25bf
Allow changing the content of a textview using $EDITOR.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18604
diff
changeset
|
250 | /** |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
251 | * gnt_text_view_set_flag: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
252 | * @view: The textview widget |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
21243
diff
changeset
|
253 | * @flag: The flag to set |
|
20939
13dd02add7c1
Add @since doxygen tags for finch/libgnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
19859
diff
changeset
|
254 | * |
|
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
|
255 | * 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
|
256 | * |
|
35409
2c495383415e
Convert docs from doxygen to gtk-doc format for gnt-skel to gntws
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
257 | * 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
|
258 | */ |
|
ffeff952aa09
Add flags to a textview to decide whether to show scrollbars, and whether
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18358
diff
changeset
|
259 | 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
|
260 | |
|
13944
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
261 | G_END_DECLS |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
262 | |
|
2269d17043b1
[gaim-migrate @ 16362]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
263 | #endif /* GNT_TEXT_VIEW_H */ |