From 6ebde132877402c8634d1058677ed8216e7e682b Mon Sep 17 00:00:00 2001 From: Premysl 'Anydot' Hruby Date: Thu, 30 Apr 2009 20:57:58 +0200 Subject: Homepage function remove, it is substitued by uri "yourhomepagehere" --- uzbl.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'uzbl.c') diff --git a/uzbl.c b/uzbl.c index 967b3f1..a48849c 100644 --- a/uzbl.c +++ b/uzbl.c @@ -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; @@ -116,9 +115,6 @@ load_uri ( WebKitWebView * web_view, const gchar * uri); 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); @@ -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 }, }; @@ -360,14 +355,6 @@ new_window_load_uri (const gchar * uri) { g_string_free (to_execute, TRUE); } -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; @@ -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 = ""; -- cgit v1.2.3