Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Ideas | Propositions My first patch for 3.1 : Tweak a few things in the menu:
The latest stable release is the *3.4.0* : How to install it here.
Note: We just switched from BZR to Git on Github! (only to host the code and your future pull requests)
Ideas | Propositions

Subjects Author Language Messages Last message
[Locked] My first patch for 3.1 : Tweak a few things in the menu:
SQP English 4 matttbe [Read]
17 November 2012 à 12:13

SQP, Tuesday 23 October 2012 à 22:12


Subscription date : 03 July 2010
Messages : 1081
I'm not sure this will reach the core, but at least I have a cleaner and more efficient menu.

http://uppix.net/d/1/e/e14c9038ea061d91db2b41a911d6e.png

  • Move the 'Launch a new' option to a small window action (with minimize and close) for the GTK3 version
  • Moved option 'Make it a launcher' from icon submenu where it was alone to 'window other actions' submenu. Maybe it can be grouped with the 'Set a custom icon' option (those should be only available for taskbar applications).
  • Hide a few options while in 'lock icons' mode:
      • Cairo-Dock Submenu:
          • Add submenu.
          • More applets.
      • Icon submenu: All options except Edit are related to icon management. (icon handbook could be missed, but it's still in the applet config first page, see next).
  • Added option in 'lock icons' mode:
      • Cairo-Dock Submenu: added option 'Edit icon' to still get access to options. In fact it's just back to it's original location.


I guess that behaviour could be improved by temporary disable the lock with the control key modifier. I'll look into that.

Note: the test to detect the taskbar application (or not) in cairo_dock_notification_build_container_menu line 880 & 1025 may be improved.

branch lp:~sqp/cairo-dock-core/menu-locked-cleaner

fabounet, Thursday 25 October 2012 à 16:30


Subscription date : 30 November 2007
Messages : 17118
Move the 'Launch a new' option to a small window action (with minimize and close) for the GTK3 version

that could be nice, although in the sub-menu, it's the "symetric" of the "new instance" for applets.

Moved option 'Make it a launcher' from icon submenu where it was alone to 'window other actions' submenu. Maybe it can be grouped with the 'Set a custom icon' option (those should be only available for taskbar applications).

like above, the "Make it a launcher" is the "symetric" of the "edit" action for launchers.

Actually I've moved the "Set a custom icon" in this sub-menu too, because it was not an action on the window, it was more a configuration feature

Hide a few options while in 'lock icons' mode:

I'm not really into this, because the "lock icons" option is actually just a way to prevent from moving/deleting icons, it's not a global lock (like there used to be)
So if we want to apply these changes, we would need a "global lock", and then the "Edit" entry should disappear as well.

But I don't like it a lot, because I think it's nice to have the clicked icon in the menu (it makes easier to confirm you clicked on the right icon).

that's my own point of view, what do you think guys ?

matttbe, Friday 26 October 2012 à 00:15


Subscription date : 24 January 2009
Messages : 12573
Hello and thank you for this patch

I see that you like modifying "sensible" things

Fabounet :
SQP :
Move the 'Launch a new' option to a small window action (with minimize and close) for the GTK3 version
that could be nice, although in the sub-menu, it's the "symetric" of the "new instance" for applets.
Yes, I agree with Fab. That could be nice but it's interesting to have the name and the image of the clicked icon (and it's interesting to see that we can use 'Shift+Click')
But also I think it's not a good idea to modify the behaviour of the dock (except if it's not a "detail" or to remove something that it's not used --> I think it's better to minimise these changes and having the opinion of several people)

Hide a few options while in 'lock icons' mode:
Yes it's important to see the difference between 'lock the dock' (cairo-dock -k) and 'lock icons position'. Or do you want to add a new menu entry to lock the dock?

SQP, Thursday 15 November 2012 à 09:51


Subscription date : 03 July 2010
Messages : 1081
But also I think it's not a good idea to modify the behaviour of the dock

bad idea to modify it once more you wanted to say ?

I now know what's the problem since the last menu change: having the edit icon in the second submenu is the worst idea ever. It's the only static option I use and having to select a submenu to reach it makes working on the dock really less pleasant.

I think it's better to minimise these changes and having the opinion of several people

I think opinions weren't listened when the menu was changed. I'm just putting it back in place.

I'm not really into this, because the "lock icons" option is actually just a way to prevent from moving/deleting icons


sounds like an arbitrary decision.

it's not a global lock (like there used to be)

call it a regression.

So if we want to apply these changes, we would need a "global lock", and then the "Edit" entry should disappear as well.

I just removed options that made no sense in a "Lock Icons position" mode (add/move/remove).
Edit icon, while its name could be improved, makes perfect sense with this definition.

matttbe, Saturday 17 November 2012 à 12:13


Subscription date : 24 January 2009
Messages : 12573
bad idea to modify it once more you wanted to say ?
Yes. I'm thinking to "old" people, these people that are completely lost when something changes even if it's a detail... I understand that it can be better to change some details but if it's just a "details", it's maybe better to wait for bigger changes before changing these details right now. What do you think about that?

It's the only static option I use and having to select a submenu to reach it makes working on the dock really less pleasant.
Yes but these options are regrouped into a single submenu and I think it's not an option that we (should) use everyday. And we can keep these options even if the position of the icons are locked.

I just removed options that made no sense in a "Lock Icons position" mode (add/move/remove).
I don't agree with you As we said last year, this "Lock Icons position" mode is just here to avoid moving icon by drag'n drop (because it's easy to do that by mistake). But it can be interesting to still have the possibility to edit a launcher, add elements into the dock, etc. It's not something that we can do unintentionally.
If you want to lock the dock, you can use the '--locked/-k' option but I don't understand why you want to lock all the dock (except for computers which are used by a lot of people or by grand-parents ).

Ideas | Propositions

Subjects Author Language Messages Last message
[Locked] My first patch for 3.1 : Tweak a few things in the menu:
SQP English 4 matttbe [Read]
17 November 2012 à 12:13


Glx-Dock / Cairo-Dock List of forums Ideas | Propositions My first patch for 3.1 : Tweak a few things in the menu: Top

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2013 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence. First stable version created by Fabounet.
Many thanks to TuxFamily for the web Hosting and Mav for the domain name.