aboutsummaryrefslogtreecommitdiffhomepage
path: root/uzbl-core.h
diff options
context:
space:
mode:
Diffstat (limited to 'uzbl-core.h')
-rw-r--r--uzbl-core.h74
1 files changed, 59 insertions, 15 deletions
diff --git a/uzbl-core.h b/uzbl-core.h
index 77f3a84..94680c8 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;
@@ -101,6 +104,7 @@ typedef struct {
gboolean verbose;
GPtrArray *event_buffer;
gchar** connect_socket_names;
+ GdkEventButton *last_button;
} State;
@@ -207,11 +211,6 @@ extern UzblCore uzbl;
typedef void sigfunc(int);
-typedef struct {
- char* name;
- char* param;
-} Action;
-
/* XDG Stuff */
typedef struct {
gchar* environmental;
@@ -246,7 +245,7 @@ GArray*
read_file_by_line (const gchar *path);
gchar*
-parseenv (char* string);
+parseenv (gchar* string);
void
clean_up(void);
@@ -257,23 +256,17 @@ catch_sigterm(int s);
sigfunc *
setup_signal(int signe, sigfunc *shandler);
-gchar*
-parseenv (char* string);
-
gboolean
set_var_value(const gchar *name, gchar *val);
void
-print(WebKitWebView *page, GArray *argv, GString *result);
+load_uri_imp(gchar *uri);
void
-commands_hash(void);
+print(WebKitWebView *page, GArray *argv, GString *result);
void
-free_action(gpointer act);
-
-Action*
-new_action(const gchar *name, const gchar *param);
+commands_hash(void);
bool
file_exists (const char * filename);
@@ -441,10 +434,61 @@ 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();
+
+void
+hardcopy(WebKitWebView *page, GArray *argv, GString *result);
+
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: */