Hi!
I checked following code:
mymainmenu = myrc.mainmenu.build() -- My local menu builder
-- ...
mymountbox = widget({ type = "textbox", align="right" }) -- Some widget
-- ...
mymountbox:add_signal("mouse::leave", function ()
mymainmenu:hide()
end)
mymountbox:add_signal("mouse::enter", function ()
mymainmenu:show()
end)
it works.
I am using awesome v3.4.4 (Jet Sex)
2010/4/1 Duflot Jean-Luc <[email protected]>:
> Well, I received no answer to my question (:-(
>
> Maybe it is so simple that I should find the solution by myself ; but if I
> am asking it, it's because I don't know how to get it...
>
> May be my question is not clear. So I reformulate it :
>
> I would like the awesome menu appears when the mouse cursor is above the
> menu widget (without clicking), and disappears when it moves away. How to
> combine the " add_signal("mouse::enter", function () " with the awesome
> menu widget ?
>
> Thanks for your answer !
>
> Jean-Luc
>
>
>
> Le 25/03/2010 11:58, Duflot Jean-Luc a écrit :
>>
>> I tried several things to display the awesome menu only when the mouse
>> goes above its icon (without click on it), but no one works.
>>
>> I have two things working well :
>>
>> 1) a widget icon from where, if the mouse goes above, the apwal
>> application is launched, which displays itself a set of application
>> icons that I can click on to launch one of them :
>>
>> wmdrawericon = widget({ type = "imagebox" })
>> wmdrawericon.image = image(beautiful.widget_drawer)
>> wmdrawericon:add_signal("mouse::enter", function ()
>> awful.util.spawn("apwal")
>> end)
>>
>> 2) the standard awesome menu launcher :
>>
>> mylauncher = awful.widget.launcher({ image =
>> image(beautiful.awesome_icon),
>> menu = mymainmenu })
>>
>>
>> So, I don't understand if the "wmdrawericon:add_signal..." function must
>> be inserted inside the "mylauncher = awful....." function, or at
>> contrary, if "mylauncher = awful....." must be inserted inside
>> "wmdrawericon:add_signal...", and where exactly. In fact, how to combine
>> both functions ?
>>
>> Some help would be very appreciated.
>>
>> Jean-Luc
>>
>>
>>
>> Le 22/03/2010 18:53, Adrian C. a écrit :
>>>
>>> On Mon, 22 Mar 2010, Duflot Jean-Luc wrote:
>>>
>>>> So I understand the awful menu can be modified to extend the main menu
>>>> (awesome, open terminal, Debian, in my original menu) to get several
>>>> lines more with an application icon inside each one.
>>>
>>> Not just that. You can create your own independant menus and menu
>>> launchers, ones that could consist only of icons (to imitate the
>>> wmdrawer look and behaviour).
>>>
>>
>>
>>
>
>
>
> --
> To unsubscribe, send mail to [email protected].
>
--
С Уважением,
Сергей.
--
To unsubscribe, send mail to [email protected].