OK
Rating:
1.97
Thread Listing » AWN Applets
[Applet devs] Right click menus.
#22394 by moonbeam (1.0000) posted on 8:53am Saturday, May 31st, 2008
( no avatar )
Awn has long had awn_applet_create_default_menu() but it didn't do anything other than create a new menu using gtk_menu_new(). This, understandly, lead to a tradition of ignoring its existence and just using gtk_menu_new() (or its python or Vala equivalent).
[Q]



Anyway, it would be greatly appreciated if applets that are using the simple gkt_menu_new() approach be converted to using awn_applet_create_default_menu() for the icon right click menu. If there is no right click it would be appreciated if the right click is connected to the awn default menu.:
[Q]



For C - gtk_menu_new() ---> awn_applet_create_default_menu()
For Python - gtk.Menu() ---> create_default_menu()
For Vala - Gtk.Menu() ---> create_default_menu()
[Q]



In Vala create_default_menu() is a member of the Applet class (and therefore the AppletSimple class). I expect it is the same in python.
[Q]



Once you do this you should have a new option in your right click menu. Specifically "Dock Preferences" which will start awn-manager.
[Q]



Both for the whole consistency thing and for some future features it would be nice if we could get this into all the applets as soon as possible. I converted a large number of the C and vala applets yesterday... haven't touched the python ones though.
[Q]



Thanks,
[Q]

--
http://moon-shiny.blogspot.com/

*Edited at 8:59am, 05/31/08
Score: 0 points
Any particular reason?
#22396 by tehkain (1.0000) posted on 3:19pm Saturday, May 31st, 2008
Awesome! I am going to have to untangle arss but otherwise I converted most of the python applets which catch a button3(right click) event to use this.
[Q]



I am wondering are we trying to get all right clicks to show this menu? For example MediaControl does not do anything on a right click so should it show this menu instead of not showing anything?
[Q]

--
I hate rss, NM0.6x, atom, and xml. I love python, vala,and good documentation and APIs
Score: 0 points
Any particular reason?
#22398 by moonbeam (1.0000) posted on 3:40pm Saturday, May 31st, 2008
( no avatar )
tehkain said:
Awesome! I am going to have to untangle arss but otherwise I converted most of the python applets which catch a button3(right click) event to use this.
[Q]



Cool.
[Q]



tehkain said:
I am wondering are we trying to get all right clicks to show this menu? For example MediaControl does not do anything on a right click so should it show this menu instead of not showing anything?
[Q]



Yes we are. And yes it should :-)
[Q]
Score: 0 points
Any particular reason?
#22399 by asomething (0.9744) posted on 4:38pm Saturday, May 31st, 2008
Thanks for this. It's a great idea.
[Q]



In order to have some consistency, I think launchers should probably get this as well.
[Q]



One tiny issue that I've noticed is that a divider is placed both above and below the "Dock Preferences" item. As "Dock Preferences" is appended to the top of the list, the top divider isn't needed.
[Q]

Score: 0 points
Any particular reason?
#22400 by moonbeam (1.0000) posted on 4:41pm Saturday, May 31st, 2008
( no avatar )
asomething said:
Thanks for this. It's a great idea.
[Q]



I think it's been the plan for a long time... but I'm guessing njpatel just got distracted at some point :-)
[Q]



asomething said:
In order to have some consistency, I think launchers should probably get this as well.
[Q]



Yeah. Agreed. I'll have a look at some point in the next couple days if no one else gets around to it.
[Q]



asomething said:
One tiny issue that I've noticed is that a divider is placed both above and below the "Dock Preferences" item. As "Dock Preferences" is appended to the top of the list, the top divider isn't needed.
[Q]



Agreed.
[Q]

--
http://moon-shiny.blogspot.com/

*Edited at 4:43pm, 05/31/08
Score: 0 points
Any particular reason?
#22401 by moonbeam (1.0000) posted on 5:18pm Saturday, May 31st, 2008
( no avatar )
asomething said:
In order to have some consistency, I think launchers should probably get this as well.
[Q]



