diff options
-rw-r--r-- | examples/configs/sampleconfig | 3 | ||||
-rw-r--r-- | examples/configs/sampleconfig-dev | 3 | ||||
-rw-r--r-- | uzbl.c | 17 |
3 files changed, 3 insertions, 20 deletions
diff --git a/examples/configs/sampleconfig b/examples/configs/sampleconfig index 4cba098..f6e8688 100644 --- a/examples/configs/sampleconfig +++ b/examples/configs/sampleconfig @@ -19,7 +19,6 @@ always_insert_mode = 0 modkey = Mod1 show_status = 1 status_top = 0 -home_page = http://www.uzbl.org [bindings] b = back @@ -27,7 +26,7 @@ m = forward s = stop r = refresh R = reload -h = home +h = uri http://www.uzbl.org f = follow_link_here F = follow_link_new_tab w = follow_link_new_window diff --git a/examples/configs/sampleconfig-dev b/examples/configs/sampleconfig-dev index 9413732..f6390b8 100644 --- a/examples/configs/sampleconfig-dev +++ b/examples/configs/sampleconfig-dev @@ -19,7 +19,6 @@ always_insert_mode = 0 modkey = Mod1 show_status = 1 status_top = 0 -home_page = http://www.uzbl.org [bindings] b = back @@ -27,7 +26,7 @@ m = forward s = stop r = refresh R = reload -h = home +h = uri http://www.uzbl.org f = follow_link_here F = follow_link_new_tab w = follow_link_new_window @@ -79,7 +79,6 @@ static gboolean insert_mode = FALSE; static gboolean status_top = FALSE; static gchar* modkey = NULL; static guint modmask = 0; -static gchar* home_page = NULL; /* settings from config: group bindings, key -> action */ static GHashTable *bindings; @@ -117,9 +116,6 @@ static void new_window_load_uri (const gchar * uri); static void -go_home (WebKitWebView *page, const char *param); - -static void close_uzbl (WebKitWebView *page, const char *param); static gboolean @@ -266,7 +262,7 @@ VIEWFUNC(go_forward) #undef VIEWFUNC /* -- command to callback/function map for things we cannot attach to any signals */ -// TODO: reload, home, quit +// TODO: reload static struct {char *name; Command command;} cmdlist[] = { @@ -280,7 +276,6 @@ static struct {char *name; Command command;} cmdlist[] = { "uri", load_uri }, { "toggle_status", toggle_status_cb }, { "spawn", spawn }, - { "home", go_home }, { "exit", close_uzbl }, }; @@ -361,14 +356,6 @@ new_window_load_uri (const gchar * uri) { } static void -go_home (WebKitWebView *page, const char *param) { - (void)param; - - if (home_page) - webkit_web_view_load_uri (page, home_page); -} - -static void close_uzbl (WebKitWebView *page, const char *param) { (void)page; (void)param; @@ -707,7 +694,6 @@ settings_init () { show_status = g_key_file_get_boolean (config, "behavior", "show_status", NULL); modkey = g_key_file_get_value (config, "behavior", "modkey", NULL); status_top = g_key_file_get_boolean (config, "behavior", "status_top", NULL); - home_page = g_key_file_get_value (config, "behavior", "home_page", NULL); if (! fifo_dir) fifo_dir = g_key_file_get_value (config, "behavior", "fifodir", NULL); if (! socket_dir) @@ -723,7 +709,6 @@ settings_init () { printf ("Show status: %s\n", (show_status ? "TRUE" : "FALSE")); printf ("Status top: %s\n", (status_top ? "TRUE" : "FALSE")); printf ("Modkey: %s\n", (modkey ? modkey : "disabled")); - printf ("Home page: %s\n", (home_page ? home_page : "disabled")); if (! modkey) modkey = ""; |