diff options
author | 2009-07-19 15:09:40 +0100 | |
---|---|---|
committer | 2009-07-19 19:22:52 +0100 | |
commit | 6a79ef9896b4052ce142fdb150fe69547862c291 (patch) | |
tree | fe5a1012d4fb8351e008a9279c627b3d68bdc82a /uzbl.c | |
parent | 0a59fc24483961af5967551292f12e08951715cb (diff) |
Remove unneccesary code for new_window handler.
Diffstat (limited to 'uzbl.c')
-rw-r--r-- | uzbl.c | 15 |
1 files changed, 1 insertions, 14 deletions
@@ -134,7 +134,7 @@ const struct { { "history_handler", PTR_V(uzbl.behave.history_handler, STR, 1, NULL)}, { "download_handler", PTR_V(uzbl.behave.download_handler, STR, 1, NULL)}, { "cookie_handler", PTR_V(uzbl.behave.cookie_handler, STR, 1, cmd_cookie_handler)}, - { "new_window", PTR_V(uzbl.behave.new_window, STR, 1, cmd_new_window)}, + { "new_window", PTR_V(uzbl.behave.new_window, STR, 1, NULL)}, { "fifo_dir", PTR_V(uzbl.behave.fifo_dir, STR, 1, cmd_fifo_dir)}, { "socket_dir", PTR_V(uzbl.behave.socket_dir, STR, 1, cmd_socket_dir)}, { "http_debug", PTR_V(uzbl.behave.http_debug, INT, 1, cmd_http_debug)}, @@ -1613,19 +1613,6 @@ cmd_cookie_handler() { } void -cmd_new_window() { - gchar **split = g_strsplit(uzbl.behave.new_window, " ", 2); - /* pitfall: doesn't handle chain actions; must the sync_ action manually */ - if ((g_strcmp0(split[0], "sh") == 0) || - (g_strcmp0(split[0], "spawn") == 0)) { - g_free (uzbl.behave.new_window); - uzbl.behave.new_window = - g_strdup_printf("%s %s", split[0], split[1]); - } - g_strfreev (split); -} - -void cmd_fifo_dir() { uzbl.behave.fifo_dir = init_fifo(uzbl.behave.fifo_dir); } |