ref/unref around gtk_widget_event() if we are going to set a flag

Thu Nov  1 19:56:40 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkmain.c (gtk_main_do_event): ref/unref
	around gtk_widget_event() if we are going to
	set a flag afterwards. (#63464)
This commit is contained in:
Owen Taylor 2001-11-02 01:00:40 +00:00 committed by Owen Taylor
parent 05969ed566
commit 55676c57bd
8 changed files with 46 additions and 0 deletions

View File

@ -1,3 +1,9 @@
Thu Nov 1 19:56:40 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmain.c (gtk_main_do_event): ref/unref
around gtk_widget_event() if we are going to
set a flag afterwards. (#63464)
Thu Nov 1 19:44:48 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkiconfactory.c gtk/stock-icons/Makefile.am:

View File

@ -1,3 +1,9 @@
Thu Nov 1 19:56:40 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmain.c (gtk_main_do_event): ref/unref
around gtk_widget_event() if we are going to
set a flag afterwards. (#63464)
Thu Nov 1 19:44:48 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkiconfactory.c gtk/stock-icons/Makefile.am:

View File

@ -1,3 +1,9 @@
Thu Nov 1 19:56:40 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmain.c (gtk_main_do_event): ref/unref
around gtk_widget_event() if we are going to
set a flag afterwards. (#63464)
Thu Nov 1 19:44:48 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkiconfactory.c gtk/stock-icons/Makefile.am:

View File

@ -1,3 +1,9 @@
Thu Nov 1 19:56:40 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmain.c (gtk_main_do_event): ref/unref
around gtk_widget_event() if we are going to
set a flag afterwards. (#63464)
Thu Nov 1 19:44:48 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkiconfactory.c gtk/stock-icons/Makefile.am:

View File

@ -1,3 +1,9 @@
Thu Nov 1 19:56:40 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmain.c (gtk_main_do_event): ref/unref
around gtk_widget_event() if we are going to
set a flag afterwards. (#63464)
Thu Nov 1 19:44:48 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkiconfactory.c gtk/stock-icons/Makefile.am:

View File

@ -1,3 +1,9 @@
Thu Nov 1 19:56:40 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmain.c (gtk_main_do_event): ref/unref
around gtk_widget_event() if we are going to
set a flag afterwards. (#63464)
Thu Nov 1 19:44:48 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkiconfactory.c gtk/stock-icons/Makefile.am:

View File

@ -1,3 +1,9 @@
Thu Nov 1 19:56:40 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmain.c (gtk_main_do_event): ref/unref
around gtk_widget_event() if we are going to
set a flag afterwards. (#63464)
Thu Nov 1 19:44:48 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkiconfactory.c gtk/stock-icons/Makefile.am:

View File

@ -1089,9 +1089,13 @@ gtk_main_do_event (GdkEvent *event)
case GDK_ENTER_NOTIFY:
if (GTK_WIDGET_IS_SENSITIVE (grab_widget))
{
g_object_ref (event_widget);
gtk_widget_event (grab_widget, event);
if (event_widget == grab_widget)
GTK_PRIVATE_SET_FLAG (event_widget, GTK_LEAVE_PENDING);
g_object_unref (event_widget);
}
break;