diff options
author | Soeren Sandmann <sandmann@daimi.au.dk> | 2003-07-08 18:59:16 +0000 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@src.gnome.org> | 2003-07-08 18:59:16 +0000 |
commit | 81785924f9cc9e9edf817a85fd62aff1e44f3117 (patch) | |
tree | 3ee8959613e7cab3150008fd07eb894598fce6eb | |
parent | 7913e63f692a7f7b155fe07246d69c58f4087688 (diff) | |
download | gtk+-81785924f9cc9e9edf817a85fd62aff1e44f3117.tar.gz |
remove GDK_EXPOSURE_MASK for INPUT_ONLY window same same same same
Tue Jul 8 21:10:14 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtkbutton.c (gtk_button_realize): remove GDK_EXPOSURE_MASK
for INPUT_ONLY window
* gtk/gtkmenuitem.c (gtk_menu_item_realize): same
* gtk/gtknotebook.c (gtk_notebook_realize): same
* gtk/gtkexpander.c (gtk_expander_realize): same
* gtk/gtkrange.c (gtk_range_realize): same
Fix #116303
-rw-r--r-- | ChangeLog | 11 | ||||
-rw-r--r-- | ChangeLog.pre-2-10 | 11 | ||||
-rw-r--r-- | ChangeLog.pre-2-4 | 11 | ||||
-rw-r--r-- | ChangeLog.pre-2-6 | 11 | ||||
-rw-r--r-- | ChangeLog.pre-2-8 | 11 | ||||
-rw-r--r-- | gtk/gtkbutton.c | 3 | ||||
-rw-r--r-- | gtk/gtkexpander.c | 1 | ||||
-rw-r--r-- | gtk/gtkmenuitem.c | 1 | ||||
-rw-r--r-- | gtk/gtknotebook.c | 2 | ||||
-rw-r--r-- | gtk/gtkrange.c | 3 | ||||
-rw-r--r-- | gtk/gtktoolbar.c | 7 |
11 files changed, 59 insertions, 13 deletions
@@ -1,3 +1,14 @@ +Tue Jul 8 21:10:14 2003 Soeren Sandmann <sandmann@daimi.au.dk> + + * gtk/gtkbutton.c (gtk_button_realize): remove GDK_EXPOSURE_MASK + for INPUT_ONLY window + * gtk/gtkmenuitem.c (gtk_menu_item_realize): same + * gtk/gtknotebook.c (gtk_notebook_realize): same + * gtk/gtkexpander.c (gtk_expander_realize): same + * gtk/gtkrange.c (gtk_range_realize): same + + Fix #116303 + Tue Jul 8 19:57:14 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkstyle.c (gtk_default_draw_arrow): remove correction on x diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index b36533d6b9..7598ae8261 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,14 @@ +Tue Jul 8 21:10:14 2003 Soeren Sandmann <sandmann@daimi.au.dk> + + * gtk/gtkbutton.c (gtk_button_realize): remove GDK_EXPOSURE_MASK + for INPUT_ONLY window + * gtk/gtkmenuitem.c (gtk_menu_item_realize): same + * gtk/gtknotebook.c (gtk_notebook_realize): same + * gtk/gtkexpander.c (gtk_expander_realize): same + * gtk/gtkrange.c (gtk_range_realize): same + + Fix #116303 + Tue Jul 8 19:57:14 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkstyle.c (gtk_default_draw_arrow): remove correction on x diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index b36533d6b9..7598ae8261 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,14 @@ +Tue Jul 8 21:10:14 2003 Soeren Sandmann <sandmann@daimi.au.dk> + + * gtk/gtkbutton.c (gtk_button_realize): remove GDK_EXPOSURE_MASK + for INPUT_ONLY window + * gtk/gtkmenuitem.c (gtk_menu_item_realize): same + * gtk/gtknotebook.c (gtk_notebook_realize): same + * gtk/gtkexpander.c (gtk_expander_realize): same + * gtk/gtkrange.c (gtk_range_realize): same + + Fix #116303 + Tue Jul 8 19:57:14 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkstyle.c (gtk_default_draw_arrow): remove correction on x diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index b36533d6b9..7598ae8261 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,14 @@ +Tue Jul 8 21:10:14 2003 Soeren Sandmann <sandmann@daimi.au.dk> + + * gtk/gtkbutton.c (gtk_button_realize): remove GDK_EXPOSURE_MASK + for INPUT_ONLY window + * gtk/gtkmenuitem.c (gtk_menu_item_realize): same + * gtk/gtknotebook.c (gtk_notebook_realize): same + * gtk/gtkexpander.c (gtk_expander_realize): same + * gtk/gtkrange.c (gtk_range_realize): same + + Fix #116303 + Tue Jul 8 19:57:14 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkstyle.c (gtk_default_draw_arrow): remove correction on x diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index b36533d6b9..7598ae8261 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,14 @@ +Tue Jul 8 21:10:14 2003 Soeren Sandmann <sandmann@daimi.au.dk> + + * gtk/gtkbutton.c (gtk_button_realize): remove GDK_EXPOSURE_MASK + for INPUT_ONLY window + * gtk/gtkmenuitem.c (gtk_menu_item_realize): same + * gtk/gtknotebook.c (gtk_notebook_realize): same + * gtk/gtkexpander.c (gtk_expander_realize): same + * gtk/gtkrange.c (gtk_range_realize): same + + Fix #116303 + Tue Jul 8 19:57:14 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkstyle.c (gtk_default_draw_arrow): remove correction on x diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c index 84ebed24ea..ba8ffee66d 100644 --- a/gtk/gtkbutton.c +++ b/gtk/gtkbutton.c @@ -630,8 +630,7 @@ gtk_button_realize (GtkWidget *widget) attributes.height = widget->allocation.height - border_width * 2; attributes.wclass = GDK_INPUT_ONLY; attributes.event_mask = gtk_widget_get_events (widget); - attributes.event_mask |= (GDK_EXPOSURE_MASK | - GDK_BUTTON_PRESS_MASK | + attributes.event_mask |= (GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_ENTER_NOTIFY_MASK | GDK_LEAVE_NOTIFY_MASK); diff --git a/gtk/gtkexpander.c b/gtk/gtkexpander.c index cef9dc6427..1a086d2f24 100644 --- a/gtk/gtkexpander.c +++ b/gtk/gtkexpander.c @@ -358,7 +358,6 @@ gtk_expander_realize (GtkWidget *widget) attributes.height = widget->allocation.height - 2 * border_width; attributes.wclass = GDK_INPUT_ONLY; attributes.event_mask = gtk_widget_get_events (widget) | - GDK_EXPOSURE_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_ENTER_NOTIFY_MASK | diff --git a/gtk/gtkmenuitem.c b/gtk/gtkmenuitem.c index 9eba559729..a2a98a9cda 100644 --- a/gtk/gtkmenuitem.c +++ b/gtk/gtkmenuitem.c @@ -606,7 +606,6 @@ gtk_menu_item_realize (GtkWidget *widget) attributes.window_type = GDK_WINDOW_CHILD; attributes.wclass = GDK_INPUT_ONLY; attributes.event_mask = (gtk_widget_get_events (widget) | - GDK_EXPOSURE_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_ENTER_NOTIFY_MASK | diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index ef10ada01e..333428fa76 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -1116,7 +1116,7 @@ gtk_notebook_realize (GtkWidget *widget) attributes.height = event_window_pos.height; attributes.wclass = GDK_INPUT_ONLY; attributes.event_mask = gtk_widget_get_events (widget); - attributes.event_mask |= (GDK_EXPOSURE_MASK | GDK_BUTTON_PRESS_MASK | + attributes.event_mask |= (GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_KEY_PRESS_MASK); attributes_mask = GDK_WA_X | GDK_WA_Y; diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c index 5ceaa7d10f..f29a7f249b 100644 --- a/gtk/gtkrange.c +++ b/gtk/gtkrange.c @@ -799,8 +799,7 @@ gtk_range_realize (GtkWidget *widget) attributes.height = widget->allocation.height; attributes.wclass = GDK_INPUT_ONLY; attributes.event_mask = gtk_widget_get_events (widget); - attributes.event_mask |= (GDK_EXPOSURE_MASK | - GDK_BUTTON_PRESS_MASK | + attributes.event_mask |= (GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_ENTER_NOTIFY_MASK | GDK_LEAVE_NOTIFY_MASK | diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c index e5354e5564..a2e74800e8 100644 --- a/gtk/gtktoolbar.c +++ b/gtk/gtktoolbar.c @@ -680,12 +680,7 @@ gtk_toolbar_realize (GtkWidget *widget) attributes.width = widget->allocation.width - border_width * 2; attributes.height = widget->allocation.height - border_width * 2; attributes.event_mask = gtk_widget_get_events (widget); - /* FIXME: does GDK_EXPOSURE_MASK make sense for an input-only window? - * If it doesn't, then it should be removed here and in gtkbutton.c, - * gtkmenuitem.c, and maybe other places - */ - attributes.event_mask |= (GDK_EXPOSURE_MASK | - GDK_BUTTON_PRESS_MASK | + attributes.event_mask |= (GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_ENTER_NOTIFY_MASK | GDK_LEAVE_NOTIFY_MASK); |