]> spindle.queued.net Git - midori/commitdiff
Speed dial should honor close-buttons-left value
authorChristian Dywan <christian@twotoasts.de>
Wed, 12 Oct 2011 23:40:39 +0000 (01:40 +0200)
committerChristian Dywan <christian@twotoasts.de>
Thu, 13 Oct 2011 16:31:50 +0000 (18:31 +0200)
data/speeddial-head.html
midori/midori-view.c

index 301640cc9a75090baf768d8f3d732f919f0a7e17..e34ac2d9e2fe471ad60de79162d61e13a6b9efe9 100644 (file)
@@ -78,7 +78,7 @@
         width: 27px;
         height: 27px;
         top: -14px;
-        left: -14px;
+        right: -14px;
         background: url(res://close.png);
         position: absolute;
         cursor: pointer;
index 8e2086ca666d1d0f5a48f2661aa7acc1addd3996..60f91ff26b024ef00d31100df5f39833eec0e84a 100644 (file)
@@ -3754,6 +3754,10 @@ prepare_speed_dial_html (MidoriView* view)
         sokoke_is_app_or_private () ? "" : "</noscript>",
         slot_size + 1, slot_size - 4);
 
+    if (katze_object_get_boolean (view->settings, "close-buttons-left"))
+        g_string_append_printf (markup,
+            "<style>.cross { left: -14px }</style>");
+
     while (slot <= slot_count)
     {
         gchar* dial_entry = g_strdup_printf ("Dial %d", slot);