Mon, 01 Apr 2019 21:57:01 -0400
Fixup typo in sound theme title.
|
32513
9352b4c92d13
Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32500
diff
changeset
|
1 | /* pidgin |
|
9352b4c92d13
Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32500
diff
changeset
|
2 | * |
|
9352b4c92d13
Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32500
diff
changeset
|
3 | * Pidgin is the legal property of its developers, whose names are too numerous |
|
32441
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
4 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
5 | * source distribution. |
|
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
6 | * |
|
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
7 | * This program is free software; you can redistribute it and/or modify |
|
32513
9352b4c92d13
Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32500
diff
changeset
|
8 | * it under the terms of the GNU General Public License as published by |
|
32441
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
9 | * the Free Software Foundation; either version 2 of the License, or |
|
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
10 | * (at your option) any later version. |
|
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
11 | * |
|
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
12 | * This program is distributed in the hope that it will be useful, |
|
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
15 | * GNU General Public License for more details. |
|
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
16 | * |
|
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
17 | * You should have received a copy of the GNU General Public License |
|
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
18 | * along with this program; if not, write to the Free Software |
|
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
|
32513
9352b4c92d13
Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32500
diff
changeset
|
20 | * |
|
32441
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
21 | */ |
|
35487
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35457
diff
changeset
|
22 | |
|
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35457
diff
changeset
|
23 | #ifndef _PIDGIN_WEBVIEW_H_ |
|
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35457
diff
changeset
|
24 | #define _PIDGIN_WEBVIEW_H_ |
|
35451
206524351826
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35417
diff
changeset
|
25 | /** |
|
206524351826
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35417
diff
changeset
|
26 | * SECTION:gtkwebview |
|
206524351826
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35417
diff
changeset
|
27 | * @section_id: pidgin-gtkwebview |
|
206524351826
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35417
diff
changeset
|
28 | * @short_description: <filename>gtkwebview.h</filename> |
|
206524351826
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35417
diff
changeset
|
29 | * @title: WebKitWebView Wrapper |
|
206524351826
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35417
diff
changeset
|
30 | * |
|
206524351826
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35417
diff
changeset
|
31 | * Wrapper over the Gtk WebKitWebView component. |
|
206524351826
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35417
diff
changeset
|
32 | */ |
|
32441
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
33 | |
|
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
34 | #include <glib.h> |
|
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
35 | #include <gtk/gtk.h> |
|
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
36 | #include <webkit/webkit.h> |
|
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
37 | |
|
35506
4252b2882889
Fix some remaining GTK_* macros as Elliott noticed
Ankit Vani <a@nevitus.org>
parents:
35500
diff
changeset
|
38 | #define PIDGIN_TYPE_WEBVIEW (pidgin_webview_get_type()) |
|
4252b2882889
Fix some remaining GTK_* macros as Elliott noticed
Ankit Vani <a@nevitus.org>
parents:
35500
diff
changeset
|
39 | #define PIDGIN_WEBVIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PIDGIN_TYPE_WEBVIEW, PidginWebView)) |
|
4252b2882889
Fix some remaining GTK_* macros as Elliott noticed
Ankit Vani <a@nevitus.org>
parents:
35500
diff
changeset
|
40 | #define PIDGIN_WEBVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PIDGIN_TYPE_WEBVIEW, PidginWebViewClass)) |
|
4252b2882889
Fix some remaining GTK_* macros as Elliott noticed
Ankit Vani <a@nevitus.org>
parents:
35500
diff
changeset
|
41 | #define PIDGIN_IS_WEBVIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PIDGIN_TYPE_WEBVIEW)) |
|
4252b2882889
Fix some remaining GTK_* macros as Elliott noticed
Ankit Vani <a@nevitus.org>
parents:
35500
diff
changeset
|
42 | #define PIDGIN_IS_WEBVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PIDGIN_TYPE_WEBVIEW)) |
|
4252b2882889
Fix some remaining GTK_* macros as Elliott noticed
Ankit Vani <a@nevitus.org>
parents:
35500
diff
changeset
|
43 | #define PIDGIN_WEBVIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PIDGIN_TYPE_WEBVIEW, PidginWebViewClass)) |
|
32441
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
44 | |
|
37196
7d46a8a4bc58
Set the size of the gtkconv entry
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37146
diff
changeset
|
45 | |
|
7d46a8a4bc58
Set the size of the gtkconv entry
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37146
diff
changeset
|
46 | /*salinasv: this are partially magic numbers, we need to find how to get them from the DOM */ |
|
7d46a8a4bc58
Set the size of the gtkconv entry
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37146
diff
changeset
|
47 | #define WEBVIEW_DOM_FONT_PADDING 3 |
|
7d46a8a4bc58
Set the size of the gtkconv entry
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37146
diff
changeset
|
48 | #define WEBVIEW_DOM_TEXT_PADDING 16 |
|
7d46a8a4bc58
Set the size of the gtkconv entry
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37146
diff
changeset
|
49 | |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
50 | typedef enum { |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
51 | PIDGIN_WEBVIEW_BOLD = 1 << 0, |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
52 | PIDGIN_WEBVIEW_ITALIC = 1 << 1, |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
53 | PIDGIN_WEBVIEW_UNDERLINE = 1 << 2, |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
54 | PIDGIN_WEBVIEW_GROW = 1 << 3, |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
55 | PIDGIN_WEBVIEW_SHRINK = 1 << 4, |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
56 | PIDGIN_WEBVIEW_FACE = 1 << 5, |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
57 | PIDGIN_WEBVIEW_FORECOLOR = 1 << 6, |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
58 | PIDGIN_WEBVIEW_BACKCOLOR = 1 << 7, |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
59 | PIDGIN_WEBVIEW_LINK = 1 << 8, |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
60 | PIDGIN_WEBVIEW_IMAGE = 1 << 9, |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
61 | PIDGIN_WEBVIEW_SMILEY = 1 << 10, |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
62 | PIDGIN_WEBVIEW_LINKDESC = 1 << 11, |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
63 | PIDGIN_WEBVIEW_STRIKE = 1 << 12, |
|
37396
f87252ccd1ff
Fix warnings from ginstrospection
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37196
diff
changeset
|
64 | /* Show custom smileys when appropriate. */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
65 | PIDGIN_WEBVIEW_CUSTOM_SMILEY = 1 << 13, |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
66 | PIDGIN_WEBVIEW_ALL = -1 |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
67 | } PidginWebViewButtons; |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
68 | |
|
33256
2bf06f291ff7
Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33247
diff
changeset
|
69 | typedef enum { |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
70 | PIDGIN_WEBVIEW_ACTION_BOLD, |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
71 | PIDGIN_WEBVIEW_ACTION_ITALIC, |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
72 | PIDGIN_WEBVIEW_ACTION_UNDERLINE, |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
73 | PIDGIN_WEBVIEW_ACTION_STRIKE, |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
74 | PIDGIN_WEBVIEW_ACTION_LARGER, |
|
34274
9169710b5af5
Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33264
diff
changeset
|
75 | #if 0 |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
76 | PIDGIN_WEBVIEW_ACTION_NORMAL, |
|
34274
9169710b5af5
Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33264
diff
changeset
|
77 | #endif |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
78 | PIDGIN_WEBVIEW_ACTION_SMALLER, |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
79 | PIDGIN_WEBVIEW_ACTION_FONTFACE, |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
80 | PIDGIN_WEBVIEW_ACTION_FGCOLOR, |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
81 | PIDGIN_WEBVIEW_ACTION_BGCOLOR, |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
82 | PIDGIN_WEBVIEW_ACTION_CLEAR, |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
83 | PIDGIN_WEBVIEW_ACTION_IMAGE, |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
84 | PIDGIN_WEBVIEW_ACTION_LINK, |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
85 | PIDGIN_WEBVIEW_ACTION_HR, |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
86 | PIDGIN_WEBVIEW_ACTION_SMILEY, |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
87 | PIDGIN_WEBVIEW_ACTION_ATTENTION |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
88 | } PidginWebViewAction; |
|
34274
9169710b5af5
Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33264
diff
changeset
|
89 | |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
90 | typedef struct _PidginWebView PidginWebView; |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
91 | typedef struct _PidginWebViewClass PidginWebViewClass; |
|
32460
5771be5530d8
safely execute JS scripts only after loading is done. Untested code as of now, will test it in next commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
32441
diff
changeset
|
92 | |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
93 | struct _PidginWebView |
|
32441
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
94 | { |
|
32796
34f384b0d75f
Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32790
diff
changeset
|
95 | WebKitWebView parent; |
|
32441
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
96 | }; |
|
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
97 | |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
98 | struct _PidginWebViewClass |
|
32441
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
99 | { |
|
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
100 | WebKitWebViewClass parent; |
|
32811
87c1f3bb5461
Add some formatting signals to webview from imhtml.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32810
diff
changeset
|
101 | |
|
33229
f9503bfa54a4
Add protocol registration on a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33221
diff
changeset
|
102 | GList *protocols; |
|
f9503bfa54a4
Add protocol registration on a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33221
diff
changeset
|
103 | |
|
38744
48a376346964
Lots of updates for Pidgin-3.0.gir
Gary Kramlich <grim@reaperworld.com>
parents:
38743
diff
changeset
|
104 | void (*buttons_update)(PidginWebView *webview, PidginWebViewButtons buttons); |
|
48a376346964
Lots of updates for Pidgin-3.0.gir
Gary Kramlich <grim@reaperworld.com>
parents:
38743
diff
changeset
|
105 | void (*toggle_format)(PidginWebView *webview, PidginWebViewButtons buttons); |
|
48a376346964
Lots of updates for Pidgin-3.0.gir
Gary Kramlich <grim@reaperworld.com>
parents:
38743
diff
changeset
|
106 | void (*clear_format)(PidginWebView *webview); |
|
48a376346964
Lots of updates for Pidgin-3.0.gir
Gary Kramlich <grim@reaperworld.com>
parents:
38743
diff
changeset
|
107 | void (*update_format)(PidginWebView *webview); |
|
48a376346964
Lots of updates for Pidgin-3.0.gir
Gary Kramlich <grim@reaperworld.com>
parents:
38743
diff
changeset
|
108 | void (*changed)(PidginWebView *webview); |
|
48a376346964
Lots of updates for Pidgin-3.0.gir
Gary Kramlich <grim@reaperworld.com>
parents:
38743
diff
changeset
|
109 | void (*html_appended)(PidginWebView *webview, WebKitDOMRange *range); |
|
48a376346964
Lots of updates for Pidgin-3.0.gir
Gary Kramlich <grim@reaperworld.com>
parents:
38743
diff
changeset
|
110 | gboolean (*insert_image)(PidginWebView *webview, PurpleImage *image); |
|
32441
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
111 | }; |
|
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
112 | |
|
32790
b95c7c504118
Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32772
diff
changeset
|
113 | G_BEGIN_DECLS |
|
32441
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
114 | |
|
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
115 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
116 | * pidgin_webview_get_type: |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
117 | * |
|
35671
d1cc97d667a2
Box PidginSmiley and PidginWebViewSmiley
Ankit Vani <a@nevitus.org>
parents:
35506
diff
changeset
|
118 | * Returns: The #GType for #PidginWebView widget |
|
32441
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
119 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
120 | GType pidgin_webview_get_type(void); |
|
32441
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
121 | |
|
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
122 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
123 | * pidgin_webview_new: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
124 | * @editable: Whether this PidginWebView will be user-editable |
|
32441
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
125 | * |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
126 | * Create a new PidginWebView object |
|
34276
2b602f67f875
Make editable-ness a construct-only property of the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
34274
diff
changeset
|
127 | * |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
128 | * Returns: A GtkWidget corresponding to the PidginWebView object |
|
32441
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
129 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
130 | GtkWidget *pidgin_webview_new(gboolean editable); |
|
32441
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
131 | |
|
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
132 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
133 | * pidgin_webview_append_html: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
134 | * @webview: The PidginWebView object |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
135 | * @markup: The html markup to append |
|
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
136 | * |
|
32441
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
137 | * A very basic routine to append html, which can be considered |
|
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
138 | * equivalent to a "document.write" using JavaScript. |
|
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
139 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
140 | void pidgin_webview_append_html(PidginWebView *webview, const char *markup); |
|
32441
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
141 | |
|
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
142 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
143 | * pidgin_webview_load_html_string: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
144 | * @webview: The PidginWebView object |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
145 | * @html: The HTML content to load |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
146 | * |
|
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
147 | * Requests loading of the given content. |
|
32441
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
148 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
149 | void pidgin_webview_load_html_string(PidginWebView *webview, const char *html); |
|
32441
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
150 | |
|
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
151 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
152 | * pidgin_webview_load_html_string_with_selection: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
153 | * @webview: The PidginWebView object |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
154 | * @html: The HTML content to load |
|
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
155 | * |
|
33083
e96acbe0e928
Move caret selection into GtkWebView code.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33054
diff
changeset
|
156 | * Requests loading of the given content and sets the selection. You must |
|
e96acbe0e928
Move caret selection into GtkWebView code.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33054
diff
changeset
|
157 | * include an anchor tag with id='caret' in the HTML string, which will be |
|
e96acbe0e928
Move caret selection into GtkWebView code.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33054
diff
changeset
|
158 | * used to set the selection. This tag is then removed so that querying the |
|
e96acbe0e928
Move caret selection into GtkWebView code.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33054
diff
changeset
|
159 | * WebView's HTML contents will no longer return it. |
|
e96acbe0e928
Move caret selection into GtkWebView code.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33054
diff
changeset
|
160 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
161 | void pidgin_webview_load_html_string_with_selection(PidginWebView *webview, const char *html); |
|
33083
e96acbe0e928
Move caret selection into GtkWebView code.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33054
diff
changeset
|
162 | |
|
e96acbe0e928
Move caret selection into GtkWebView code.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33054
diff
changeset
|
163 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
164 | * pidgin_webview_safe_execute_script: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
165 | * @webview: The PidginWebView object |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
166 | * @script: The script to execute |
|
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
167 | * |
|
32460
5771be5530d8
safely execute JS scripts only after loading is done. Untested code as of now, will test it in next commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
32441
diff
changeset
|
168 | * Execute the JavaScript only after the webkit_webview_load_string |
|
5771be5530d8
safely execute JS scripts only after loading is done. Untested code as of now, will test it in next commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
32441
diff
changeset
|
169 | * loads completely. We also guarantee that the scripts are executed |
|
32513
9352b4c92d13
Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32500
diff
changeset
|
170 | * in the order they are called here. This is useful to avoid race |
|
9352b4c92d13
Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32500
diff
changeset
|
171 | * conditions when calling JS functions immediately after opening the |
|
32460
5771be5530d8
safely execute JS scripts only after loading is done. Untested code as of now, will test it in next commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
32441
diff
changeset
|
172 | * page. |
|
5771be5530d8
safely execute JS scripts only after loading is done. Untested code as of now, will test it in next commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
32441
diff
changeset
|
173 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
174 | void pidgin_webview_safe_execute_script(PidginWebView *webview, const char *script); |
|
32460
5771be5530d8
safely execute JS scripts only after loading is done. Untested code as of now, will test it in next commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
32441
diff
changeset
|
175 | |
|
5771be5530d8
safely execute JS scripts only after loading is done. Untested code as of now, will test it in next commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
32441
diff
changeset
|
176 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
177 | * pidgin_webview_quote_js_string: |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
178 | * @str: The string to escape and quote |
|
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
179 | * |
|
32513
9352b4c92d13
Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32500
diff
changeset
|
180 | * A convenience routine to quote a string for use as a JavaScript |
|
32441
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
181 | * string. For instance, "hello 'world'" becomes "'hello \\'world\\''" |
|
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
182 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
183 | * Returns: The quoted string |
|
32441
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
184 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
185 | char *pidgin_webview_quote_js_string(const char *str); |
|
32441
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
186 | |
|
32500
d8aa742c6288
webkit: Scroll to end when appending html.
Jorge Villaseñor <masca@cpw.pidgin.im>
parents:
32489
diff
changeset
|
187 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
188 | * pidgin_webview_set_vadjustment: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
189 | * @webview: The PidginWebView object |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
190 | * @vadj: The GtkAdjustment that control the webview |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
191 | * |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
192 | * Set the vertical adjustment for the PidginWebView. |
|
32796
34f384b0d75f
Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32790
diff
changeset
|
193 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
194 | void pidgin_webview_set_vadjustment(PidginWebView *webview, GtkAdjustment *vadj); |
|
32796
34f384b0d75f
Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32790
diff
changeset
|
195 | |
|
34f384b0d75f
Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32790
diff
changeset
|
196 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
197 | * pidgin_webview_scroll_to_end: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
198 | * @webview: The PidginWebView object |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
199 | * @smooth: A boolean indicating if smooth scrolling should be used |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
200 | * |
|
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
201 | * Scrolls the Webview to the end of its contents. |
|
32500
d8aa742c6288
webkit: Scroll to end when appending html.
Jorge Villaseñor <masca@cpw.pidgin.im>
parents:
32489
diff
changeset
|
202 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
203 | void pidgin_webview_scroll_to_end(PidginWebView *webview, gboolean smooth); |
|
32500
d8aa742c6288
webkit: Scroll to end when appending html.
Jorge Villaseñor <masca@cpw.pidgin.im>
parents:
32489
diff
changeset
|
204 | |
|
32772
9d79ccaeedfe
Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32657
diff
changeset
|
205 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
206 | * pidgin_webview_set_autoscroll: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
207 | * @webview: The PidginWebView object |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
208 | * @scroll: Whether to automatically scroll |
|
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
209 | * |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
210 | * Set whether the PidginWebView stays at its end when HTML content is appended. If |
|
33247
d8d6e87ce594
Add autoscrolling for the debug window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33241
diff
changeset
|
211 | * not already at the end before appending, then scrolling will not occur. |
|
d8d6e87ce594
Add autoscrolling for the debug window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33241
diff
changeset
|
212 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
213 | void pidgin_webview_set_autoscroll(PidginWebView *webview, gboolean scroll); |
|
33247
d8d6e87ce594
Add autoscrolling for the debug window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33241
diff
changeset
|
214 | |
|
d8d6e87ce594
Add autoscrolling for the debug window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33241
diff
changeset
|
215 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
216 | * pidgin_webview_get_autoscroll: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
217 | * @webview: The PidginWebView object |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
218 | * |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
219 | * Set whether the PidginWebView stays at its end when HTML content is appended. If |
|
33247
d8d6e87ce594
Add autoscrolling for the debug window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33241
diff
changeset
|
220 | * not already at the end before appending, then scrolling will not occur. |
|
d8d6e87ce594
Add autoscrolling for the debug window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33241
diff
changeset
|
221 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
222 | * Returns: Whether to automatically scroll |
|
33247
d8d6e87ce594
Add autoscrolling for the debug window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33241
diff
changeset
|
223 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
224 | gboolean pidgin_webview_get_autoscroll(PidginWebView *webview); |
|
33247
d8d6e87ce594
Add autoscrolling for the debug window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33241
diff
changeset
|
225 | |
|
d8d6e87ce594
Add autoscrolling for the debug window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33241
diff
changeset
|
226 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
227 | * pidgin_webview_page_up: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
228 | * @webview: The PidginWebView. |
|
32772
9d79ccaeedfe
Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32657
diff
changeset
|
229 | * |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
230 | * Scrolls a PidginWebView up by one page. |
|
32772
9d79ccaeedfe
Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32657
diff
changeset
|
231 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
232 | void pidgin_webview_page_up(PidginWebView *webview); |
|
32772
9d79ccaeedfe
Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32657
diff
changeset
|
233 | |
|
9d79ccaeedfe
Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32657
diff
changeset
|
234 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
235 | * pidgin_webview_page_down: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
236 | * @webview: The PidginWebView. |
|
32772
9d79ccaeedfe
Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32657
diff
changeset
|
237 | * |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
238 | * Scrolls a PidginWebView down by one page. |
|
32772
9d79ccaeedfe
Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32657
diff
changeset
|
239 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
240 | void pidgin_webview_page_down(PidginWebView *webview); |
|
32772
9d79ccaeedfe
Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32657
diff
changeset
|
241 | |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
242 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
243 | * pidgin_webview_setup_entry: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
244 | * @webview: The PidginWebView. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
245 | * @flags: The connection flags describing the allowed formatting. |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
246 | * |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
247 | * Setup formatting for a PidginWebView depending on the flags specified. |
|
32810
17dceb2423c2
Add a function for setting a WebView entry based on the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32805
diff
changeset
|
248 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
249 | void pidgin_webview_setup_entry(PidginWebView *webview, PurpleConnectionFlags flags); |
|
32810
17dceb2423c2
Add a function for setting a WebView entry based on the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32805
diff
changeset
|
250 | |
|
17dceb2423c2
Add a function for setting a WebView entry based on the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32805
diff
changeset
|
251 | /** |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
252 | * pidgin_webview_set_spellcheck: |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
253 | * @webview: The PidginWebView. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
254 | * @enable: Whether to enable or disable spell-checking. |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
255 | * |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
256 | * Setup spell-checking on a PidginWebView. |
|
33021
3dc4b2cdba7f
Enable spell checking in an editable webview.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33017
diff
changeset
|
257 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
258 | void pidgin_webview_set_spellcheck(PidginWebView *webview, gboolean enable); |
|
33021
3dc4b2cdba7f
Enable spell checking in an editable webview.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33017
diff
changeset
|
259 | |
|
3dc4b2cdba7f
Enable spell checking in an editable webview.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33017
diff
changeset
|
260 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
261 | * pidgin_webview_set_whole_buffer_formatting_only: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
262 | * @webview: The PidginWebView |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
263 | * @wbfo: %TRUE to enable the mode, or %FALSE otherwise. |
|
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
264 | * |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
265 | * Enables or disables whole buffer formatting only (wbfo) in a PidginWebView. |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
266 | * In this mode formatting options to the buffer take effect for the entire |
|
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
267 | * buffer instead of specific text. |
|
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
268 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
269 | void pidgin_webview_set_whole_buffer_formatting_only(PidginWebView *webview, |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
270 | gboolean wbfo); |
|
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
271 | |
|
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
272 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
273 | * pidgin_webview_set_format_functions: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
274 | * @webview: The PidginWebView |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
275 | * @buttons: A PidginWebViewButtons bitmask indicating which functions to use |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
276 | * |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
277 | * Indicates which formatting functions to enable and disable in a PidginWebView. |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
278 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
279 | void pidgin_webview_set_format_functions(PidginWebView *webview, |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
280 | PidginWebViewButtons buttons); |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
281 | |
|
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
282 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
283 | * pidgin_webview_activate_anchor: |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
284 | * @link: The WebKitDOMHTMLAnchorElement object |
|
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
285 | * |
|
33231
ab65d36fd975
Add a convenience function to activate a WebKit anchor element.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33229
diff
changeset
|
286 | * Activates a WebKitDOMHTMLAnchorElement object. This triggers the navigation |
|
ab65d36fd975
Add a convenience function to activate a WebKit anchor element.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33229
diff
changeset
|
287 | * signals, and marks the link as visited (when possible). |
|
ab65d36fd975
Add a convenience function to activate a WebKit anchor element.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33229
diff
changeset
|
288 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
289 | void pidgin_webview_activate_anchor(WebKitDOMHTMLAnchorElement *link); |
|
33231
ab65d36fd975
Add a convenience function to activate a WebKit anchor element.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33229
diff
changeset
|
290 | |
|
ab65d36fd975
Add a convenience function to activate a WebKit anchor element.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33229
diff
changeset
|
291 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
292 | * pidgin_webview_class_register_protocol: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
293 | * @name: The name of the protocol (e.g. http://) |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
294 | * @activate: The callback to trigger when the protocol text is clicked. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
295 | * Removes any current protocol definition if %NULL. The |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
296 | * callback should return %TRUE if the link was activated |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
297 | * properly, %FALSE otherwise. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
298 | * @context_menu: The callback to trigger when the context menu is popped |
|
33229
f9503bfa54a4
Add protocol registration on a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33221
diff
changeset
|
299 | * up on the protocol text. The callback should return |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
300 | * %TRUE if the request for context menu was processed |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
301 | * successfully, %FALSE otherwise. |
|
33229
f9503bfa54a4
Add protocol registration on a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33221
diff
changeset
|
302 | * |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
303 | * Register a protocol with the PidginWebView widget. Registering a protocol would |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
304 | * allow certain text to be clickable. |
|
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
305 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
306 | * Returns: %TRUE if the protocol was successfully registered |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
307 | * (or unregistered, when \a activate is %NULL) |
|
33229
f9503bfa54a4
Add protocol registration on a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33221
diff
changeset
|
308 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
309 | gboolean pidgin_webview_class_register_protocol(const char *name, |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
310 | gboolean (*activate)(PidginWebView *webview, const char *uri), |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
311 | gboolean (*context_menu)(PidginWebView *webview, WebKitDOMHTMLAnchorElement *link, GtkWidget *menu)); |
|
33229
f9503bfa54a4
Add protocol registration on a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33221
diff
changeset
|
312 | |
|
f9503bfa54a4
Add protocol registration on a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33221
diff
changeset
|
313 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
314 | * pidgin_webview_get_format_functions: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
315 | * @webview: The PidginWebView |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
316 | * |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
317 | * Returns which formatting functions are enabled in a PidginWebView. |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
318 | * |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
319 | * Returns: A PidginWebViewButtons bitmask indicating which functions to are enabled |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
320 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
321 | PidginWebViewButtons pidgin_webview_get_format_functions(PidginWebView *webview); |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
322 | |
|
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
323 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
324 | * pidgin_webview_get_current_format: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
325 | * @webview: The PidginWebView |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
326 | * @bold: The boolean to set for bold or %NULL. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
327 | * @italic: The boolean to set for italic or %NULL. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
328 | * @underline: The boolean to set for underline or %NULL. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
329 | * @strikethrough: The boolean to set for strikethrough or %NULL. |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
330 | * |
|
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
331 | * Sets each boolean to %TRUE or %FALSE to indicate if that formatting |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
332 | * option is enabled at the current position in a PidginWebView. |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
333 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
334 | void pidgin_webview_get_current_format(PidginWebView *webview, gboolean *bold, |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
335 | gboolean *italic, gboolean *underline, |
|
35455
216a37403c5b
Fix a bunch of gtk-doc warnings in pidgin
Ankit Vani <a@nevitus.org>
parents:
35451
diff
changeset
|
336 | gboolean *strikethrough); |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
337 | |
|
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
338 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
339 | * pidgin_webview_get_current_fontface: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
340 | * @webview: The PidginWebView |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
341 | * |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
342 | * Returns a string containing the selected font face at the current position |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
343 | * in a PidginWebView. |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
344 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
345 | * Returns: A string containing the font face or %NULL if none is set. |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
346 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
347 | char *pidgin_webview_get_current_fontface(PidginWebView *webview); |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
348 | |
|
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
349 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
350 | * pidgin_webview_get_current_forecolor: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
351 | * @webview: The PidginWebView |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
352 | * |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
353 | * Returns a string containing the selected foreground color at the current |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
354 | * position in a PidginWebView. |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
355 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
356 | * Returns: A string containing the foreground color or %NULL if none is set. |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
357 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
358 | char *pidgin_webview_get_current_forecolor(PidginWebView *webview); |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
359 | |
|
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
360 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
361 | * pidgin_webview_get_current_backcolor: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
362 | * @webview: The PidginWebView |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
363 | * |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
364 | * Returns a string containing the selected font background color at the current |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
365 | * position in a PidginWebView. |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
366 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
367 | * Returns: A string containing the background color or %NULL if none is set. |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
368 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
369 | char *pidgin_webview_get_current_backcolor(PidginWebView *webview); |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
370 | |
|
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
371 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
372 | * pidgin_webview_get_current_fontsize: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
373 | * @webview: The PidginWebView |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
374 | * |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
375 | * Returns a integer containing the selected HTML font size at the current |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
376 | * position in a PidginWebView. |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
377 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
378 | * Returns: The HTML font size. |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
379 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
380 | gint pidgin_webview_get_current_fontsize(PidginWebView *webview); |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
381 | |
|
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
382 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
383 | * pidgin_webview_get_head_html: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
384 | * @webview: The PidginWebView |
|
33004
2a86ad923464
Add some convenience functions to get the contents of a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32993
diff
changeset
|
385 | * |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
386 | * Gets the content of the head element of a PidginWebView as HTML. |
|
33004
2a86ad923464
Add some convenience functions to get the contents of a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32993
diff
changeset
|
387 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
388 | * Returns: The HTML from the head element. |
|
33004
2a86ad923464
Add some convenience functions to get the contents of a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32993
diff
changeset
|
389 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
390 | gchar *pidgin_webview_get_head_html(PidginWebView *webview); |
|
33004
2a86ad923464
Add some convenience functions to get the contents of a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32993
diff
changeset
|
391 | |
|
2a86ad923464
Add some convenience functions to get the contents of a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32993
diff
changeset
|
392 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
393 | * pidgin_webview_get_body_html: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
394 | * @webview: The PidginWebView |
|
33004
2a86ad923464
Add some convenience functions to get the contents of a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32993
diff
changeset
|
395 | * |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
396 | * Gets the HTML content of a PidginWebView. |
|
33004
2a86ad923464
Add some convenience functions to get the contents of a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32993
diff
changeset
|
397 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
398 | * Returns: The HTML that is currently displayed. |
|
33004
2a86ad923464
Add some convenience functions to get the contents of a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32993
diff
changeset
|
399 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
400 | gchar *pidgin_webview_get_body_html(PidginWebView *webview); |
|
33004
2a86ad923464
Add some convenience functions to get the contents of a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32993
diff
changeset
|
401 | |
|
2a86ad923464
Add some convenience functions to get the contents of a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32993
diff
changeset
|
402 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
403 | * pidgin_webview_get_body_text: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
404 | * @webview: The PidginWebView |
|
33004
2a86ad923464
Add some convenience functions to get the contents of a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32993
diff
changeset
|
405 | * |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
406 | * Gets the text content of a PidginWebView. |
|
33004
2a86ad923464
Add some convenience functions to get the contents of a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32993
diff
changeset
|
407 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
408 | * Returns: The HTML-free text that is currently displayed. |
|
33004
2a86ad923464
Add some convenience functions to get the contents of a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32993
diff
changeset
|
409 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
410 | gchar *pidgin_webview_get_body_text(PidginWebView *webview); |
|
33014
2f8a83007ab9
Set up the link description from the already selected text.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33013
diff
changeset
|
411 | |
|
2f8a83007ab9
Set up the link description from the already selected text.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33013
diff
changeset
|
412 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
413 | * pidgin_webview_get_selected_text: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
414 | * @webview: The PidginWebView |
|
33014
2f8a83007ab9
Set up the link description from the already selected text.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33013
diff
changeset
|
415 | * |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
416 | * Gets the selected text of a PidginWebView. |
|
33014
2f8a83007ab9
Set up the link description from the already selected text.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33013
diff
changeset
|
417 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
418 | * Returns: The HTML-free text that is currently selected, or NULL if nothing is |
|
33014
2f8a83007ab9
Set up the link description from the already selected text.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33013
diff
changeset
|
419 | * currently selected. |
|
2f8a83007ab9
Set up the link description from the already selected text.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33013
diff
changeset
|
420 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
421 | gchar *pidgin_webview_get_selected_text(PidginWebView *webview); |
|
33004
2a86ad923464
Add some convenience functions to get the contents of a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32993
diff
changeset
|
422 | |
|
2a86ad923464
Add some convenience functions to get the contents of a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32993
diff
changeset
|
423 | /** |
|
35796
bc5253318167
Show smiley images in the input entry and fix some smiley and inline image issues
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35771
diff
changeset
|
424 | * pidgin_webview_is_empty: |
|
bc5253318167
Show smiley images in the input entry and fix some smiley and inline image issues
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35771
diff
changeset
|
425 | * @webview: the PidginWebView. |
|
bc5253318167
Show smiley images in the input entry and fix some smiley and inline image issues
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35771
diff
changeset
|
426 | * |
|
bc5253318167
Show smiley images in the input entry and fix some smiley and inline image issues
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35771
diff
changeset
|
427 | * Checks, if the @webview is empty. |
|
bc5253318167
Show smiley images in the input entry and fix some smiley and inline image issues
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35771
diff
changeset
|
428 | * |
|
38562
f0bba5d864f2
gtkwebview: Fix typo in docstring referencing %TRUES
Mike Ruprecht <cmaiku@gmail.com>
parents:
37396
diff
changeset
|
429 | * Returns %TRUE, if the @webview is empty, %FALSE otherwise. |
|
35796
bc5253318167
Show smiley images in the input entry and fix some smiley and inline image issues
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35771
diff
changeset
|
430 | */ |
|
bc5253318167
Show smiley images in the input entry and fix some smiley and inline image issues
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35771
diff
changeset
|
431 | gboolean |
|
bc5253318167
Show smiley images in the input entry and fix some smiley and inline image issues
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35771
diff
changeset
|
432 | pidgin_webview_is_empty(PidginWebView *webview); |
|
bc5253318167
Show smiley images in the input entry and fix some smiley and inline image issues
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35771
diff
changeset
|
433 | |
|
bc5253318167
Show smiley images in the input entry and fix some smiley and inline image issues
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35771
diff
changeset
|
434 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
435 | * pidgin_webview_get_caret: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
436 | * @webview: The PidginWebView |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
437 | * @container_ret: A pointer to a pointer to a WebKitDOMNode. This pointer |
| 35129 | 438 | * will be set to the container the caret is in. Set to |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
439 | * %NULL if a range is selected. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
440 | * @pos_ret: A pointer to a glong. This value will be set to the |
| 35129 | 441 | * position of the caret in the container. Set to -1 if a |
| 442 | * range is selected. | |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
443 | * |
|
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
444 | * Gets the container of the caret, along with its position in the container |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
445 | * from a PidginWebView. |
| 35129 | 446 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
447 | void pidgin_webview_get_caret(PidginWebView *webview, WebKitDOMNode **container_ret, |
| 35129 | 448 | glong *pos_ret); |
| 449 | ||
| 450 | /** | |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
451 | * pidgin_webview_set_caret: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
452 | * @webview: The PidginWebView |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
453 | * @container: The WebKitDOMNode to set the caret in |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
454 | * @pos: The position of the caret in the container |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
455 | * |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
456 | * Sets the caret position in container, in a PidginWebView. |
| 35129 | 457 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
458 | void pidgin_webview_set_caret(PidginWebView *webview, WebKitDOMNode *container, |
| 35129 | 459 | glong pos); |
| 460 | ||
| 461 | /** | |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
462 | * pidgin_webview_clear_formatting: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
463 | * @webview: The PidginWebView |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
464 | * |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
465 | * Clear all the formatting on a PidginWebView. |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
466 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
467 | void pidgin_webview_clear_formatting(PidginWebView *webview); |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
468 | |
|
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
469 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
470 | * pidgin_webview_toggle_bold: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
471 | * @webview: The PidginWebView |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
472 | * |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
473 | * Toggles bold at the cursor location or selection in a PidginWebView. |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
474 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
475 | void pidgin_webview_toggle_bold(PidginWebView *webview); |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
476 | |
|
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
477 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
478 | * pidgin_webview_toggle_italic: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
479 | * @webview: The PidginWebView |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
480 | * |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
481 | * Toggles italic at the cursor location or selection in a PidginWebView. |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
482 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
483 | void pidgin_webview_toggle_italic(PidginWebView *webview); |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
484 | |
|
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
485 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
486 | * pidgin_webview_toggle_underline: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
487 | * @webview: The PidginWebView |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
488 | * |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
489 | * Toggles underline at the cursor location or selection in a PidginWebView. |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
490 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
491 | void pidgin_webview_toggle_underline(PidginWebView *webview); |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
492 | |
|
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
493 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
494 | * pidgin_webview_toggle_strike: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
495 | * @webview: The PidginWebView |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
496 | * |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
497 | * Toggles strikethrough at the cursor location or selection in a PidginWebView. |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
498 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
499 | void pidgin_webview_toggle_strike(PidginWebView *webview); |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
500 | |
|
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
501 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
502 | * pidgin_webview_toggle_forecolor: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
503 | * @webview: The PidginWebView |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
504 | * @color: The HTML-style color, or %NULL or "" to clear the color. |
|
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
505 | * |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
506 | * Toggles a foreground color at the current location or selection in a |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
507 | * PidginWebView. |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
508 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
509 | * Returns: %TRUE if a color was set, or %FALSE if it was cleared. |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
510 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
511 | gboolean pidgin_webview_toggle_forecolor(PidginWebView *webview, const char *color); |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
512 | |
|
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
513 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
514 | * pidgin_webview_toggle_backcolor: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
515 | * @webview: The PidginWebView |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
516 | * @color: The HTML-style color, or %NULL or "" to clear the color. |
|
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
517 | * |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
518 | * Toggles a background color at the current location or selection in a |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
519 | * PidginWebView. |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
520 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
521 | * Returns: %TRUE if a color was set, or %FALSE if it was cleared. |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
522 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
523 | gboolean pidgin_webview_toggle_backcolor(PidginWebView *webview, const char *color); |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
524 | |
|
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
525 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
526 | * pidgin_webview_toggle_fontface: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
527 | * @webview: The PidginWebView |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
528 | * @face: The font face name, or %NULL or "" to clear the font. |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
529 | * |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
530 | * Toggles a font face at the current location or selection in a PidginWebView. |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
531 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
532 | * Returns: %TRUE if a font name was set, or %FALSE if it was cleared. |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
533 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
534 | gboolean pidgin_webview_toggle_fontface(PidginWebView *webview, const char *face); |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
535 | |
|
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
536 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
537 | * pidgin_webview_font_set_size: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
538 | * @webview: The PidginWebView |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
539 | * @size: The HTML font size to use. |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
540 | * |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
541 | * Sets the font size at the current location or selection in a PidginWebView. |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
542 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
543 | void pidgin_webview_font_set_size(PidginWebView *webview, gint size); |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
544 | |
|
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
545 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
546 | * pidgin_webview_font_shrink: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
547 | * @webview: The PidginWebView |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
548 | * |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
549 | * Decreases the font size by 1 at the current location or selection in a |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
550 | * PidginWebView. |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
551 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
552 | void pidgin_webview_font_shrink(PidginWebView *webview); |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
553 | |
|
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
554 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
555 | * pidgin_webview_font_grow: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
556 | * @webview: The PidginWebView |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
557 | * |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
558 | * Increases the font size by 1 at the current location or selection in a |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
559 | * PidginWebView. |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
560 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
561 | void pidgin_webview_font_grow(PidginWebView *webview); |
|
32805
57f914c32dc4
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32798
diff
changeset
|
562 | |
|
33012
3a742f00a0f4
Restore Insert Horizontal Rule functionality.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33007
diff
changeset
|
563 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
564 | * pidgin_webview_insert_hr: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
565 | * @webview: The PidginWebView |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
566 | * |
|
33012
3a742f00a0f4
Restore Insert Horizontal Rule functionality.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33007
diff
changeset
|
567 | * Inserts a horizontal rule at the current location or selection in a |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
568 | * PidginWebView. |
|
33012
3a742f00a0f4
Restore Insert Horizontal Rule functionality.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33007
diff
changeset
|
569 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
570 | void pidgin_webview_insert_hr(PidginWebView *webview); |
|
33012
3a742f00a0f4
Restore Insert Horizontal Rule functionality.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33007
diff
changeset
|
571 | |
|
33013
f62232fb738a
Restore "Insert Link" functionality.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33012
diff
changeset
|
572 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
573 | * pidgin_webview_insert_link: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
574 | * @webview: The PidginWebView |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
575 | * @url: The URL of the link |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35129
diff
changeset
|
576 | * @desc: The text description of the link. If not supplied, the URL is |
|
33013
f62232fb738a
Restore "Insert Link" functionality.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33012
diff
changeset
|
577 | * used instead. |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
578 | * |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
579 | * Inserts a link at the current location or selection in a PidginWebView. |
|
33013
f62232fb738a
Restore "Insert Link" functionality.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33012
diff
changeset
|
580 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
581 | void pidgin_webview_insert_link(PidginWebView *webview, const char *url, const char *desc); |
|
33013
f62232fb738a
Restore "Insert Link" functionality.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33012
diff
changeset
|
582 | |
|
33017
d21ab88ad911
Fixup Insert Image functionality.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33014
diff
changeset
|
583 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
584 | * pidgin_webview_insert_image: |
|
35812
48c6ee645ca1
Imgstore vs PurpleImage: rip and fix
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35796
diff
changeset
|
585 | * @webview: the PidginWebView. |
|
48c6ee645ca1
Imgstore vs PurpleImage: rip and fix
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35796
diff
changeset
|
586 | * @image: the PurpleImage. |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
587 | * |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
588 | * Inserts an image at the current location or selection in a PidginWebView. |
|
33017
d21ab88ad911
Fixup Insert Image functionality.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33014
diff
changeset
|
589 | */ |
|
35812
48c6ee645ca1
Imgstore vs PurpleImage: rip and fix
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35796
diff
changeset
|
590 | void |
|
48c6ee645ca1
Imgstore vs PurpleImage: rip and fix
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35796
diff
changeset
|
591 | pidgin_webview_insert_image(PidginWebView *webview, PurpleImage *image); |
|
33017
d21ab88ad911
Fixup Insert Image functionality.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33014
diff
changeset
|
592 | |
|
33256
2bf06f291ff7
Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33247
diff
changeset
|
593 | /** |
|
37196
7d46a8a4bc58
Set the size of the gtkconv entry
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37146
diff
changeset
|
594 | * pidgin_webview_get_DOM_height: |
|
7d46a8a4bc58
Set the size of the gtkconv entry
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37146
diff
changeset
|
595 | * @webview: the PidginWebView. |
|
7d46a8a4bc58
Set the size of the gtkconv entry
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37146
diff
changeset
|
596 | * |
|
7d46a8a4bc58
Set the size of the gtkconv entry
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37146
diff
changeset
|
597 | * Look for the calculated height for the DOM on the webview. |
|
7d46a8a4bc58
Set the size of the gtkconv entry
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37146
diff
changeset
|
598 | * |
|
7d46a8a4bc58
Set the size of the gtkconv entry
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37146
diff
changeset
|
599 | * Returns the total height of the DOM in the webview. |
|
7d46a8a4bc58
Set the size of the gtkconv entry
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37146
diff
changeset
|
600 | */ |
|
7d46a8a4bc58
Set the size of the gtkconv entry
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37146
diff
changeset
|
601 | gint |
|
7d46a8a4bc58
Set the size of the gtkconv entry
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37146
diff
changeset
|
602 | pidgin_webview_get_DOM_height(PidginWebView *webview); |
|
7d46a8a4bc58
Set the size of the gtkconv entry
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37146
diff
changeset
|
603 | |
|
7d46a8a4bc58
Set the size of the gtkconv entry
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37146
diff
changeset
|
604 | /** |
|
38744
48a376346964
Lots of updates for Pidgin-3.0.gir
Gary Kramlich <grim@reaperworld.com>
parents:
38743
diff
changeset
|
605 | * pidgin_webview_get_font_size: |
|
37196
7d46a8a4bc58
Set the size of the gtkconv entry
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37146
diff
changeset
|
606 | * @webview: the PidginWebView. |
|
7d46a8a4bc58
Set the size of the gtkconv entry
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37146
diff
changeset
|
607 | * |
|
7d46a8a4bc58
Set the size of the gtkconv entry
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37146
diff
changeset
|
608 | * Look for the font size used on the current webview |
|
7d46a8a4bc58
Set the size of the gtkconv entry
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37146
diff
changeset
|
609 | * |
|
7d46a8a4bc58
Set the size of the gtkconv entry
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37146
diff
changeset
|
610 | * Returns the font size for the webview. |
|
7d46a8a4bc58
Set the size of the gtkconv entry
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37146
diff
changeset
|
611 | */ |
|
7d46a8a4bc58
Set the size of the gtkconv entry
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37146
diff
changeset
|
612 | gint |
|
7d46a8a4bc58
Set the size of the gtkconv entry
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37146
diff
changeset
|
613 | pidgin_webview_get_font_size(PidginWebView *webview); |
|
7d46a8a4bc58
Set the size of the gtkconv entry
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37146
diff
changeset
|
614 | |
|
7d46a8a4bc58
Set the size of the gtkconv entry
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37146
diff
changeset
|
615 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
616 | * pidgin_webview_get_protocol_name: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
617 | * @webview: The PidginWebView |
|
33256
2bf06f291ff7
Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33247
diff
changeset
|
618 | * |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
619 | * Gets the protocol name associated with this PidginWebView. |
|
33256
2bf06f291ff7
Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33247
diff
changeset
|
620 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
621 | const char *pidgin_webview_get_protocol_name(PidginWebView *webview); |
|
33256
2bf06f291ff7
Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33247
diff
changeset
|
622 | |
|
2bf06f291ff7
Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33247
diff
changeset
|
623 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
624 | * pidgin_webview_show_toolbar: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
625 | * @webview: The PidginWebView. |
|
34274
9169710b5af5
Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33264
diff
changeset
|
626 | * |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
627 | * Makes the toolbar associated with a PidginWebView visible. |
|
34274
9169710b5af5
Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33264
diff
changeset
|
628 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
629 | void pidgin_webview_show_toolbar(PidginWebView *webview); |
|
34274
9169710b5af5
Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33264
diff
changeset
|
630 | |
|
9169710b5af5
Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33264
diff
changeset
|
631 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
632 | * pidgin_webview_hide_toolbar: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
633 | * @webview: The PidginWebView. |
|
34274
9169710b5af5
Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33264
diff
changeset
|
634 | * |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
635 | * Makes the toolbar associated with a PidginWebView invisible. |
|
34274
9169710b5af5
Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33264
diff
changeset
|
636 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
637 | void pidgin_webview_hide_toolbar(PidginWebView *webview); |
|
34274
9169710b5af5
Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33264
diff
changeset
|
638 | |
|
9169710b5af5
Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33264
diff
changeset
|
639 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
640 | * pidgin_webview_activate_toolbar: |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
641 | * @webview: The PidginWebView |
|
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
642 | * @action: The PidginWebViewAction |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
643 | * |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
644 | * Activate an action on the toolbar associated with a PidginWebView. |
|
34274
9169710b5af5
Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33264
diff
changeset
|
645 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
646 | void pidgin_webview_activate_toolbar(PidginWebView *webview, PidginWebViewAction action); |
|
34274
9169710b5af5
Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33264
diff
changeset
|
647 | |
|
35766
f29bb25cfbd8
Smileys: fill comments for old files
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35748
diff
changeset
|
648 | /** |
|
f29bb25cfbd8
Smileys: fill comments for old files
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35748
diff
changeset
|
649 | * pidgin_webview_switch_active_conversation: |
|
f29bb25cfbd8
Smileys: fill comments for old files
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35748
diff
changeset
|
650 | * @webview: The PidginWebView |
|
f29bb25cfbd8
Smileys: fill comments for old files
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35748
diff
changeset
|
651 | * @conv: The conversation. |
|
f29bb25cfbd8
Smileys: fill comments for old files
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35748
diff
changeset
|
652 | * |
|
f29bb25cfbd8
Smileys: fill comments for old files
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35748
diff
changeset
|
653 | * Updates the webview for a new active #PurpleConversation. |
|
f29bb25cfbd8
Smileys: fill comments for old files
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35748
diff
changeset
|
654 | */ |
|
35713
4423f463a782
Smileys in PidginWebviewToolbar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35506
diff
changeset
|
655 | void |
|
4423f463a782
Smileys in PidginWebviewToolbar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35506
diff
changeset
|
656 | pidgin_webview_switch_active_conversation(PidginWebView *webview, |
|
4423f463a782
Smileys in PidginWebviewToolbar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35506
diff
changeset
|
657 | PurpleConversation *conv); |
|
4423f463a782
Smileys in PidginWebviewToolbar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35506
diff
changeset
|
658 | |
|
35935
98e92d543d73
Initial implementation fot the screencap plugin
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35812
diff
changeset
|
659 | /* Do not use. TODO: rename to _pidgin and move to gtkinternal.h */ |
|
34274
9169710b5af5
Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33264
diff
changeset
|
660 | void |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
661 | pidgin_webview_set_toolbar(PidginWebView *webview, GtkWidget *toolbar); |
|
34274
9169710b5af5
Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33264
diff
changeset
|
662 | |
|
35935
98e92d543d73
Initial implementation fot the screencap plugin
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35812
diff
changeset
|
663 | /** |
|
98e92d543d73
Initial implementation fot the screencap plugin
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35812
diff
changeset
|
664 | * pidgin_webview_get_toolbar: |
|
98e92d543d73
Initial implementation fot the screencap plugin
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35812
diff
changeset
|
665 | * @webview: The PidginWebView |
|
98e92d543d73
Initial implementation fot the screencap plugin
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35812
diff
changeset
|
666 | * |
|
98e92d543d73
Initial implementation fot the screencap plugin
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35812
diff
changeset
|
667 | * Returns the toolbar associated with the webview. |
|
98e92d543d73
Initial implementation fot the screencap plugin
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35812
diff
changeset
|
668 | * |
|
38743
61e429efe744
A lot of annotation cleanups!
Gary Kramlich <grim@reaperworld.com>
parents:
38562
diff
changeset
|
669 | * Returns: (transfer none): the toolbar. |
|
35935
98e92d543d73
Initial implementation fot the screencap plugin
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35812
diff
changeset
|
670 | */ |
|
98e92d543d73
Initial implementation fot the screencap plugin
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35812
diff
changeset
|
671 | GtkWidget * |
|
98e92d543d73
Initial implementation fot the screencap plugin
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35812
diff
changeset
|
672 | pidgin_webview_get_toolbar(PidginWebView *webview); |
|
98e92d543d73
Initial implementation fot the screencap plugin
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35812
diff
changeset
|
673 | |
|
32790
b95c7c504118
Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32772
diff
changeset
|
674 | G_END_DECLS |
|
b95c7c504118
Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32772
diff
changeset
|
675 | |
|
32441
8a015ca299f9
Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff
changeset
|
676 | #endif /* _PIDGIN_WEBVIEW_H_ */ |