Re: Custom Titlebar



I am using GTK+ 3 on Window XP (SP2).
So, when I call gtk_window_set_titlebar it raises an exception that no
gtk_window_set_titlebar function found.

I know there is one another way to add a custom title-bar to my
application. i.e
Set the decorating to false by calling: set_decorated(False) and add my own
widget on top of my application.
But then the problem is that, I can't add the dragging functionality to my
widget. So, that I drag my application on window screen.
There is also one function for this functionality begin_move_drag(*button*,
*root_x*, *root_y*, *timestamp*) But I don't know, how to use it.


On Tue, Aug 12, 2014 at 12:48 AM, Emmanuele Bassi <ebassi gmail com> wrote:

On 11 August 2014 22:50, Michael Cronenworth <mike cchtml com> wrote:
On 08/11/2014 04:40 PM, David Nečas wrote:

Unless you are running someting like Gnome 3(?), this will add a
strangely looking thing to the top of your window, but inside.  It will
not change the title bar which is controlled by the window manager.

only if your window manager is actually broken, and does not support
Motif hints like it should.

That's why I did not recommend this to the OP.

Is that call even supported on win32?

yes, and it actually works better than on sub-par window managers for
Linux.

http://blogs.gnome.org/nacho/files/2014/07/gedit-windows2.jpeg

ciao,
 Emmanuele.

--
http://www.bassi.io
[ ] ebassi [ gmail com]
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]