Render empty speed dial shortcuts as Add icons
And only show the icons if scripts are enabled.
This commit is contained in:
parent
9ff5114b76
commit
1f99c1fe9d
1 changed files with 6 additions and 6 deletions
|
@ -4040,12 +4040,12 @@ prepare_speed_dial_html (MidoriView* view)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
g_string_append_printf (markup,
|
g_string_append_printf (markup,
|
||||||
"<div class=\"shortcut%s\" id=\"s%d\">"
|
"<div class=\"shortcut%s\" id=\"s%d\">", position, slot);
|
||||||
"\n<a href=\"#\" onclick='javascript:return"
|
if (katze_object_get_boolean (view->settings, "enable-scripts"))
|
||||||
" getAction(\"s%d\");'>"
|
g_string_append_printf (markup,
|
||||||
"<h1>%d</h1>\n<h4><span></span></h4>"
|
"<a href=\"#\" onclick='javascript:return getAction(\"s%d\");'>"
|
||||||
"</a>\n<p></p></div>\n",
|
"<img src=\"stock://6/gtk-add\"></a>", slot);
|
||||||
position, slot, slot, slot);
|
g_string_append_printf (markup, "</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
slot++;
|
slot++;
|
||||||
|
|
Loading…
Reference in a new issue