[webkit-gtk] can not make excerpt from documentation to compile
Konovalov, Vadim
Vadim.Konovalov at emc.com
Wed Aug 5 23:34:19 PDT 2015
Ok, attempt to simplify the question ad minimum, so trivialize it to maximum,
The mentioned excerpt is placed right here - http://webkitgtk.org/reference/webkit2gtk/stable/WebKitWebPage.html
gboolean
user_function (WebKitWebPage *web_page,
WebKitContextMenu *context_menu,
WebKitWebHitTestResult *hit_test_result,
gpointer user_data)
it could not be compiled with gcc `pkg-config --cflags webkit2gtk-3.0` simple.c -o simple.o
I have either:
#include <webkit2/webkit-web-extension.h>
gboolean
context_menu_cb (WebKitWebPage *web_page,
WebKitContextMenu *context_menu,
WebKitWebHitTestResult *hit_test_result,
gpointer user_data) {
printf("context_menu_cb\n");
return FALSE;
}
simple1.c:7:16: error: unknown type name тАШWebKitContextMenuтАЩ
WebKitContextMenu *context_menu,
^
simple1.c:8:16: error: unknown type name тАШWebKitWebHitTestResultтАЩ
WebKitWebHitTestResult *hit_test_result,
^
Or:
#include <webkit2/webkit2.h>
gboolean
context_menu_cb (WebKitWebPage *web_page,
WebKitContextMenu *context_menu,
WebKitWebHitTestResult *hit_test_result,
gpointer user_data) {
printf("context_menu_cb\n");
return FALSE;
}
simple2.c:6:18: error: unknown type name тАШWebKitWebPageтАЩ
context_menu_cb (WebKitWebPage *web_page,
^
simple2.c:8:16: error: unknown type name тАШWebKitWebHitTestResultтАЩ
WebKitWebHitTestResult *hit_test_result,
I am lost
Vadim.
More information about the webkit-gtk
mailing list