From 84d4865e222b46194b48be2c74e24c5a0bbcb613 Mon Sep 17 00:00:00 2001 From: Peter de Ridder Date: Sun, 16 May 2010 17:56:22 +0200 Subject: [PATCH] Allow custom shortcut and column count in speed dial --- data/speeddial-head.html | 55 ++++++++++++++++++++++++++++++++++++++-- midori/midori-view.c | 6 ++++- 2 files changed, 58 insertions(+), 3 deletions(-) diff --git a/data/speeddial-head.html b/data/speeddial-head.html index 8152afe1..2e015076 100644 --- a/data/speeddial-head.html +++ b/data/speeddial-head.html @@ -30,7 +30,7 @@ } #content { - margin-top: 40px; + margin-top: 10px; } div.shortcut { @@ -140,6 +140,20 @@ opacity: 1; color: rgba(0,0,0,0.5); } + + div.config { + padding: 12px; + text-align: left; + } + + div.config span { + color: #ccc; + } + + div.config span:hover { + color: #999; + cursor: pointer; + } +
+ {set_dial_width} + {set_shortcut_count} +
diff --git a/midori/midori-view.c b/midori/midori-view.c index 83f20352..1b8720d0 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -3483,7 +3483,11 @@ midori_view_set_uri (MidoriView* view, "{click_to_add}", _("Click to add a shortcut"), "{enter_shortcut_address}", _("Enter shortcut address"), "{enter_shortcut_name}", _("Enter shortcut title"), - "{are_you_sure}", _("Are you sure you want to delete this shortcut?"), NULL); + "{are_you_sure}", _("Are you sure you want to delete this shortcut?"), + "{set_dial_width}", _("Set number of columns"), + "{enter_dial_width}", _("Enter number of columns:"), + "{set_shortcut_count}", _("Set number of shortcuts"), + "{enter_shortcut_count}", _("Enter number of shortcuts:"), NULL); midori_view_load_alternate_string (view, -- 2.39.5