Return FALSE not true in the grab_widget == NULL case. (Bug reported by

Sat Jan 26 19:04:37 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkmain.c (check_is_grabbed): Return FALSE not true
	in the grab_widget == NULL case. (Bug reported by
	Padraig O'Briain, #69735)

	* gtk/gtkplug.c (handle_modality_on): Realize the modality
	window so gtk_widget_event() doesn't complain :-((((.
This commit is contained in:
Owen Taylor 2002-01-27 00:19:31 +00:00 committed by Owen Taylor
parent 2ca60b920b
commit 887c5ad832
9 changed files with 65 additions and 1 deletions

View File

@ -1,3 +1,12 @@
Sat Jan 26 19:04:37 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmain.c (check_is_grabbed): Return FALSE not true
in the grab_widget == NULL case. (Bug reported by
Padraig O'Briain, #69735)
* gtk/gtkplug.c (handle_modality_on): Realize the modality
window so gtk_widget_event() doesn't complain :-((((.
2002-01-25 Federico Mena Quintero <federico@ximian.com>
Merge from gdk-pixbuf stable.

View File

@ -1,3 +1,12 @@
Sat Jan 26 19:04:37 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmain.c (check_is_grabbed): Return FALSE not true
in the grab_widget == NULL case. (Bug reported by
Padraig O'Briain, #69735)
* gtk/gtkplug.c (handle_modality_on): Realize the modality
window so gtk_widget_event() doesn't complain :-((((.
2002-01-25 Federico Mena Quintero <federico@ximian.com>
Merge from gdk-pixbuf stable.

View File

@ -1,3 +1,12 @@
Sat Jan 26 19:04:37 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmain.c (check_is_grabbed): Return FALSE not true
in the grab_widget == NULL case. (Bug reported by
Padraig O'Briain, #69735)
* gtk/gtkplug.c (handle_modality_on): Realize the modality
window so gtk_widget_event() doesn't complain :-((((.
2002-01-25 Federico Mena Quintero <federico@ximian.com>
Merge from gdk-pixbuf stable.

View File

@ -1,3 +1,12 @@
Sat Jan 26 19:04:37 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmain.c (check_is_grabbed): Return FALSE not true
in the grab_widget == NULL case. (Bug reported by
Padraig O'Briain, #69735)
* gtk/gtkplug.c (handle_modality_on): Realize the modality
window so gtk_widget_event() doesn't complain :-((((.
2002-01-25 Federico Mena Quintero <federico@ximian.com>
Merge from gdk-pixbuf stable.

View File

@ -1,3 +1,12 @@
Sat Jan 26 19:04:37 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmain.c (check_is_grabbed): Return FALSE not true
in the grab_widget == NULL case. (Bug reported by
Padraig O'Briain, #69735)
* gtk/gtkplug.c (handle_modality_on): Realize the modality
window so gtk_widget_event() doesn't complain :-((((.
2002-01-25 Federico Mena Quintero <federico@ximian.com>
Merge from gdk-pixbuf stable.

View File

@ -1,3 +1,12 @@
Sat Jan 26 19:04:37 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmain.c (check_is_grabbed): Return FALSE not true
in the grab_widget == NULL case. (Bug reported by
Padraig O'Briain, #69735)
* gtk/gtkplug.c (handle_modality_on): Realize the modality
window so gtk_widget_event() doesn't complain :-((((.
2002-01-25 Federico Mena Quintero <federico@ximian.com>
Merge from gdk-pixbuf stable.

View File

@ -1,3 +1,12 @@
Sat Jan 26 19:04:37 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmain.c (check_is_grabbed): Return FALSE not true
in the grab_widget == NULL case. (Bug reported by
Padraig O'Briain, #69735)
* gtk/gtkplug.c (handle_modality_on): Realize the modality
window so gtk_widget_event() doesn't complain :-((((.
2002-01-25 Federico Mena Quintero <federico@ximian.com>
Merge from gdk-pixbuf stable.

View File

@ -1169,7 +1169,7 @@ check_is_grabbed (GtkWidget *widget,
if (grab_widget)
return !(widget == grab_widget || gtk_widget_is_ancestor (widget, grab_widget));
else
return TRUE;
return FALSE;
}
static void

View File

@ -916,6 +916,7 @@ handle_modality_on (GtkPlug *plug)
if (!plug->modality_window)
{
plug->modality_window = gtk_window_new (GTK_WINDOW_POPUP);
gtk_widget_realize (plug->modality_window);
gtk_window_group_add_window (plug->modality_group, GTK_WINDOW (plug->modality_window));
gtk_grab_add (plug->modality_window);
}