diff options
author | Premysl 'Anydot' Hruby <dfenze@gmail.com> | 2009-04-30 20:57:58 +0200 |
---|---|---|
committer | Premysl 'Anydot' Hruby <dfenze@gmail.com> | 2009-04-30 20:57:58 +0200 |
commit | 6ebde132877402c8634d1058677ed8216e7e682b (patch) | |
tree | 5a9bbbc5feaef922bc30fa2071791e99e87bd073 /uzbl.c | |
parent | 784a2f421adb0867792c906a3323d342c63c0806 (diff) |
Homepage function remove, it is substitued by uri "yourhomepagehere"
Diffstat (limited to 'uzbl.c')
-rw-r--r-- | uzbl.c | 17 |
1 files changed, 1 insertions, 16 deletions
@@ -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 = ""; |