Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Technical discussions | Discussions techniques reserving screen space
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)
Technical discussions | Discussions techniques

Subjects Author Language Messages Last message
[Locked] reserving screen space
jesuisbenjamin English 6 jesuisbenjamin [Read]
30 May 2011 à 13:02

jesuisbenjamin, Thursday 26 May 2011 à 17:10


Subscription date : 28 October 2009
Messages : 415
Hello,

Is CD based on Gtk at all?
How do you do to reserve space on the screen for the dock?

Thanks,
Benjamin

matttbe, Thursday 26 May 2011 à 22:47


Subscription date : 24 January 2009
Messages : 12573
Hello

CD uses GTK for the menus and the config panel (and indirectly by using gtkgltext) but if you want to reserve space for a window, you can also use some Xorg functions (but GTK can also do that for a window created with GTK (like Qt, Java, etc.)).

(@fabounet: correct me if I'm wrong!)

jesuisbenjamin, Thursday 26 May 2011 à 23:53


Subscription date : 28 October 2009
Messages : 415
Well i am curious about the Xorg functions you are talking about, how can i do that with python?
(I know how to reserve space with Gtk+2 but Gtk+3 with PyGI is badly documented and i just can't figure out how to do it. With Qt i don't know either, i bombarded forums with regard to this, but no-one seems to know.)

fabounet, Friday 27 May 2011 à 13:00


Subscription date : 30 November 2007
Messages : 17118
yep we talk to X directly to do some operations, like reserving the space (with the atom _NET_WM_STRUT_PARTIAL)
there is maybe a function that does that in gdk/gtk, but when I checked I didn't find one.

jesuisbenjamin, Friday 27 May 2011 à 13:13


Subscription date : 28 October 2009
Messages : 415
You do that in C i suppose?

fabounet, Monday 30 May 2011 à 12:47


Subscription date : 30 November 2007
Messages : 17118
in C and probably in python as well

jesuisbenjamin, Monday 30 May 2011 à 13:02


Subscription date : 28 October 2009
Messages : 415
fabounet :
in C and probably in python as well


Gtk+3 with PyGI doesn't offer this possibility (it's been confirmed to me). I got to see with Xlib instead.
Thanks.

Technical discussions | Discussions techniques

Subjects Author Language Messages Last message
[Locked] reserving screen space
jesuisbenjamin English 6 jesuisbenjamin [Read]
30 May 2011 à 13:02


Glx-Dock / Cairo-Dock List of forums Technical discussions | Discussions techniques reserving screen space 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.