annotate pidgin/gtkwebview.h @ 32455:c5e5938bb89a

Add a function for setting a WebView entry based on the connection flags.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Thu, 05 Jan 2012 01:10:12 +0000
parents 0d50155445fd
children 0250c8b3e159
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
32061
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
1 /**
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
2 * @file gtkwebview.h Wrapper over the Gtk WebKitWebView component
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
3 * @ingroup pidgin
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
4 */
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
5
32133
8e1ec44ede75 Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32120
diff changeset
6 /* pidgin
8e1ec44ede75 Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32120
diff changeset
7 *
8e1ec44ede75 Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32120
diff changeset
8 * Pidgin is the legal property of its developers, whose names are too numerous
32061
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
9 * to list here. Please refer to the COPYRIGHT file distributed with this
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
10 * source distribution.
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
11 *
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
12 * This program is free software; you can redistribute it and/or modify
32133
8e1ec44ede75 Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32120
diff changeset
13 * it under the terms of the GNU General Public License as published by
32061
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
14 * the Free Software Foundation; either version 2 of the License, or
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
15 * (at your option) any later version.
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
16 *
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
17 * This program is distributed in the hope that it will be useful,
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
20 * GNU General Public License for more details.
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
21 *
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
22 * You should have received a copy of the GNU General Public License
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
23 * along with this program; if not, write to the Free Software
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
32133
8e1ec44ede75 Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32120
diff changeset
25 *
32061
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
26 */
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
27
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
28 #ifndef _PIDGIN_WEBVIEW_H_
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
29 #define _PIDGIN_WEBVIEW_H_
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
30
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
31 #include <glib.h>
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
32 #include <gtk/gtk.h>
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
33 #include <webkit/webkit.h>
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
34
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
35 #define GTK_TYPE_WEBVIEW (gtk_webview_get_type())
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
36 #define GTK_WEBVIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_WEBVIEW, GtkWebView))
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
37 #define GTK_WEBVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GTK_TYPE_WEBVIEW, GtkWebViewClass))
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
38 #define GTK_IS_WEBVIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GTK_TYPE_WEBVIEW))
32442
fb8447f6649c Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32436
diff changeset
39 #define GTK_IS_WEBVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GTK_TYPE_WEBVIEW))
fb8447f6649c Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32436
diff changeset
40 #define GTK_WEBVIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_WEBVIEW, GtkWebViewClass))
32061
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
41
32450
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
42 typedef enum {
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
43 GTK_WEBVIEW_BOLD = 1 << 0,
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
44 GTK_WEBVIEW_ITALIC = 1 << 1,
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
45 GTK_WEBVIEW_UNDERLINE = 1 << 2,
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
46 GTK_WEBVIEW_GROW = 1 << 3,
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
47 GTK_WEBVIEW_SHRINK = 1 << 4,
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
48 GTK_WEBVIEW_FACE = 1 << 5,
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
49 GTK_WEBVIEW_FORECOLOR = 1 << 6,
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
50 GTK_WEBVIEW_BACKCOLOR = 1 << 7,
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
51 GTK_WEBVIEW_BACKGROUND = 1 << 8,
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
52 GTK_WEBVIEW_LINK = 1 << 9,
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
53 GTK_WEBVIEW_IMAGE = 1 << 10,
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
54 GTK_WEBVIEW_SMILEY = 1 << 11,
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
55 GTK_WEBVIEW_LINKDESC = 1 << 12,
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
56 GTK_WEBVIEW_STRIKE = 1 << 13,
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
57 /** Show custom smileys when appropriate. */
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
58 GTK_WEBVIEW_CUSTOM_SMILEY = 1 << 14,
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
59 GTK_WEBVIEW_ALL = -1
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
60 } GtkWebViewButtons;
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
61
32442
fb8447f6649c Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32436
diff changeset
62 typedef struct _GtkWebView GtkWebView;
fb8447f6649c Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32436
diff changeset
63 typedef struct _GtkWebViewClass GtkWebViewClass;
32080
b89351c7580b safely execute JS scripts only after loading is done. Untested code as of now, will test it in next commit.
tdrhq@soc.pidgin.im
parents: 32061
diff changeset
64
32061
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
65 struct _GtkWebView
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
66 {
32442
fb8447f6649c Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32436
diff changeset
67 WebKitWebView parent;
32061
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
68 };
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
69
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
70 struct _GtkWebViewClass
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
71 {
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
72 WebKitWebViewClass parent;
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
73 };
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
74
32436
34f778db624f Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32419
diff changeset
75 G_BEGIN_DECLS
32061
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
76
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
77 /**
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
78 * Returns the GType for a GtkWebView widget
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
79 *
32284
6fb2b4b44934 Clean up documentation.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32199
diff changeset
80 * @return The GType for GtkWebView widget
32061
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
81 */
32133
8e1ec44ede75 Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32120
diff changeset
82 GType gtk_webview_get_type(void);
32061
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
83
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
84 /**
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
85 * Create a new GtkWebView object
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
86 *
32284
6fb2b4b44934 Clean up documentation.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32199
diff changeset
87 * @return A GtkWidget corresponding to the GtkWebView object
32061
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
88 */
32133
8e1ec44ede75 Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32120
diff changeset
89 GtkWidget *gtk_webview_new(void);
32061
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
90
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
91 /**
32442
fb8447f6649c Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32436
diff changeset
92 * TODO WEBKIT: Right now this just tests whether an append has been called
fb8447f6649c Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32436
diff changeset
93 * since the last clear or since the Widget was created. So it does not
fb8447f6649c Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32436
diff changeset
94 * test for load_string's called in between.
32120
24c8a98a6acc webkit: Scroll to end when appending html.
masca@cpw.pidgin.im
parents: 32109
diff changeset
95 *
32442
fb8447f6649c Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32436
diff changeset
96 * @param webview The GtkWebView object
fb8447f6649c Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32436
diff changeset
97 *
fb8447f6649c Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32436
diff changeset
98 * @return gboolean indicating whether the webview is empty
32120
24c8a98a6acc webkit: Scroll to end when appending html.
masca@cpw.pidgin.im
parents: 32109
diff changeset
99 */
32442
fb8447f6649c Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32436
diff changeset
100 gboolean gtk_webview_is_empty(GtkWebView *webview);
32120
24c8a98a6acc webkit: Scroll to end when appending html.
masca@cpw.pidgin.im
parents: 32109
diff changeset
101
24c8a98a6acc webkit: Scroll to end when appending html.
masca@cpw.pidgin.im
parents: 32109
diff changeset
102 /**
32061
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
103 * A very basic routine to append html, which can be considered
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
104 * equivalent to a "document.write" using JavaScript.
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
105 *
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
106 * @param webview The GtkWebView object
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
107 * @param markup The html markup to append
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
108 */
32133
8e1ec44ede75 Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32120
diff changeset
109 void gtk_webview_append_html(GtkWebView *webview, const char *markup);
32061
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
110
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
111 /**
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
112 * Rather than use webkit_webview_load_string, this routine
32176
5aa171c8776b Fix a bunch of tiny problems generating our doxygen documentation
Mark Doliner <mark@kingant.net>
parents: 32133
diff changeset
113 * parses and displays the \<img id=?\> tags that make use of the
32061
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
114 * Pidgin imgstore.
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
115 *
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
116 * @param webview The GtkWebView object
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
117 * @param html The HTML content to load
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
118 */
32133
8e1ec44ede75 Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32120
diff changeset
119 void gtk_webview_load_html_string_with_imgstore(GtkWebView *webview, const char *html);
32061
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
120
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
121 /**
32080
b89351c7580b safely execute JS scripts only after loading is done. Untested code as of now, will test it in next commit.
tdrhq@soc.pidgin.im
parents: 32061
diff changeset
122 * Execute the JavaScript only after the webkit_webview_load_string
b89351c7580b safely execute JS scripts only after loading is done. Untested code as of now, will test it in next commit.
tdrhq@soc.pidgin.im
parents: 32061
diff changeset
123 * loads completely. We also guarantee that the scripts are executed
32133
8e1ec44ede75 Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32120
diff changeset
124 * in the order they are called here. This is useful to avoid race
8e1ec44ede75 Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32120
diff changeset
125 * conditions when calling JS functions immediately after opening the
32080
b89351c7580b safely execute JS scripts only after loading is done. Untested code as of now, will test it in next commit.
tdrhq@soc.pidgin.im
parents: 32061
diff changeset
126 * page.
b89351c7580b safely execute JS scripts only after loading is done. Untested code as of now, will test it in next commit.
tdrhq@soc.pidgin.im
parents: 32061
diff changeset
127 *
32284
6fb2b4b44934 Clean up documentation.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32199
diff changeset
128 * @param webview The GtkWebView object
6fb2b4b44934 Clean up documentation.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32199
diff changeset
129 * @param script The script to execute
32080
b89351c7580b safely execute JS scripts only after loading is done. Untested code as of now, will test it in next commit.
tdrhq@soc.pidgin.im
parents: 32061
diff changeset
130 */
32133
8e1ec44ede75 Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32120
diff changeset
131 void gtk_webview_safe_execute_script(GtkWebView *webview, const char *script);
32080
b89351c7580b safely execute JS scripts only after loading is done. Untested code as of now, will test it in next commit.
tdrhq@soc.pidgin.im
parents: 32061
diff changeset
132
b89351c7580b safely execute JS scripts only after loading is done. Untested code as of now, will test it in next commit.
tdrhq@soc.pidgin.im
parents: 32061
diff changeset
133 /**
32133
8e1ec44ede75 Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32120
diff changeset
134 * A convenience routine to quote a string for use as a JavaScript
32061
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
135 * string. For instance, "hello 'world'" becomes "'hello \\'world\\''"
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
136 *
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
137 * @param str The string to escape and quote
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
138 *
32284
6fb2b4b44934 Clean up documentation.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32199
diff changeset
139 * @return The quoted string
32061
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
140 */
32133
8e1ec44ede75 Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32120
diff changeset
141 char *gtk_webview_quote_js_string(const char *str);
32061
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
142
32120
24c8a98a6acc webkit: Scroll to end when appending html.
masca@cpw.pidgin.im
parents: 32109
diff changeset
143 /**
32442
fb8447f6649c Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32436
diff changeset
144 * Set the vertical adjustment for the GtkWebView.
fb8447f6649c Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32436
diff changeset
145 *
fb8447f6649c Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32436
diff changeset
146 * @param webview The GtkWebView object
fb8447f6649c Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32436
diff changeset
147 * @param vadj The GtkAdjustment that control the webview
fb8447f6649c Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32436
diff changeset
148 */
fb8447f6649c Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32436
diff changeset
149 void gtk_webview_set_vadjustment(GtkWebView *webview, GtkAdjustment *vadj);
fb8447f6649c Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32436
diff changeset
150
fb8447f6649c Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32436
diff changeset
151 /**
32120
24c8a98a6acc webkit: Scroll to end when appending html.
masca@cpw.pidgin.im
parents: 32109
diff changeset
152 * Scrolls the Webview to the end of its contents.
24c8a98a6acc webkit: Scroll to end when appending html.
masca@cpw.pidgin.im
parents: 32109
diff changeset
153 *
32284
6fb2b4b44934 Clean up documentation.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32199
diff changeset
154 * @param webview The GtkWebView object
6fb2b4b44934 Clean up documentation.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32199
diff changeset
155 * @param smooth A boolean indicating if smooth scrolling should be used
32120
24c8a98a6acc webkit: Scroll to end when appending html.
masca@cpw.pidgin.im
parents: 32109
diff changeset
156 */
24c8a98a6acc webkit: Scroll to end when appending html.
masca@cpw.pidgin.im
parents: 32109
diff changeset
157 void gtk_webview_scroll_to_end(GtkWebView *webview, gboolean smooth);
24c8a98a6acc webkit: Scroll to end when appending html.
masca@cpw.pidgin.im
parents: 32109
diff changeset
158
32419
7b9566b77501 Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32284
diff changeset
159 /**
7b9566b77501 Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32284
diff changeset
160 * Scrolls a GtkWebView up by one page.
7b9566b77501 Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32284
diff changeset
161 *
7b9566b77501 Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32284
diff changeset
162 * @param webview The GtkWebView.
7b9566b77501 Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32284
diff changeset
163 */
7b9566b77501 Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32284
diff changeset
164 void gtk_webview_page_up(GtkWebView *webview);
7b9566b77501 Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32284
diff changeset
165
7b9566b77501 Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32284
diff changeset
166 /**
7b9566b77501 Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32284
diff changeset
167 * Scrolls a GtkWebView down by one page.
7b9566b77501 Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32284
diff changeset
168 *
7b9566b77501 Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32284
diff changeset
169 * @param webview The GtkWebView.
7b9566b77501 Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32284
diff changeset
170 */
7b9566b77501 Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32284
diff changeset
171 void gtk_webview_page_down(GtkWebView *webview);
7b9566b77501 Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32284
diff changeset
172
32450
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
173 /**
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
174 * Enables or disables editing in a GtkWebView.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
175 *
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
176 * @param webview The GtkWebView
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
177 * @param editable @c TRUE to make the widget editable, or @c FALSE otherwise.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
178 */
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
179 void gtk_webview_set_editable(GtkWebView *webview, gboolean editable);
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
180
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
181 /**
32455
c5e5938bb89a Add a function for setting a WebView entry based on the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32450
diff changeset
182 * Setup formatting for a GtkWebView depending on the flags specified.
c5e5938bb89a Add a function for setting a WebView entry based on the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32450
diff changeset
183 *
c5e5938bb89a Add a function for setting a WebView entry based on the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32450
diff changeset
184 * @param webview The GtkWebView.
c5e5938bb89a Add a function for setting a WebView entry based on the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32450
diff changeset
185 * @param flags The connection flags describing the allowed formatting.
c5e5938bb89a Add a function for setting a WebView entry based on the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32450
diff changeset
186 */
c5e5938bb89a Add a function for setting a WebView entry based on the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32450
diff changeset
187 void gtk_webview_setup_entry(GtkWebView *webview, PurpleConnectionFlags flags);
c5e5938bb89a Add a function for setting a WebView entry based on the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32450
diff changeset
188
c5e5938bb89a Add a function for setting a WebView entry based on the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32450
diff changeset
189 /**
32450
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
190 * Enables or disables whole buffer formatting only (wbfo) in a GtkWebView.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
191 * In this mode formatting options to the buffer take effect for the entire
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
192 * buffer instead of specific text.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
193 *
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
194 * @param webview The GtkWebView
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
195 * @param wbfo @c TRUE to enable the mode, or @c FALSE otherwise.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
196 */
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
197 void gtk_webview_set_whole_buffer_formatting_only(GtkWebView *webview,
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
198 gboolean wbfo);
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
199
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
200 /**
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
201 * Indicates which formatting functions to enable and disable in a GtkWebView.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
202 *
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
203 * @param webview The GtkWebView
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
204 * @param buttons A GtkWebViewButtons bitmask indicating which functions to use
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
205 */
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
206 void gtk_webview_set_format_functions(GtkWebView *webview,
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
207 GtkWebViewButtons buttons);
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
208
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
209 /**
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
210 * Returns which formatting functions are enabled in a GtkWebView.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
211 *
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
212 * @param webview The GtkWebView
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
213 *
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
214 * @return A GtkWebViewButtons bitmask indicating which functions to are enabled
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
215 */
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
216 GtkWebViewButtons gtk_webview_get_format_functions(GtkWebView *webview);
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
217
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
218 /**
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
219 * Sets each boolean to @c TRUE or @c FALSE to indicate if that formatting
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
220 * option is enabled at the current position in a GtkWebView.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
221 *
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
222 * @param webview The GtkWebView
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
223 * @param bold The boolean to set for bold or @c NULL.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
224 * @param italic The boolean to set for italic or @c NULL.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
225 * @param underline The boolean to set for underline or @c NULL.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
226 * @param strikethrough The boolean to set for strikethrough or @c NULL.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
227 */
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
228 void gtk_webview_get_current_format(GtkWebView *webview, gboolean *bold,
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
229 gboolean *italic, gboolean *underline,
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
230 gboolean *strike);
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
231
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
232 /**
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
233 * Returns a string containing the selected font face at the current position
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
234 * in a GtkWebView.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
235 *
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
236 * @param webview The GtkWebView
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
237 *
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
238 * @return A string containing the font face or @c NULL if none is set.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
239 */
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
240 const char *gtk_webview_get_current_fontface(GtkWebView *webview);
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
241
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
242 /**
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
243 * Returns a string containing the selected foreground color at the current
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
244 * position in a GtkWebView.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
245 *
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
246 * @param webview The GtkWebView
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
247 *
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
248 * @return A string containing the foreground color or @c NULL if none is set.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
249 */
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
250 const char *gtk_webview_get_current_forecolor(GtkWebView *webview);
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
251
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
252 /**
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
253 * Returns a string containing the selected font background color at the current
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
254 * position in a GtkWebView.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
255 *
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
256 * @param webview The GtkWebView
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
257 *
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
258 * @return A string containing the background color or @c NULL if none is set.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
259 */
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
260 const char *gtk_webview_get_current_backcolor(GtkWebView *webview);
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
261
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
262 /**
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
263 * Returns a string containing the selected background color at the current
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
264 * position in a GtkWebView.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
265 *
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
266 * @param webview The GtkWebView
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
267 *
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
268 * @return A string containg the background color or @c NULL if none is set.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
269 */
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
270 const char *gtk_webview_get_current_background(GtkWebView *webview);
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
271
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
272 /**
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
273 * Returns a integer containing the selected HTML font size at the current
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
274 * position in a GtkWebView.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
275 *
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
276 * @param webview The GtkWebView
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
277 *
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
278 * @return The HTML font size.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
279 */
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
280 gint gtk_webview_get_current_fontsize(GtkWebView *webview);
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
281
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
282 /**
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
283 * Checks whether a GtkWebView is marked as editable.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
284 *
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
285 * @param webview The GtkWebView
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
286 *
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
287 * @return @c TRUE if the IM/HTML is editable, or @c FALSE otherwise.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
288 */
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
289 gboolean gtk_webview_get_editable(GtkWebView *webview);
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
290
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
291 /**
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
292 * Clear all the formatting on a GtkWebView.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
293 *
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
294 * @param webview The GtkWebView
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
295 */
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
296 void gtk_webview_clear_formatting(GtkWebView *webview);
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
297
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
298 /**
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
299 * Toggles bold at the cursor location or selection in a GtkWebView.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
300 *
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
301 * @param webview The GtkWebView
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
302 */
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
303 void gtk_webview_toggle_bold(GtkWebView *webview);
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
304
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
305 /**
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
306 * Toggles italic at the cursor location or selection in a GtkWebView.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
307 *
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
308 * @param webview The GtkWebView
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
309 */
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
310 void gtk_webview_toggle_italic(GtkWebView *webview);
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
311
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
312 /**
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
313 * Toggles underline at the cursor location or selection in a GtkWebView.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
314 *
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
315 * @param webview The GtkWebView
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
316 */
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
317 void gtk_webview_toggle_underline(GtkWebView *webview);
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
318
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
319 /**
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
320 * Toggles strikethrough at the cursor location or selection in a GtkWebView.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
321 *
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
322 * @param webview The GtkWebView
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
323 */
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
324 void gtk_webview_toggle_strike(GtkWebView *webview);
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
325
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
326 /**
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
327 * Toggles a foreground color at the current location or selection in a
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
328 * GtkWebView.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
329 *
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
330 * @param webview The GtkWebView
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
331 * @param color The HTML-style color, or @c NULL or "" to clear the color.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
332 *
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
333 * @return @c TRUE if a color was set, or @c FALSE if it was cleared.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
334 */
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
335 gboolean gtk_webview_toggle_forecolor(GtkWebView *webview, const char *color);
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
336
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
337 /**
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
338 * Toggles a background color at the current location or selection in a
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
339 * GtkWebView.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
340 *
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
341 * @param webview The GtkWebView
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
342 * @param color The HTML-style color, or @c NULL or "" to clear the color.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
343 *
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
344 * @return @c TRUE if a color was set, or @c FALSE if it was cleared.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
345 */
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
346 gboolean gtk_webview_toggle_backcolor(GtkWebView *webview, const char *color);
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
347
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
348 /**
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
349 * Toggles a background color at the current location or selection in a
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
350 * GtkWebView.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
351 *
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
352 * @param webview The GtkWebView
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
353 * @param color The HTML-style color, or @c NULL or "" to clear the color.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
354 *
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
355 * @return @c TRUE if a color was set, or @c FALSE if it was cleared.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
356 */
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
357 gboolean gtk_webview_toggle_background(GtkWebView *webview, const char *color);
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
358
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
359 /**
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
360 * Toggles a font face at the current location or selection in a GtkWebView.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
361 *
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
362 * @param webview The GtkWebView
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
363 * @param face The font face name, or @c NULL or "" to clear the font.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
364 *
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
365 * @return @c TRUE if a font name was set, or @c FALSE if it was cleared.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
366 */
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
367 gboolean gtk_webview_toggle_fontface(GtkWebView *webview, const char *face);
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
368
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
369 /**
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
370 * Sets the font size at the current location or selection in a GtkWebView.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
371 *
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
372 * @param webview The GtkWebView
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
373 * @param size The HTML font size to use.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
374 */
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
375 void gtk_webview_font_set_size(GtkWebView *webview, gint size);
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
376
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
377 /**
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
378 * Decreases the font size by 1 at the current location or selection in a
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
379 * GtkWebView.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
380 *
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
381 * @param webview The GtkWebView
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
382 */
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
383 void gtk_webview_font_shrink(GtkWebView *webview);
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
384
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
385 /**
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
386 * Increases the font size by 1 at the current location or selection in a
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
387 * GtkWebView.
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
388 *
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
389 * @param webview The GtkWebView
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
390 */
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
391 void gtk_webview_font_grow(GtkWebView *webview);
0d50155445fd Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32444
diff changeset
392
32436
34f778db624f Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32419
diff changeset
393 G_END_DECLS
34f778db624f Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32419
diff changeset
394
32061
ac42a0dfda48 Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff changeset
395 #endif /* _PIDGIN_WEBVIEW_H_ */
32133
8e1ec44ede75 Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32120
diff changeset
396