GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Fri Nov 27, 2015 10:02 am

All times are UTC

Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: PHP GTK 2 Doubts
PostPosted: Mon Nov 18, 2013 7:39 pm 

Joined: Fri Nov 15, 2013 6:35 pm
Posts: 1
Hello Admin

Doubt 1: Is there any way to put colored borders around the window (with decoration off).

Doubt 2: Is there any way to prevent moving the window, without setting decoration off ?

Doubt 3: My application is crashing with the following error
(GDR:EROR:gdkevents-win32.c:1649:_gdk_win32_begin_modal_call: assertion failed : !_modal_operation_in_progress))
I replicated this issue with a simple gtk application (no mysql connection, no buttons/events etc), with just combination of hiding and moving the window.

I found few places where this issues has been discussed, but no solution has been provided:
- ... itsizemove
- ... 19468.html
Seems to be a flaw in the code architecture in this class : gdkevents-win32.c

Please help.


 Post subject: Re: PHP GTK 2 Doubts
PostPosted: Thu Nov 21, 2013 9:10 am 
Never Seen the Sunlight

Joined: Mon Apr 28, 2008 5:52 am
Posts: 924
Location: UK

GTK can not put a border outside of its windows, but you can place a border inside the window which you can have coloured and place all your widgets inside that.

GTK makes suggestions to the window manager about window decorations and placement. These hints are not always obeyed. The function you need to use to set placement hints is
void                gdk_window_set_functions            (GdkWindow *window,
                                                         GdkWMFunction functions);
Documentation on how you can use it can be found at This may not work and depending on what you are doing it may be best to leave the user to be free to move the windows to where they like.

I do not use Microsoft Windows so can not help you with your final problem.


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group