From: Christian Dywan Date: Thu, 5 May 2011 23:59:28 +0000 (+0200) Subject: Render empty speed dial shortcuts as Add icons X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f99c1fe9d6910119d9035132be561ee018ea37c;p=midori Render empty speed dial shortcuts as Add icons And only show the icons if scripts are enabled. --- diff --git a/midori/midori-view.c b/midori/midori-view.c index f18c6d1c..8b72b805 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -4040,12 +4040,12 @@ prepare_speed_dial_html (MidoriView* view) else { g_string_append_printf (markup, - "
" - "\n" - "

%d

\n

" - "
\n

\n", - position, slot, slot, slot); + "
", position, slot); + if (katze_object_get_boolean (view->settings, "enable-scripts")) + g_string_append_printf (markup, + "" + "", slot); + g_string_append_printf (markup, "
"); } slot++;