diff options
author | Ole Loots <ole@monochrom.net> | 2013-12-13 00:26:00 +0100 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2013-12-13 00:26:00 +0100 |
commit | 35115ed6061a7e4d1c3b3c38ea385960dbc5c5b8 (patch) | |
tree | e14f15b366b8ce28bde0e0624af329aa4efb8b3b /atari/toolbar.c | |
parent | 27b7b20108e6507b13a3ce678ab036f01badd32d (diff) | |
download | netsurf-35115ed6061a7e4d1c3b3c38ea385960dbc5c5b8.tar.gz netsurf-35115ed6061a7e4d1c3b3c38ea385960dbc5c5b8.tar.bz2 |
Removed toolbar icons: favourite, ssl-indicator
(because it looks disgusting)
Diffstat (limited to 'atari/toolbar.c')
-rw-r--r-- | atari/toolbar.c | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/atari/toolbar.c b/atari/toolbar.c index 9a3412ebd..8f4b201d4 100644 --- a/atari/toolbar.c +++ b/atari/toolbar.c @@ -142,18 +142,6 @@ static struct s_tb_button tb_buttons[] = {0,0}, 0, 0, 0, {0,0,0,0}
}, - {
- TOOLBAR_BT_FAVORITE,
- toolbar_favorite_click,
- {0,0}, - 0, 0, 0, {0,0,0,0}
- }, - {
- TOOLBAR_BT_CRYPTO,
- toolbar_crypto_click,
- {0,0}, - 0, 0, 0, {0,0,0,0}
- },
{ 0, 0, {0,0}, 0, -1, 0, {0,0,0,0}}
}; @@ -546,46 +534,6 @@ void toolbar_update_buttons(struct s_toolbar *tb, struct browser_window *bw, } } - if (button == TOOLBAR_BT_FAVORITE || button <= 0) { - bt = find_button(tb, TOOLBAR_BT_FAVORITE); - ns_url = toolbar_get_nsurl(tb); - if (ns_url != NULL) { - if (hotlist_has_url(ns_url)) { - bt->state = button_on; - tb->form[TOOLBAR_BT_FAVORITE].ob_state |= OS_SELECTED; - } - else { - bt->state = button_on; - tb->form[TOOLBAR_BT_FAVORITE].ob_state &= ~OS_SELECTED; - } - } - nsurl_unref(ns_url); - } - - if (button == TOOLBAR_BT_CRYPTO|| button <= 0) { - bt = find_button(tb, TOOLBAR_BT_CRYPTO); - ns_url = toolbar_get_nsurl(tb); - if (ns_url != NULL && - nsurl_get(ns_url, NSURL_SCHEME, &c_url, &c_url_len) == NSERROR_OK) { - if (strncasecmp("https", c_url, 5) == 0) { - bt->state = button_on; - // TODO: this check actually doesn't work - why? - if (urldb_get_cert_permissions(ns_url) == true) { - tb->form[TOOLBAR_BT_CRYPTO].ob_state &= ~OS_SELECTED; - } - else { - tb->form[TOOLBAR_BT_CRYPTO].ob_state |= OS_SELECTED; - } - } - else { - bt->state = button_off; - tb->form[TOOLBAR_BT_CRYPTO].ob_state &= ~OS_SELECTED; - } - nsurl_unref(ns_url); - free(c_url); - } - } - if (tb->attached) { if (button > 0) { toolbar_get_grect(tb, button, &area); |