Updating branch refs/heads/master
to db51b7d575599f55fe0e743be0d95427db5426ef (commit)
from 6f6a57a623e8fc2d6c75e9dd3b32111bddc74711 (commit)
commit db51b7d575599f55fe0e743be0d95427db5426ef
Author: Paweł Forysiuk <[email protected]>
Date: Thu Nov 10 22:24:21 2011 +0100
Center speed dial via percentual margin
midori/midori-view.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/midori/midori-view.c b/midori/midori-view.c
index 6731d22..f064ce4 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -3710,6 +3710,12 @@ prepare_speed_dial_html (MidoriView* view)
sokoke_is_app_or_private () ? "" : "</noscript>",
slot_size + 1, slot_size - 4);
+ /* Combined width of slots should always be less than 100%.
+ * Use half of the remaining percentage as a margin size */
+ g_string_append_printf (markup,
+ "<style> body { overflow:hidden } #content { margin-left: %d%%;
}</style>",
+ (100 - ((slot_size - 4) * grid_index)) / 2);
+
if (katze_object_get_boolean (view->settings, "close-buttons-left"))
g_string_append_printf (markup,
"<style>.cross { left: -14px }</style>");
_______________________________________________
Xfce4-commits mailing list
[email protected]
https://mail.xfce.org/mailman/listinfo/xfce4-commits