Re: Setting Window properties in Gtk3 (gi.repository) like Gdk.gdk.Window.property_change ?
- From: John Lane <john lane uk net>
- To: python-hackers-list gnome org
- Subject: Re: Setting Window properties in Gtk3 (gi.repository) like Gdk.gdk.Window.property_change ?
- Date: Wed, 22 Feb 2017 13:33:39 +0000
On 22/02/17 13:13, Infirit wrote:
In sofar I understand your question, you will want to set the type hint.
see
https://lazka.github.io/pgi-docs/#Gdk-3.0/classes/Window.html#Gdk.Window.set_type_hint
I'm already doing that, see examples linked in my original post:
self.set_type_hint(Gdk.WindowTypeHint.DOCK)
But I also need to set the _NET_WM_STRUT_PARTIAL property to reserve space:
window.get_toplevel().window.property_change("_NET_WM_STRUT_PARTIAL","CARDINAL",32,gtk.gdk.PROP_MODE_REPLACE,
[0, 0, size, 0, 0, 0, 0, 0, x, x+width-1, 0, 0])
I can do this in Gtk2 but not in Gtk3.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]