GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Wed Oct 01, 2014 10:22 pm

All times are UTC




Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: Wed Dec 09, 2009 10:18 am 
Offline
GTK+ Geek

Joined: Thu Nov 12, 2009 1:49 pm
Posts: 51
Ok, I'll check that. I also found out that doing the following fixes the problem under Windows. If I reset modality to FALSE, and then to TRUE again right before opening the window, it works correctly, i.e.

Code:
static void safe_open_modal_window(GtkWidget *window)
{
   gtk_window_set_modal(GTK_WINDOW(window), FALSE);
   gtk_window_set_modal(GTK_WINDOW(window), TRUE);
   
   gtk_widget_show(window);
}


This fix also works with GtkFileChooserButton, except that I have to access the private field "dialog" in

Code:
struct _GtkFileChooserButtonPrivate
{
  GtkWidget *dialog;
....
};


Once I have a handle to the file dialog, I can then apply the patch by resetting modality using:

Code:
gtk_window_set_modal(GTK_WINDOW(dialog), FALSE);
gtk_window_set_modal(GTK_WINDOW(dialog), TRUE);


This works fine but of course it's a pretty hackish workaround so I should better file a Bugzilla report about it so that it hopefully gets fixed.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 11, 2009 10:12 am 
Offline
GTK+ Geek

Joined: Thu Nov 12, 2009 1:49 pm
Posts: 51
Quote:
Bad one is that client-side GdkWindows in GTK+ 2.18 really broke Windows version badly. I can get exactly the same behavior as you described - no notification is received when mouse is outside the application's window.


By the way, did you already file a Bugzilla report for this bug? Or do you know if someone else did? Otherwise, I should do this.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 11, 2009 2:06 pm 
Offline
Never Seen the Sunlight

Joined: Wed Jul 23, 2008 10:31 am
Posts: 2406
Location: Slovenia
Hello.

As far as I can tell after a quick search on GTK+ bugzilla, there is no such bug reported. I would suggest that you fill this bug since you're the one who found it. A minimalistic example attached to the bug report will make developers even happier;)

Tadej


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


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