Technical discussions | Discussions techniques
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!) |
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.) |
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. |
Subscription date : 28 October 2009
Messages : 415
|
You do that in C i suppose? |
Subscription date : 30 November 2007
Messages : 17118
|
in C and probably in python as well |
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
|