Done for launchers and tasks.
[Q]
Score: 0 points
Any particular reason?
#22405 by sharkbait (0.9200) posted on 11:29am Sunday, June 01st, 2008
This looks good. Maybe this could be expanded to include "Remove" and "Move", like Gnome Panel? (Obviously moving the applets left and right will have to be implemented first.) If "Remove" is selected, then the applet could simply be removed from GConf.
[Q]
Score: 0 points
Any particular reason?
#22406 by moonbeam (1.0000) posted on 11:52am Sunday, June 01st, 2008
( no avatar )
sharkbait said:
This looks good. Maybe this could be expanded to include "Remove" and "Move", like Gnome Panel? (Obviously moving the applets left and right will have to be implemented first.) If "Remove" is selected, then the applet could simply be removed from GConf.
[Q]



Definitely possible to do. I believe there are some plans to do some work on the menu design and I'm thinking both options will/should show up for discussion.
[Q]



Of particular note is that awn-manager needs to be fixed before either Remove or Move can be done.... it has the unfortunate belief that it is the only app that might change the applet_list.
[Q]
Score: 0 points
Any particular reason?
#22407 by tehkain (1.0000) posted on 5:53pm Sunday, June 01st, 2008
I was trying to implement this into a few more applets but some of them use AwnLib and as I discovered, with the help of Moonbeam, AwnLib handles dialogs. So I want to talk to Pavpanchekha about getting this into Awnlib.
[Q]

--
I hate rss, NM0.6x, atom, and xml. I love python, vala,and good documentation and APIs
Score: 0 points
Any particular reason?
#22408 by sharkbait (0.9200) posted on 7:35pm Sunday, June 01st, 2008
Another thought:
Maybe the "Dock Preferences" and separator should be after the applet's menu items. This could be achieved by making an AwnMenu widget or the like, which is basically just a normal GtkMenu, but when the menu is exposed (or realized), it checks for any menu items. If there are any, it adds a separator and the Dock Preferences item. If not, just Dock Preferences.
[Q]



Right now, some applets, such as MiMenu, media-*, and even the separator (if you click it right), display a menu with an unnecessary separator on right-click.
[Q]
Score: 0 points
Any particular reason?
#22409 by moonbeam (1.0000) posted on 7:40pm Sunday, June 01st, 2008
( no avatar )
sharkbait said:
Right now, some applets, such as MiMenu, media-*, and even the separator (if you click it right), display a menu with an unnecessary separator on right-click.
[Q]



I would anticipate that at some point in time all the applets will have an "about applet" menu item. Which will resolve that aesthetic issue... which I do agree doesn't look the greatest at the moment.
[Q]

--
http://moon-shiny.blogspot.com/

*Edited at 7:40pm, 06/01/08
Score: 0 points
Any particular reason?
#22412 by pavpanchekha (1.0000) posted on 8:22am Monday, June 02nd, 2008
tehkain said:
I was trying to implement this into a few more applets but some of them use AwnLib and as I discovered, with the help of Moonbeam, AwnLib handles dialogs. So I want to talk to Pavpanchekha about getting this into Awnlib.
[Q]



Go ahead :). What you'll want to do is look at Dialogs/init and create a menu property that is seeded with the default menu and add that to __registers (as the "menu" key). That should be a quick enough hack and work fairly well. (I might clean it later.
[Q]

Score: 0 points
Any particular reason?
#33695 by Josemari (0.9991) posted on 7:29am Saturday, June 02nd, 2012
( no avatar )
Absolutely everyone is longing for a designer watch but constantly restrained by the restricted bank account. In that situation, why not consider the connected replica watch of substantial excellent jacob&co melrose jewelers fake rolex ? It truly is the precise copy of the authentic model with just about every detail cautiously crafted. cheapest replica watches By the initial sight on the counterfeit watch, you might be prone to mistaken it a genuine piece.
[Q]

Score: 0 points
Any particular reason?
Thread Listing » AWN Applets » [Applet devs] Right click menus.

Post A Reply:

Powered by Metaforum ©2004-2012
Get your own Free AJAX Forum Messageboard by visiting the offical site.
.