aboutsummaryrefslogtreecommitdiff
path: root/src/menu.cc
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2012-11-30 03:04:44 +0000
committercorvid <corvid@lavabit.com>2012-11-30 03:04:44 +0000
commit5bbc93bc83a3c0997f3a9c69c737f4970bb604c8 (patch)
tree0e52bd4d0ea123c035a155db5c1763dba0e26ee5 /src/menu.cc
parent891e083d172ce40aec3d609ea5e0a4d3cd9df325 (diff)
trim off the "View " in front of stylesheet menu entries
to conserve space...
Diffstat (limited to 'src/menu.cc')
-rw-r--r--src/menu.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/menu.cc b/src/menu.cc
index d89c9ee1..37f84c5e 100644
--- a/src/menu.cc
+++ b/src/menu.cc
@@ -373,9 +373,6 @@ void a_Menu_page_popup(BrowserWindow *bw, const DilloUrl *url,
memset(stylesheets, '\0', sizeof(Fl_Menu_Item[cssUrls->size() + 1]));
for (j = 0; j < cssUrls->size(); j++) {
-
- /* may want ability to Load individual unloaded stylesheets as well */
- const char *action = "View ";
DilloUrl *url = cssUrls->get(j);
const char *url_str = URL_STR(url);
const uint_t head_length = 30, tail_length = 40,
@@ -386,10 +383,10 @@ void a_Menu_page_popup(BrowserWindow *bw, const DilloUrl *url,
/* trim long URLs when making the label */
char *url_head = dStrndup(url_str, head_length);
const char *url_tail = url_str + (url_len - tail_length);
- label = dStrconcat(action, url_head, "...", url_tail, NULL);
+ label = dStrconcat(url_head, "...", url_tail, NULL);
dFree(url_head);
} else {
- label = dStrconcat(action, url_str, NULL);
+ label = dStrdup(url_str);
}
stylesheets[j].label(FL_NORMAL_LABEL, label);