Thunar Context menus....

View: New views
3 Messages — Rating Filter:   Alert me  

Thunar Context menus....

by hewnix :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I would like to change thunar's "right click" context menus, but I'm noy
real sure where to start. I understand the plugin methods, but I wish to
change a few things that *seem* to be hardwired - like, for instance, I
would like to:

1. remove the "new document" submenu *(from template),

2. remove the "Open with" submenu

3. rewrite the "Create Folder..." menu

4. Change the verbage for the default "Open/Execute" menu

That said, I have to confess I am not sure of where to start to look. I
assume it is hardcoded into the program (not from a config file) and if
I had a clue where in the source I was looking, I could begin to see if
I can make these changes.

Could someone do me a favor and point me in the right direction?

TIA

WPH
_______________________________________________
Thunar-dev mailing list
Thunar-dev@...
http://foo-projects.org/mailman/listinfo/thunar-dev

Re: Thunar Context menus....

by Jelle de Jong :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hewnix wrote:

> I would like to change thunar's "right click" context menus, but I'm noy
> real sure where to start. I understand the plugin methods, but I wish to
> change a few things that *seem* to be hardwired - like, for instance, I
> would like to:
>
> 1. remove the "new document" submenu *(from template),
>
> 2. remove the "Open with" submenu
>
> 3. rewrite the "Create Folder..." menu
>
> 4. Change the verbage for the default "Open/Execute" menu
>
> That said, I have to confess I am not sure of where to start to look. I
> assume it is hardcoded into the program (not from a config file) and if
> I had a clue where in the source I was looking, I could begin to see if
> I can make these changes.
>
> Could someone do me a favor and point me in the right direction?
>
> TIA
>
> WPH

Maybe you can help with our thunar-action-plugin system that we have
been working on. Currently we are trying to merge it with the svn but it
takes a while to do this, also the program is still far from functional
so help is appreciated.

http://thunar.xfce.org/pwiki/projects/thunar-actions-plugin

Kind regards,

Jelle
_______________________________________________
Thunar-dev mailing list
Thunar-dev@...
http://foo-projects.org/mailman/listinfo/thunar-dev

Re: Thunar Context menus....

by Benedikt Meurer-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hewnix wrote:

> I would like to change thunar's "right click" context menus, but I'm noy
> real sure where to start. I understand the plugin methods, but I wish to
> change a few things that *seem* to be hardwired - like, for instance, I
> would like to:
>
> 1. remove the "new document" submenu *(from template),
>
> 2. remove the "Open with" submenu
>
> 3. rewrite the "Create Folder..." menu
>
> 4. Change the verbage for the default "Open/Execute" menu
>
> That said, I have to confess I am not sure of where to start to look. I
> assume it is hardcoded into the program (not from a config file) and if
> I had a clue where in the source I was looking, I could begin to see if
> I can make these changes.
>
> Could someone do me a favor and point me in the right direction?

The context menus are generated from GtkActions using the GtkUIManager.
Therefore the stuff is added in different places in the source, I
suggest you start with the ThunarWindow and ThunarStandardView (check
the ui.xml files).

> TIA
> WPH

Benedikt
_______________________________________________
Thunar-dev mailing list
Thunar-dev@...
http://foo-projects.org/mailman/listinfo/thunar-dev
LightInTheBox - Buy quality products at wholesale price