[Xfce4-commits] <midori:master> Speed dial should honor close-buttons-left value

Christian Dywan noreply at xfce.org
Thu Oct 13 18:34:01 CEST 2011


Updating branch refs/heads/master
         to edb01a11f65339773330fd447f20c675c22aa651 (commit)
       from bb7c900144201623bf0f4fbac4f104d8767582a3 (commit)

commit edb01a11f65339773330fd447f20c675c22aa651
Author: Christian Dywan <christian at twotoasts.de>
Date:   Thu Oct 13 01:40:39 2011 +0200

    Speed dial should honor close-buttons-left value

 data/speeddial-head.html |    2 +-
 midori/midori-view.c     |    4 ++++
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/data/speeddial-head.html b/data/speeddial-head.html
index 301640c..e34ac2d 100644
--- a/data/speeddial-head.html
+++ b/data/speeddial-head.html
@@ -78,7 +78,7 @@
         width: 27px;
         height: 27px;
         top: -14px;
-        left: -14px;
+        right: -14px;
         background: url(res://close.png);
         position: absolute;
         cursor: pointer;
diff --git a/midori/midori-view.c b/midori/midori-view.c
index 8e2086c..60f91ff 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -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);


More information about the Xfce4-commits mailing list