[Patch] Fix naughty's margin calculation

2009-07-29 Thread Uli Schlachter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Hi,

no idea when this break, but the attached patch fixes it (for me).
Tested with notify-sent, with and without an icon.

Oh and I'm working on a follow-up patch for this, the width calculation looks a
little fishy.

Uli
- --
Do you know that books smell like nutmeg or some spice from a foreign land?
  -- Faber in Fahrenheit 451
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)

iQEcBAEBCAAGBQJKcENjAAoJECLkKOvLj8sGxCEH/iBEw+LSi7t7P/ny3/EWb7w/
4kzANhmFVd4xUm+IRDVhPpMcacY28zBvndRd6zUn9Eixi8hOMGbgMzivgvnCe+ir
HceFML+OWvb3cijrfeVeb4wcSQueHWxAVFb3+nG9HgNXOccqbHG1qOVqgA7ilCQ4
O6DfGxx1duADb4ercF55dq6qi+gXhaNanrBCuKhyQtjhVu129QgQmaV1TQllA1DH
W7CSe+TiS+G9arwaaQH67c6Q5x/V6Nhetb/jzQiTtaehcMCGnUrTtnYFaBgTyTy8
pUDwPQnF8nmyLZY07mQT5Ej35ic18DguobfS5+aJSrALcKkV0J/qjrgIuqSmFlA=
=N6Fn
-END PGP SIGNATURE-
From 8e866ba152eca6a4d1a784df2a4fb804d33f81e4 Mon Sep 17 00:00:00 2001
From: Uli Schlachter psyc...@znc.in
Date: Wed, 29 Jul 2009 14:37:23 +0200
Subject: [PATCH] Naughty: Fix the text margin

No idea where this comes from or why it worked before, but it's obviously wrong.

Signed-off-by: Uli Schlachter psyc...@znc.in
---
 lib/naughty.lua.in |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/naughty.lua.in b/lib/naughty.lua.in
index c13cca7..ad02149 100644
--- a/lib/naughty.lua.in
+++ b/lib/naughty.lua.in
@@ -313,7 +313,7 @@ function notify(args)
 -- create textbox
 local textbox = capi.widget({ type = textbox, align = flex })
 textbox.buttons = util.table.join(button({ }, 1, run), button({ }, 3, die))
-textbox:margin({ right = margin, left = margin, bottom = 2 * margin })
+textbox:margin({ right = margin, left = margin, bottom = margin, top = margin })
 textbox.text = string.format('span font_desc=%sb%s/b%s/span', font, title, text)
 if hover_timeout then textbox.mouse_enter = hover_destroy end
 
-- 
1.6.3.3



Re: [Patch] Fix naughty's margin calculation

2009-07-29 Thread Julien Danjou
At 1248871268 time_t, Uli Schlachter wrote:
 no idea when this break, but the attached patch fixes it (for me).
 Tested with notify-sent, with and without an icon.

Pushed.
Thanks Uli.

Cheers,
-- 
Julien Danjou
// ᐰ jul...@danjou.info   http://julien.danjou.info
// 9A0D 5FD9 EB42 22F6 8974  C95C A462 B51E C2FE E5CD
// Tomorrow I was nothing, yesterday I'll be.


signature.asc
Description: Digital signature


Re: [Patch] Fix naughty's margin calculation

2009-07-29 Thread koniu
On Wed, Jul 29, 2009 at 13:41, Uli Schlachterpsyc...@znc.in wrote:

 no idea when this break, but the attached patch fixes it (for me).
 Tested with notify-sent, with and without an icon.

 No idea where this comes from or why it worked before, but it's obviously 
 wrong.

Dont ask me:
http://www.mail-archive.com/awesome-devel@naquadah.org/msg02336.html

Nice one with the other patch dealing with heavy code duplication
introduced by the widget layout commit.

k

-- 
To unsubscribe, send mail to awesome-devel-unsubscr...@naquadah.org.