diff options
Diffstat (limited to 'uzbl.c')
-rw-r--r-- | uzbl.c | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -110,6 +110,9 @@ update_title (GtkWindow* window); static void load_uri ( WebKitWebView * web_view, const gchar * uri); +static void +close_uzbl ( WebKitWebView * web_view); + static gboolean run_command(const char *command, const char *args); @@ -244,8 +247,9 @@ static Command commands[] = { "stop", &webkit_web_view_stop_loading, NULL }, { "zoom_in", &webkit_web_view_zoom_in, NULL }, //Can crash (when max zoom reached?). { "zoom_out", &webkit_web_view_zoom_out, NULL }, - { "uri", NULL, &load_uri }, - { "toggle_status", &toggle_status_cb, NULL } + { "uri", (void *) NULL, &load_uri }, + { "toggle_status", &toggle_status_cb, NULL }, + { "exit" , &close_uzbl, NULL }, //{ "get uri", &webkit_web_view_get_uri}, }; @@ -273,6 +277,12 @@ load_uri (WebKitWebView * web_view, const gchar * uri) { } +static void +close_uzbl (WebKitWebView * web_view) { + (void) web_view; + gtk_main_quit (); +} + // make sure to put '' around args, so that if there is whitespace we can still keep arguments together. static gboolean run_command(const char *command, const char *args) { |