Intercept events of type GDK_SETTING before we check to see if there was

Thu Dec 12 18:02:34 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkmain.c (gtk_main_do_event): Intercept events
        of type GDK_SETTING before we check to see if there
        was an event widget or not. (#97451, Simon Wong,
        Bastien Nocera)
This commit is contained in:
Owen Taylor 2002-12-12 23:07:45 +00:00 committed by Owen Taylor
parent 7264fdb06a
commit e4fc95abb1
7 changed files with 48 additions and 2 deletions

View File

@ -1,3 +1,10 @@
Thu Dec 12 18:02:34 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmain.c (gtk_main_do_event): Intercept events
of type GDK_SETTING before we check to see if there
was an event widget or not. (#97451, Simon Wong,
Bastien Nocera)
Thu Dec 12 17:58:41 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.key.emacs: Add C-u/C-h/C-w. (#72245)

View File

@ -1,3 +1,10 @@
Thu Dec 12 18:02:34 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmain.c (gtk_main_do_event): Intercept events
of type GDK_SETTING before we check to see if there
was an event widget or not. (#97451, Simon Wong,
Bastien Nocera)
Thu Dec 12 17:58:41 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.key.emacs: Add C-u/C-h/C-w. (#72245)

View File

@ -1,3 +1,10 @@
Thu Dec 12 18:02:34 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmain.c (gtk_main_do_event): Intercept events
of type GDK_SETTING before we check to see if there
was an event widget or not. (#97451, Simon Wong,
Bastien Nocera)
Thu Dec 12 17:58:41 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.key.emacs: Add C-u/C-h/C-w. (#72245)

View File

@ -1,3 +1,10 @@
Thu Dec 12 18:02:34 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmain.c (gtk_main_do_event): Intercept events
of type GDK_SETTING before we check to see if there
was an event widget or not. (#97451, Simon Wong,
Bastien Nocera)
Thu Dec 12 17:58:41 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.key.emacs: Add C-u/C-h/C-w. (#72245)

View File

@ -1,3 +1,10 @@
Thu Dec 12 18:02:34 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmain.c (gtk_main_do_event): Intercept events
of type GDK_SETTING before we check to see if there
was an event widget or not. (#97451, Simon Wong,
Bastien Nocera)
Thu Dec 12 17:58:41 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.key.emacs: Add C-u/C-h/C-w. (#72245)

View File

@ -1,3 +1,10 @@
Thu Dec 12 18:02:34 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmain.c (gtk_main_do_event): Intercept events
of type GDK_SETTING before we check to see if there
was an event widget or not. (#97451, Simon Wong,
Bastien Nocera)
Thu Dec 12 17:58:41 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.key.emacs: Add C-u/C-h/C-w. (#72245)

View File

@ -1351,6 +1351,12 @@ gtk_main_do_event (GdkEvent *event)
if (next_event)
gdk_event_free (next_event);
if (event->type == GDK_SETTING)
{
_gtk_settings_handle_event (&event->setting);
return;
}
/* Find the widget which got the event. We store the widget
* in the user_data field of GdkWindow's.
* Ignore the event if we don't have a widget for it, except
@ -1370,8 +1376,6 @@ gtk_main_do_event (GdkEvent *event)
if (event->type == GDK_PROPERTY_NOTIFY)
_gtk_selection_incr_event (event->any.window,
&event->property);
else if (event->type == GDK_SETTING)
_gtk_settings_handle_event (&event->setting);
return;
}