pidgin/gtkwebview.h

Fri, 31 Jan 2014 17:37:00 +0530

author
Ankit Vani <a@nevitus.org>
date
Fri, 31 Jan 2014 17:37:00 +0530
branch
soc.2013.gobjectification.plugins
changeset 37029
bfdc18bb50f6
parent 37023
d9bcdc9a91e6
child 37034
9d6765962b22
permissions
-rw-r--r--

Remove entries in .hgignore that are covered by wider expressions

32441
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
1 /**
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
2 * @file gtkwebview.h Wrapper over the Gtk WebKitWebView component
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
3 * @ingroup pidgin
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
4 */
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
5
32513
9352b4c92d13 Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32500
diff changeset
6 /* pidgin
9352b4c92d13 Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32500
diff changeset
7 *
9352b4c92d13 Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32500
diff changeset
8 * 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
9 * 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
10 * source distribution.
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 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
13 * 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
14 * 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
15 * (at your option) any later version.
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 * 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
18 * 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
19 * 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
20 * 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
21 *
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
22 * 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
23 * 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
24 * 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
25 *
32441
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
26 */
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
27
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
28 #ifndef _PIDGIN_WEBVIEW_H_
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
29 #define _PIDGIN_WEBVIEW_H_
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
30
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
31 #include <glib.h>
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
32 #include <gtk/gtk.h>
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
33 #include <webkit/webkit.h>
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
34
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
35 #define GTK_TYPE_WEBVIEW (gtk_webview_get_type())
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
36 #define GTK_WEBVIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_WEBVIEW, GtkWebView))
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
37 #define GTK_WEBVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GTK_TYPE_WEBVIEW, GtkWebViewClass))
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
38 #define GTK_IS_WEBVIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GTK_TYPE_WEBVIEW))
32796
34f384b0d75f Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32790
diff changeset
39 #define GTK_IS_WEBVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GTK_TYPE_WEBVIEW))
34f384b0d75f Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32790
diff changeset
40 #define GTK_WEBVIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_WEBVIEW, GtkWebViewClass))
32441
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
41
32805
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
42 typedef enum {
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
43 GTK_WEBVIEW_BOLD = 1 << 0,
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
44 GTK_WEBVIEW_ITALIC = 1 << 1,
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
45 GTK_WEBVIEW_UNDERLINE = 1 << 2,
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
46 GTK_WEBVIEW_GROW = 1 << 3,
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
47 GTK_WEBVIEW_SHRINK = 1 << 4,
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
48 GTK_WEBVIEW_FACE = 1 << 5,
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
49 GTK_WEBVIEW_FORECOLOR = 1 << 6,
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
50 GTK_WEBVIEW_BACKCOLOR = 1 << 7,
32896
a9cbf3a55393 Having a backcolor and a background seems a bit redundant. And we
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32895
diff changeset
51 GTK_WEBVIEW_LINK = 1 << 8,
a9cbf3a55393 Having a backcolor and a background seems a bit redundant. And we
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32895
diff changeset
52 GTK_WEBVIEW_IMAGE = 1 << 9,
a9cbf3a55393 Having a backcolor and a background seems a bit redundant. And we
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32895
diff changeset
53 GTK_WEBVIEW_SMILEY = 1 << 10,
a9cbf3a55393 Having a backcolor and a background seems a bit redundant. And we
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32895
diff changeset
54 GTK_WEBVIEW_LINKDESC = 1 << 11,
a9cbf3a55393 Having a backcolor and a background seems a bit redundant. And we
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32895
diff changeset
55 GTK_WEBVIEW_STRIKE = 1 << 12,
32805
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
56 /** Show custom smileys when appropriate. */
32896
a9cbf3a55393 Having a backcolor and a background seems a bit redundant. And we
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32895
diff changeset
57 GTK_WEBVIEW_CUSTOM_SMILEY = 1 << 13,
32805
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
58 GTK_WEBVIEW_ALL = -1
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
59 } GtkWebViewButtons;
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
60
33256
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
61 typedef enum {
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
62 GTK_WEBVIEW_SMILEY_CUSTOM = 1 << 0
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
63 } GtkWebViewSmileyFlags;
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
64
34274
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
65 typedef enum {
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
66 GTK_WEBVIEW_ACTION_BOLD,
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
67 GTK_WEBVIEW_ACTION_ITALIC,
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
68 GTK_WEBVIEW_ACTION_UNDERLINE,
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
69 GTK_WEBVIEW_ACTION_STRIKE,
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
70 GTK_WEBVIEW_ACTION_LARGER,
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
71 #if 0
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
72 GTK_WEBVIEW_ACTION_NORMAL,
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
73 #endif
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
74 GTK_WEBVIEW_ACTION_SMALLER,
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
75 GTK_WEBVIEW_ACTION_FONTFACE,
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
76 GTK_WEBVIEW_ACTION_FGCOLOR,
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
77 GTK_WEBVIEW_ACTION_BGCOLOR,
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
78 GTK_WEBVIEW_ACTION_CLEAR,
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
79 GTK_WEBVIEW_ACTION_IMAGE,
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
80 GTK_WEBVIEW_ACTION_LINK,
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
81 GTK_WEBVIEW_ACTION_HR,
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
82 GTK_WEBVIEW_ACTION_SMILEY,
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
83 GTK_WEBVIEW_ACTION_ATTENTION
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
84 } GtkWebViewAction;
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
85
32796
34f384b0d75f Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32790
diff changeset
86 typedef struct _GtkWebView GtkWebView;
34f384b0d75f Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32790
diff changeset
87 typedef struct _GtkWebViewClass GtkWebViewClass;
33256
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
88 typedef struct _GtkWebViewSmiley GtkWebViewSmiley;
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
89
32441
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
90 struct _GtkWebView
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
91 {
32796
34f384b0d75f Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32790
diff changeset
92 WebKitWebView parent;
32441
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
93 };
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
94
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
95 struct _GtkWebViewClass
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 WebKitWebViewClass parent;
32811
87c1f3bb5461 Add some formatting signals to webview from imhtml.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32810
diff changeset
98
33229
f9503bfa54a4 Add protocol registration on a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33221
diff changeset
99 GList *protocols;
f9503bfa54a4 Add protocol registration on a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33221
diff changeset
100
32811
87c1f3bb5461 Add some formatting signals to webview from imhtml.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32810
diff changeset
101 void (*buttons_update)(GtkWebView *, GtkWebViewButtons);
87c1f3bb5461 Add some formatting signals to webview from imhtml.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32810
diff changeset
102 void (*toggle_format)(GtkWebView *, GtkWebViewButtons);
87c1f3bb5461 Add some formatting signals to webview from imhtml.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32810
diff changeset
103 void (*clear_format)(GtkWebView *);
87c1f3bb5461 Add some formatting signals to webview from imhtml.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32810
diff changeset
104 void (*update_format)(GtkWebView *);
33007
78b670090850 Add a changed signal shortcut for editable webview changes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33004
diff changeset
105 void (*changed)(GtkWebView *);
33241
d5a07f1ea70b Add a signal for when HTML is appended to a WebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33231
diff changeset
106 void (*html_appended)(GtkWebView *, WebKitDOMRange *);
32441
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
107 };
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
108
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
109 G_BEGIN_DECLS
32441
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
110
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 * Returns the GType for a GtkWebView widget
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
113 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
114 * @return The GType for GtkWebView widget
32441
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
115 */
32513
9352b4c92d13 Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32500
diff changeset
116 GType gtk_webview_get_type(void);
32441
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
117
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
118 /**
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
119 * Create a new GtkWebView object
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
120 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
121 * @param editable Whether this GtkWebView will be user-editable
34276
2b602f67f875 Make editable-ness a construct-only property of the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34274
diff changeset
122 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
123 * @return A GtkWidget corresponding to the GtkWebView object
32441
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
124 */
34276
2b602f67f875 Make editable-ness a construct-only property of the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34274
diff changeset
125 GtkWidget *gtk_webview_new(gboolean editable);
32441
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
126
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
127 /**
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
128 * 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
129 * 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
130 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
131 * @param webview The GtkWebView object
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
132 * @param markup The html markup to append
32441
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
133 */
32513
9352b4c92d13 Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32500
diff changeset
134 void gtk_webview_append_html(GtkWebView *webview, const char *markup);
32441
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
135
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
136 /**
33054
177359654a3d Update the webview to use the new image sources.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33021
diff changeset
137 * 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
138 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
139 * @param webview The GtkWebView object
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
140 * @param html The HTML content to load
32441
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
141 */
32993
d6da54acf528 Remove _with_imgstore suffix on this function. There isn't a version
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32896
diff changeset
142 void gtk_webview_load_html_string(GtkWebView *webview, const char *html);
32441
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
143
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
144 /**
33083
e96acbe0e928 Move caret selection into GtkWebView code.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33054
diff changeset
145 * 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
146 * 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
147 * 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
148 * 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
149 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
150 * @param webview The GtkWebView object
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
151 * @param html The HTML content to load
33083
e96acbe0e928 Move caret selection into GtkWebView code.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33054
diff changeset
152 */
e96acbe0e928 Move caret selection into GtkWebView code.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33054
diff changeset
153 void gtk_webview_load_html_string_with_selection(GtkWebView *webview, const char *html);
e96acbe0e928 Move caret selection into GtkWebView code.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33054
diff changeset
154
e96acbe0e928 Move caret selection into GtkWebView code.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33054
diff changeset
155 /**
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
156 * 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
157 * 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
158 * 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
159 * 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
160 * 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
161 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
162 * @param webview The GtkWebView object
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
163 * @param script The script to execute
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
164 */
32513
9352b4c92d13 Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32500
diff changeset
165 void gtk_webview_safe_execute_script(GtkWebView *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
166
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
167 /**
32513
9352b4c92d13 Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32500
diff changeset
168 * 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
169 * 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
170 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
171 * @param str The string to escape and quote
32441
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
172 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
173 * @return The quoted string
32441
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
174 */
32513
9352b4c92d13 Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32500
diff changeset
175 char *gtk_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
176
32500
d8aa742c6288 webkit: Scroll to end when appending html.
Jorge Villaseñor <masca@cpw.pidgin.im>
parents: 32489
diff changeset
177 /**
32796
34f384b0d75f Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32790
diff changeset
178 * Set the vertical adjustment for the GtkWebView.
34f384b0d75f Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32790
diff changeset
179 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
180 * @param webview The GtkWebView object
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
181 * @param vadj The GtkAdjustment that control the webview
32796
34f384b0d75f Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32790
diff changeset
182 */
34f384b0d75f Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32790
diff changeset
183 void gtk_webview_set_vadjustment(GtkWebView *webview, GtkAdjustment *vadj);
34f384b0d75f Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32790
diff changeset
184
34f384b0d75f Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32790
diff changeset
185 /**
32500
d8aa742c6288 webkit: Scroll to end when appending html.
Jorge Villaseñor <masca@cpw.pidgin.im>
parents: 32489
diff changeset
186 * Scrolls the Webview to the end of its contents.
d8aa742c6288 webkit: Scroll to end when appending html.
Jorge Villaseñor <masca@cpw.pidgin.im>
parents: 32489
diff changeset
187 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
188 * @param webview The GtkWebView object
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
189 * @param smooth A boolean indicating if smooth scrolling should be used
32500
d8aa742c6288 webkit: Scroll to end when appending html.
Jorge Villaseñor <masca@cpw.pidgin.im>
parents: 32489
diff changeset
190 */
d8aa742c6288 webkit: Scroll to end when appending html.
Jorge Villaseñor <masca@cpw.pidgin.im>
parents: 32489
diff changeset
191 void gtk_webview_scroll_to_end(GtkWebView *webview, gboolean smooth);
d8aa742c6288 webkit: Scroll to end when appending html.
Jorge Villaseñor <masca@cpw.pidgin.im>
parents: 32489
diff changeset
192
32772
9d79ccaeedfe Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32657
diff changeset
193 /**
33247
d8d6e87ce594 Add autoscrolling for the debug window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33241
diff changeset
194 * Set whether the GtkWebView stays at its end when HTML content is appended. If
d8d6e87ce594 Add autoscrolling for the debug window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33241
diff changeset
195 * 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
196 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
197 * @param webview The GtkWebView object
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
198 * @param scroll Whether to automatically scroll
33247
d8d6e87ce594 Add autoscrolling for the debug window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33241
diff changeset
199 */
d8d6e87ce594 Add autoscrolling for the debug window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33241
diff changeset
200 void gtk_webview_set_autoscroll(GtkWebView *webview, gboolean scroll);
d8d6e87ce594 Add autoscrolling for the debug window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33241
diff changeset
201
d8d6e87ce594 Add autoscrolling for the debug window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33241
diff changeset
202 /**
d8d6e87ce594 Add autoscrolling for the debug window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33241
diff changeset
203 * Set whether the GtkWebView stays at its end when HTML content is appended. If
d8d6e87ce594 Add autoscrolling for the debug window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33241
diff changeset
204 * 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
205 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
206 * @param webview The GtkWebView object
33247
d8d6e87ce594 Add autoscrolling for the debug window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33241
diff changeset
207 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
208 * @return Whether to automatically scroll
33247
d8d6e87ce594 Add autoscrolling for the debug window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33241
diff changeset
209 */
d8d6e87ce594 Add autoscrolling for the debug window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33241
diff changeset
210 gboolean gtk_webview_get_autoscroll(GtkWebView *webview);
d8d6e87ce594 Add autoscrolling for the debug window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33241
diff changeset
211
d8d6e87ce594 Add autoscrolling for the debug window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33241
diff changeset
212 /**
32772
9d79ccaeedfe Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32657
diff changeset
213 * Scrolls a GtkWebView up by one page.
9d79ccaeedfe Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32657
diff changeset
214 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
215 * @param webview The GtkWebView.
32772
9d79ccaeedfe Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32657
diff changeset
216 */
9d79ccaeedfe Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32657
diff changeset
217 void gtk_webview_page_up(GtkWebView *webview);
9d79ccaeedfe Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32657
diff changeset
218
9d79ccaeedfe Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32657
diff changeset
219 /**
9d79ccaeedfe Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32657
diff changeset
220 * Scrolls a GtkWebView down by one page.
9d79ccaeedfe Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32657
diff changeset
221 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
222 * @param webview The GtkWebView.
32772
9d79ccaeedfe Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32657
diff changeset
223 */
9d79ccaeedfe Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32657
diff changeset
224 void gtk_webview_page_down(GtkWebView *webview);
9d79ccaeedfe Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32657
diff changeset
225
32805
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
226 /**
32810
17dceb2423c2 Add a function for setting a WebView entry based on the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32805
diff changeset
227 * Setup formatting for a GtkWebView depending on the flags specified.
17dceb2423c2 Add a function for setting a WebView entry based on the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32805
diff changeset
228 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
229 * @param webview The GtkWebView.
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
230 * @param flags The connection flags describing the allowed formatting.
32810
17dceb2423c2 Add a function for setting a WebView entry based on the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32805
diff changeset
231 */
17dceb2423c2 Add a function for setting a WebView entry based on the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32805
diff changeset
232 void gtk_webview_setup_entry(GtkWebView *webview, PurpleConnectionFlags flags);
17dceb2423c2 Add a function for setting a WebView entry based on the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32805
diff changeset
233
17dceb2423c2 Add a function for setting a WebView entry based on the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32805
diff changeset
234 /**
33021
3dc4b2cdba7f Enable spell checking in an editable webview.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33017
diff changeset
235 * Setup spell-checking on a GtkWebView.
3dc4b2cdba7f Enable spell checking in an editable webview.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33017
diff changeset
236 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
237 * @param webview The GtkWebView.
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
238 * @param enable Whether to enable or disable spell-checking.
33021
3dc4b2cdba7f Enable spell checking in an editable webview.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33017
diff changeset
239 */
3dc4b2cdba7f Enable spell checking in an editable webview.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33017
diff changeset
240 void pidgin_webview_set_spellcheck(GtkWebView *webview, gboolean enable);
3dc4b2cdba7f Enable spell checking in an editable webview.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33017
diff changeset
241
3dc4b2cdba7f Enable spell checking in an editable webview.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33017
diff changeset
242 /**
32805
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
243 * Enables or disables whole buffer formatting only (wbfo) in a GtkWebView.
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
244 * 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
245 * 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
246 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
247 * @param webview The GtkWebView
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
248 * @param wbfo @c TRUE to enable the mode, or @c FALSE otherwise.
32805
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
249 */
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
250 void gtk_webview_set_whole_buffer_formatting_only(GtkWebView *webview,
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
251 gboolean wbfo);
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
252
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
253 /**
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
254 * Indicates which formatting functions to enable and disable in a GtkWebView.
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
255 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
256 * @param webview The GtkWebView
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
257 * @param buttons A GtkWebViewButtons bitmask indicating which functions to use
32805
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
258 */
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
259 void gtk_webview_set_format_functions(GtkWebView *webview,
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
260 GtkWebViewButtons buttons);
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
261
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
262 /**
33231
ab65d36fd975 Add a convenience function to activate a WebKit anchor element.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33229
diff changeset
263 * 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
264 * 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
265 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
266 * @param link The WebKitDOMHTMLAnchorElement object
33231
ab65d36fd975 Add a convenience function to activate a WebKit anchor element.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33229
diff changeset
267 *
ab65d36fd975 Add a convenience function to activate a WebKit anchor element.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33229
diff changeset
268 */
ab65d36fd975 Add a convenience function to activate a WebKit anchor element.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33229
diff changeset
269 void gtk_webview_activate_anchor(WebKitDOMHTMLAnchorElement *link);
ab65d36fd975 Add a convenience function to activate a WebKit anchor element.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33229
diff changeset
270
ab65d36fd975 Add a convenience function to activate a WebKit anchor element.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33229
diff changeset
271 /**
33229
f9503bfa54a4 Add protocol registration on a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33221
diff changeset
272 * Register a protocol with the GtkWebView widget. Registering a protocol would
f9503bfa54a4 Add protocol registration on a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33221
diff changeset
273 * allow certain text to be clickable.
f9503bfa54a4 Add protocol registration on a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33221
diff changeset
274 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
275 * @param name The name of the protocol (e.g. http://)
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
276 * @param activate The callback to trigger when the protocol text is clicked.
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
277 * Removes any current protocol definition if @c NULL. The
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
278 * callback should return @c TRUE if the link was activated
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
279 * properly, @c FALSE otherwise.
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
280 * @param 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
281 * up on the protocol text. The callback should return
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
282 * @c TRUE if the request for context menu was processed
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
283 * successfully, @c FALSE otherwise.
33229
f9503bfa54a4 Add protocol registration on a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33221
diff changeset
284 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
285 * @return @c TRUE if the protocol was successfully registered
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
286 * (or unregistered, when \a activate is @c NULL)
33229
f9503bfa54a4 Add protocol registration on a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33221
diff changeset
287 */
f9503bfa54a4 Add protocol registration on a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33221
diff changeset
288 gboolean gtk_webview_class_register_protocol(const char *name,
f9503bfa54a4 Add protocol registration on a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33221
diff changeset
289 gboolean (*activate)(GtkWebView *webview, const char *uri),
f9503bfa54a4 Add protocol registration on a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33221
diff changeset
290 gboolean (*context_menu)(GtkWebView *webview, WebKitDOMHTMLAnchorElement *link, GtkWidget *menu));
f9503bfa54a4 Add protocol registration on a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33221
diff changeset
291
f9503bfa54a4 Add protocol registration on a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33221
diff changeset
292 /**
32805
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
293 * Returns which formatting functions are enabled in a GtkWebView.
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
294 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
295 * @param webview The GtkWebView
32805
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
296 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
297 * @return A GtkWebViewButtons 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
298 */
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
299 GtkWebViewButtons gtk_webview_get_format_functions(GtkWebView *webview);
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
300
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
301 /**
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
302 * Sets each boolean to @c TRUE or @c FALSE to indicate if that formatting
32805
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
303 * option is enabled at the current position in a GtkWebView.
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
304 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
305 * @param webview The GtkWebView
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
306 * @param bold The boolean to set for bold or @c NULL.
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
307 * @param italic The boolean to set for italic or @c NULL.
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
308 * @param underline The boolean to set for underline or @c NULL.
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
309 * @param strikethrough The boolean to set for strikethrough or @c NULL.
32805
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
310 */
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
311 void gtk_webview_get_current_format(GtkWebView *webview, gboolean *bold,
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
312 gboolean *italic, gboolean *underline,
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
313 gboolean *strike);
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
314
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
315 /**
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
316 * Returns a string containing the selected font face at the current position
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
317 * in a GtkWebView.
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
318 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
319 * @param webview The GtkWebView
32805
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
320 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
321 * @return A string containing the font face or @c 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
322 */
32895
fbd3b11e535a WebKit knows the current formatting of the selection better than we
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32811
diff changeset
323 char *gtk_webview_get_current_fontface(GtkWebView *webview);
32805
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
324
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
325 /**
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
326 * Returns a string containing the selected foreground color at the current
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
327 * position in a GtkWebView.
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
328 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
329 * @param webview The GtkWebView
32805
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
330 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
331 * @return A string containing the foreground color or @c 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
332 */
32895
fbd3b11e535a WebKit knows the current formatting of the selection better than we
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32811
diff changeset
333 char *gtk_webview_get_current_forecolor(GtkWebView *webview);
32805
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
334
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
335 /**
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
336 * Returns a string containing the selected font background color at the current
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
337 * position in a GtkWebView.
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
338 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
339 * @param webview The GtkWebView
32805
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
340 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
341 * @return A string containing the background color or @c 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
342 */
32895
fbd3b11e535a WebKit knows the current formatting of the selection better than we
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32811
diff changeset
343 char *gtk_webview_get_current_backcolor(GtkWebView *webview);
32805
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
344
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
345 /**
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
346 * Returns a integer containing the selected HTML font size at the current
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
347 * position in a GtkWebView.
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
348 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
349 * @param webview The GtkWebView
32805
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
350 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
351 * @return 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
352 */
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
353 gint gtk_webview_get_current_fontsize(GtkWebView *webview);
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
354
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
355 /**
33004
2a86ad923464 Add some convenience functions to get the contents of a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32993
diff changeset
356 * Gets the content of the head element of a GtkWebView as HTML.
2a86ad923464 Add some convenience functions to get the contents of a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32993
diff changeset
357 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
358 * @param webview The GtkWebView
33004
2a86ad923464 Add some convenience functions to get the contents of a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32993
diff changeset
359 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
360 * @return 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
361 */
2a86ad923464 Add some convenience functions to get the contents of a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32993
diff changeset
362 gchar *gtk_webview_get_head_html(GtkWebView *webview);
2a86ad923464 Add some convenience functions to get the contents of a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32993
diff changeset
363
2a86ad923464 Add some convenience functions to get the contents of a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32993
diff changeset
364 /**
2a86ad923464 Add some convenience functions to get the contents of a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32993
diff changeset
365 * Gets the HTML content of a GtkWebView.
2a86ad923464 Add some convenience functions to get the contents of a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32993
diff changeset
366 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
367 * @param webview The GtkWebView
33004
2a86ad923464 Add some convenience functions to get the contents of a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32993
diff changeset
368 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
369 * @return 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
370 */
2a86ad923464 Add some convenience functions to get the contents of a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32993
diff changeset
371 gchar *gtk_webview_get_body_html(GtkWebView *webview);
2a86ad923464 Add some convenience functions to get the contents of a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32993
diff changeset
372
2a86ad923464 Add some convenience functions to get the contents of a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32993
diff changeset
373 /**
2a86ad923464 Add some convenience functions to get the contents of a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32993
diff changeset
374 * Gets the text content of a GtkWebView.
2a86ad923464 Add some convenience functions to get the contents of a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32993
diff changeset
375 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
376 * @param webview The GtkWebView
33004
2a86ad923464 Add some convenience functions to get the contents of a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32993
diff changeset
377 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
378 * @return 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
379 */
2a86ad923464 Add some convenience functions to get the contents of a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32993
diff changeset
380 gchar *gtk_webview_get_body_text(GtkWebView *webview);
33014
2f8a83007ab9 Set up the link description from the already selected text.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33013
diff changeset
381
2f8a83007ab9 Set up the link description from the already selected text.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33013
diff changeset
382 /**
2f8a83007ab9 Set up the link description from the already selected text.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33013
diff changeset
383 * Gets the selected text of a GtkWebView.
2f8a83007ab9 Set up the link description from the already selected text.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33013
diff changeset
384 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
385 * @param webview The GtkWebView
33014
2f8a83007ab9 Set up the link description from the already selected text.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33013
diff changeset
386 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
387 * @return 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
388 * currently selected.
2f8a83007ab9 Set up the link description from the already selected text.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33013
diff changeset
389 */
2f8a83007ab9 Set up the link description from the already selected text.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33013
diff changeset
390 gchar *gtk_webview_get_selected_text(GtkWebView *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 /**
35129
22dca763eeef Tab completion
Ankit Vani <a@nevitus.org>
parents: 34276
diff changeset
393 * Gets the container of the caret, along with its position in the container
22dca763eeef Tab completion
Ankit Vani <a@nevitus.org>
parents: 34276
diff changeset
394 * from a GtkWebView.
22dca763eeef Tab completion
Ankit Vani <a@nevitus.org>
parents: 34276
diff changeset
395 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
396 * @param webview The GtkWebView
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
397 * @param container_ret A pointer to a pointer to a WebKitDOMNode. This pointer
35129
22dca763eeef Tab completion
Ankit Vani <a@nevitus.org>
parents: 34276
diff changeset
398 * will be set to the container the caret is in. Set to
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
399 * @c NULL if a range is selected.
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
400 * @param pos_ret A pointer to a glong. This value will be set to the
35129
22dca763eeef Tab completion
Ankit Vani <a@nevitus.org>
parents: 34276
diff changeset
401 * position of the caret in the container. Set to -1 if a
22dca763eeef Tab completion
Ankit Vani <a@nevitus.org>
parents: 34276
diff changeset
402 * range is selected.
22dca763eeef Tab completion
Ankit Vani <a@nevitus.org>
parents: 34276
diff changeset
403 */
22dca763eeef Tab completion
Ankit Vani <a@nevitus.org>
parents: 34276
diff changeset
404 void gtk_webview_get_caret(GtkWebView *webview, WebKitDOMNode **container_ret,
22dca763eeef Tab completion
Ankit Vani <a@nevitus.org>
parents: 34276
diff changeset
405 glong *pos_ret);
22dca763eeef Tab completion
Ankit Vani <a@nevitus.org>
parents: 34276
diff changeset
406
22dca763eeef Tab completion
Ankit Vani <a@nevitus.org>
parents: 34276
diff changeset
407 /**
22dca763eeef Tab completion
Ankit Vani <a@nevitus.org>
parents: 34276
diff changeset
408 * Sets the caret position in container, in a GtkWebView.
22dca763eeef Tab completion
Ankit Vani <a@nevitus.org>
parents: 34276
diff changeset
409 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
410 * @param webview The GtkWebView
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
411 * @param container The WebKitDOMNode to set the caret in
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
412 * @param pos The position of the caret in the container
35129
22dca763eeef Tab completion
Ankit Vani <a@nevitus.org>
parents: 34276
diff changeset
413 */
22dca763eeef Tab completion
Ankit Vani <a@nevitus.org>
parents: 34276
diff changeset
414 void gtk_webview_set_caret(GtkWebView *webview, WebKitDOMNode *container,
22dca763eeef Tab completion
Ankit Vani <a@nevitus.org>
parents: 34276
diff changeset
415 glong pos);
22dca763eeef Tab completion
Ankit Vani <a@nevitus.org>
parents: 34276
diff changeset
416
22dca763eeef Tab completion
Ankit Vani <a@nevitus.org>
parents: 34276
diff changeset
417 /**
32805
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
418 * Clear all the formatting on a GtkWebView.
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
419 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
420 * @param webview The GtkWebView
32805
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
421 */
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
422 void gtk_webview_clear_formatting(GtkWebView *webview);
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
423
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
424 /**
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
425 * Toggles bold at the cursor location or selection in a GtkWebView.
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
426 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
427 * @param webview The GtkWebView
32805
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
428 */
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
429 void gtk_webview_toggle_bold(GtkWebView *webview);
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
430
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
431 /**
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
432 * Toggles italic at the cursor location or selection in a GtkWebView.
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
433 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
434 * @param webview The GtkWebView
32805
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
435 */
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
436 void gtk_webview_toggle_italic(GtkWebView *webview);
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
437
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
438 /**
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
439 * Toggles underline at the cursor location or selection in a GtkWebView.
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
440 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
441 * @param webview The GtkWebView
32805
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
442 */
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
443 void gtk_webview_toggle_underline(GtkWebView *webview);
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
444
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
445 /**
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
446 * Toggles strikethrough at the cursor location or selection in a GtkWebView.
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
447 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
448 * @param webview The GtkWebView
32805
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
449 */
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
450 void gtk_webview_toggle_strike(GtkWebView *webview);
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
451
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
452 /**
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
453 * Toggles a foreground color at the current location or selection in a
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
454 * GtkWebView.
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
455 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
456 * @param webview The GtkWebView
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
457 * @param color The HTML-style color, or @c NULL or "" to clear the color.
32805
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
458 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
459 * @return @c TRUE if a color was set, or @c 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
460 */
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
461 gboolean gtk_webview_toggle_forecolor(GtkWebView *webview, const char *color);
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
462
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
463 /**
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
464 * Toggles a background color at the current location or selection in a
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
465 * GtkWebView.
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
466 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
467 * @param webview The GtkWebView
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
468 * @param color The HTML-style color, or @c NULL or "" to clear the color.
32805
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
469 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
470 * @return @c TRUE if a color was set, or @c 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
471 */
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
472 gboolean gtk_webview_toggle_backcolor(GtkWebView *webview, const char *color);
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
473
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
474 /**
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
475 * Toggles a font face at the current location or selection in a GtkWebView.
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
476 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
477 * @param webview The GtkWebView
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
478 * @param face The font face name, or @c 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
479 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
480 * @return @c TRUE if a font name was set, or @c 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
481 */
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
482 gboolean gtk_webview_toggle_fontface(GtkWebView *webview, const char *face);
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
483
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 * Sets the font size at the current location or selection in a GtkWebView.
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
486 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
487 * @param webview The GtkWebView
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
488 * @param size The HTML font size to use.
32805
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
489 */
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
490 void gtk_webview_font_set_size(GtkWebView *webview, gint size);
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
491
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 * Decreases the font size by 1 at the current location or selection in a
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
494 * GtkWebView.
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
495 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
496 * @param webview The GtkWebView
32805
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
497 */
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
498 void gtk_webview_font_shrink(GtkWebView *webview);
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
499
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 * Increases the font size by 1 at the current location or selection in a
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
502 * GtkWebView.
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
503 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
504 * @param webview The GtkWebView
32805
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
505 */
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
506 void gtk_webview_font_grow(GtkWebView *webview);
57f914c32dc4 Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32798
diff changeset
507
33012
3a742f00a0f4 Restore Insert Horizontal Rule functionality.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33007
diff changeset
508 /**
3a742f00a0f4 Restore Insert Horizontal Rule functionality.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33007
diff changeset
509 * Inserts a horizontal rule at the current location or selection in a
3a742f00a0f4 Restore Insert Horizontal Rule functionality.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33007
diff changeset
510 * GtkWebView.
3a742f00a0f4 Restore Insert Horizontal Rule functionality.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33007
diff changeset
511 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
512 * @param webview The GtkWebView
33012
3a742f00a0f4 Restore Insert Horizontal Rule functionality.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33007
diff changeset
513 */
3a742f00a0f4 Restore Insert Horizontal Rule functionality.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33007
diff changeset
514 void gtk_webview_insert_hr(GtkWebView *webview);
3a742f00a0f4 Restore Insert Horizontal Rule functionality.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33007
diff changeset
515
33013
f62232fb738a Restore "Insert Link" functionality.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33012
diff changeset
516 /**
f62232fb738a Restore "Insert Link" functionality.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33012
diff changeset
517 * Inserts a link at the current location or selection in a GtkWebView.
f62232fb738a Restore "Insert Link" functionality.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33012
diff changeset
518 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
519 * @param webview The GtkWebView
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
520 * @param url The URL of the link
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
521 * @param 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
522 * used instead.
f62232fb738a Restore "Insert Link" functionality.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33012
diff changeset
523 */
f62232fb738a Restore "Insert Link" functionality.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33012
diff changeset
524 void gtk_webview_insert_link(GtkWebView *webview, const char *url, const char *desc);
f62232fb738a Restore "Insert Link" functionality.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33012
diff changeset
525
33017
d21ab88ad911 Fixup Insert Image functionality.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33014
diff changeset
526 /**
d21ab88ad911 Fixup Insert Image functionality.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33014
diff changeset
527 * Inserts an image at the current location or selection in a GtkWebView.
d21ab88ad911 Fixup Insert Image functionality.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33014
diff changeset
528 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
529 * @param webview The GtkWebView
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
530 * @param id The PurpleStoredImage id
33017
d21ab88ad911 Fixup Insert Image functionality.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33014
diff changeset
531 */
d21ab88ad911 Fixup Insert Image functionality.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33014
diff changeset
532 void gtk_webview_insert_image(GtkWebView *webview, int id);
d21ab88ad911 Fixup Insert Image functionality.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33014
diff changeset
533
33256
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
534 /**
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
535 * Gets the protocol name associated with this GtkWebView.
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
536 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
537 * @param webview The GtkWebView
33256
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
538 */
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
539 const char *gtk_webview_get_protocol_name(GtkWebView *webview);
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
540
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
541 /**
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
542 * Associates a protocol name with a GtkWebView.
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
543 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
544 * @param webview The GtkWebView
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
545 * @param protocol_name The protocol name to associate with the GtkWebView
33256
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
546 */
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
547 void gtk_webview_set_protocol_name(GtkWebView *webview, const char *protocol_name);
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
548
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
549 /**
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
550 * Create a new GtkWebViewSmiley.
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
551 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
552 * @param file The image file for the smiley
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
553 * @param shortcut The key shortcut for the smiley
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
554 * @param hide @c TRUE if the smiley should be hidden in the smiley dialog,
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
555 * @c FALSE otherwise
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
556 * @param flags The smiley flags
33256
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
557 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
558 * @return The newly created smiley
33256
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
559 */
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
560 GtkWebViewSmiley *gtk_webview_smiley_create(const char *file,
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
561 const char *shortcut,
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
562 gboolean hide,
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
563 GtkWebViewSmileyFlags flags);
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
564
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
565 /**
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
566 * Reload the image data for the smiley.
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
567 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
568 * @param smiley The smiley to reload
33256
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
569 */
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
570 void gtk_webview_smiley_reload(GtkWebViewSmiley *smiley);
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
571
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
572 /**
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
573 * Destroy a GtkWebViewSmiley.
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
574 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
575 * @param smiley The smiley to destroy
33256
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
576 */
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
577 void gtk_webview_smiley_destroy(GtkWebViewSmiley *smiley);
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
578
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
579 /**
33264
423d5b6e9d9a Add more accessors for GtkWebViewSmiley fields.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33256
diff changeset
580 * Returns the text associated with a smiley.
423d5b6e9d9a Add more accessors for GtkWebViewSmiley fields.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33256
diff changeset
581 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
582 * @param smiley The smiley
33264
423d5b6e9d9a Add more accessors for GtkWebViewSmiley fields.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33256
diff changeset
583 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
584 * @return The text
33264
423d5b6e9d9a Add more accessors for GtkWebViewSmiley fields.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33256
diff changeset
585 */
423d5b6e9d9a Add more accessors for GtkWebViewSmiley fields.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33256
diff changeset
586 const char *gtk_webview_smiley_get_smile(const GtkWebViewSmiley *smiley);
423d5b6e9d9a Add more accessors for GtkWebViewSmiley fields.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33256
diff changeset
587
423d5b6e9d9a Add more accessors for GtkWebViewSmiley fields.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33256
diff changeset
588 /**
423d5b6e9d9a Add more accessors for GtkWebViewSmiley fields.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33256
diff changeset
589 * Returns the file associated with a smiley.
423d5b6e9d9a Add more accessors for GtkWebViewSmiley fields.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33256
diff changeset
590 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
591 * @param smiley The smiley
33264
423d5b6e9d9a Add more accessors for GtkWebViewSmiley fields.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33256
diff changeset
592 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
593 * @return The file
33264
423d5b6e9d9a Add more accessors for GtkWebViewSmiley fields.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33256
diff changeset
594 */
423d5b6e9d9a Add more accessors for GtkWebViewSmiley fields.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33256
diff changeset
595 const char *gtk_webview_smiley_get_file(const GtkWebViewSmiley *smiley);
423d5b6e9d9a Add more accessors for GtkWebViewSmiley fields.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33256
diff changeset
596
423d5b6e9d9a Add more accessors for GtkWebViewSmiley fields.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33256
diff changeset
597 /**
423d5b6e9d9a Add more accessors for GtkWebViewSmiley fields.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33256
diff changeset
598 * Returns the invisibility of a smiley.
423d5b6e9d9a Add more accessors for GtkWebViewSmiley fields.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33256
diff changeset
599 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
600 * @param smiley The smiley
33264
423d5b6e9d9a Add more accessors for GtkWebViewSmiley fields.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33256
diff changeset
601 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
602 * @return The hidden status
33264
423d5b6e9d9a Add more accessors for GtkWebViewSmiley fields.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33256
diff changeset
603 */
423d5b6e9d9a Add more accessors for GtkWebViewSmiley fields.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33256
diff changeset
604 gboolean gtk_webview_smiley_get_hidden(const GtkWebViewSmiley *smiley);
423d5b6e9d9a Add more accessors for GtkWebViewSmiley fields.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33256
diff changeset
605
423d5b6e9d9a Add more accessors for GtkWebViewSmiley fields.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33256
diff changeset
606 /**
33256
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
607 * Returns the flags associated with a smiley.
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
608 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
609 * @param smiley The smiley
33264
423d5b6e9d9a Add more accessors for GtkWebViewSmiley fields.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33256
diff changeset
610 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
611 * @return The flags
33256
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
612 */
33264
423d5b6e9d9a Add more accessors for GtkWebViewSmiley fields.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33256
diff changeset
613 GtkWebViewSmileyFlags gtk_webview_smiley_get_flags(const GtkWebViewSmiley *smiley);
33256
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
614
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
615 /**
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
616 * Returns the smiley object associated with the text.
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
617 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
618 * @param webview The GtkWebView
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
619 * @param sml The name of the smiley category
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
620 * @param text The text associated with the smiley
33256
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
621 */
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
622 GtkWebViewSmiley *gtk_webview_smiley_find(GtkWebView *webview, const char *sml,
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
623 const char *text);
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
624
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
625 /**
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
626 * Associates a smiley with a GtkWebView.
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
627 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
628 * @param webview The GtkWebView
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
629 * @param sml The name of the smiley category
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
630 * @param smiley The GtkWebViewSmiley to associate
33256
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
631 */
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
632 void gtk_webview_associate_smiley(GtkWebView *webview, const char *sml,
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
633 GtkWebViewSmiley *smiley);
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
634
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
635 /**
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
636 * Removes all smileys associated with a GtkWebView.
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
637 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
638 * @param webview The GtkWebView.
33256
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
639 */
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
640 void gtk_webview_remove_smileys(GtkWebView *webview);
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
641
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
642 /**
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
643 * Inserts a smiley at the current location or selection in a GtkWebView.
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
644 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
645 * @param webview The GtkWebView
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
646 * @param sml The category of the smiley
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
647 * @param smiley The text of the smiley to insert
33256
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
648 */
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
649 void gtk_webview_insert_smiley(GtkWebView *webview, const char *sml,
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
650 const char *smiley);
2bf06f291ff7 Add some smiley stuff to a GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33247
diff changeset
651
34274
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
652 /**
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
653 * Makes the toolbar associated with a GtkWebView visible.
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
654 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
655 * @param webview The GtkWebView.
34274
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
656 */
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
657 void gtk_webview_show_toolbar(GtkWebView *webview);
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
658
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
659 /**
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
660 * Makes the toolbar associated with a GtkWebView invisible.
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
661 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
662 * @param webview The GtkWebView.
34274
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
663 */
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
664 void gtk_webview_hide_toolbar(GtkWebView *webview);
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
665
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
666 /**
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
667 * Activate an action on the toolbar associated with a GtkWebView.
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
668 *
37023
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
669 * @param webview The GtkWebView
d9bcdc9a91e6 Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents: 37021
diff changeset
670 * @param action The GtkWebViewAction
34274
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
671 */
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
672 void gtk_webview_activate_toolbar(GtkWebView *webview, GtkWebViewAction action);
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
673
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
674 /* Do not use. */
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
675 void
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
676 gtk_webview_set_toolbar(GtkWebView *webview, GtkWidget *toolbar);
9169710b5af5 Hide GtkWebViewToolbar stuff within the GtkWebView.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33264
diff changeset
677
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
678 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
679
32441
8a015ca299f9 Apparently I missed these in my previous commit.
Arnold Noronha <tdrhq@soc.pidgin.im>
parents:
diff changeset
680 #endif /* _PIDGIN_WEBVIEW_H_ */
32513
9352b4c92d13 Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32500
diff changeset
681

mercurial