aboutsummaryrefslogtreecommitdiffhomepage
path: root/uzbl-core.h
diff options
context:
space:
mode:
Diffstat (limited to 'uzbl-core.h')
-rw-r--r--uzbl-core.h58
1 files changed, 57 insertions, 1 deletions
diff --git a/uzbl-core.h b/uzbl-core.h
index 1c1a287..43d5a3b 100644
--- a/uzbl-core.h
+++ b/uzbl-core.h
@@ -70,6 +70,9 @@ typedef struct {
WebKitWebInspector *inspector;
StatusBar sbar;
+
+ /* custom context menu item */
+ GPtrArray *menu_items;
} GUI;
@@ -82,7 +85,8 @@ typedef struct {
GHashTable *proto_var;
gchar *sync_stdout;
- GIOChannel *clientchan;
+ GPtrArray *connect_chan;
+ GPtrArray *client_chan;
} Communication;
@@ -99,6 +103,8 @@ typedef struct {
gchar* searchtx;
gboolean verbose;
GPtrArray *event_buffer;
+ gchar** connect_socket_names;
+ GdkEventButton *last_button;
} State;
@@ -412,10 +418,60 @@ update_gui(WebKitWebView *page, GArray *argv, GString *result);
void
event(WebKitWebView *page, GArray *argv, GString *result);
+void
+init_connect_socket();
+
+void
+menu_add(WebKitWebView *page, GArray *argv, GString *result);
+
+void
+menu_add_link(WebKitWebView *page, GArray *argv, GString *result);
+
+void
+menu_add_image(WebKitWebView *page, GArray *argv, GString *result);
+
+void
+menu_add_edit(WebKitWebView *page, GArray *argv, GString *result);
+
+void
+menu_add_separator(WebKitWebView *page, GArray *argv, GString *result);
+
+void
+menu_add_separator_link(WebKitWebView *page, GArray *argv, GString *result);
+
+void
+menu_add_separator_image(WebKitWebView *page, GArray *argv, GString *result);
+
+void
+menu_add_separator_edit(WebKitWebView *page, GArray *argv, GString *result);
+
+void
+menu_remove(WebKitWebView *page, GArray *argv, GString *result);
+
+void
+menu_remove_link(WebKitWebView *page, GArray *argv, GString *result);
+
+void
+menu_remove_image(WebKitWebView *page, GArray *argv, GString *result);
+
+void
+menu_remove_edit(WebKitWebView *page, GArray *argv, GString *result);
+
+gint
+get_click_context();
+
typedef void (*Command)(WebKitWebView*, GArray *argv, GString *result);
typedef struct {
Command function;
gboolean no_split;
} CommandInfo;
+typedef struct {
+ gchar *name;
+ gchar *cmd;
+ gboolean issep;
+ guint context;
+} MenuItem;
+
+
/* vi: set et ts=4: */