forked from AuroraMiddleware/gtk
minor code cleanup
Wed Feb 27 23:02:55 2002 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkhandlebox.c (gtk_handle_box_realize): minor code cleanup
This commit is contained in:
parent
90b7a9f68a
commit
27b1d120e8
@ -1,3 +1,7 @@
|
|||||||
|
Wed Feb 27 23:02:55 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||||
|
|
||||||
|
* gtk/gtkhandlebox.c (gtk_handle_box_realize): minor code cleanup
|
||||||
|
|
||||||
Wed Feb 27 14:58:12 2002 Owen Taylor <otaylor@redhat.com>
|
Wed Feb 27 14:58:12 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkmenubar.c (gtk_menu_bar_size_request/allocate):
|
* gtk/gtkmenubar.c (gtk_menu_bar_size_request/allocate):
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
Wed Feb 27 23:02:55 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||||
|
|
||||||
|
* gtk/gtkhandlebox.c (gtk_handle_box_realize): minor code cleanup
|
||||||
|
|
||||||
Wed Feb 27 14:58:12 2002 Owen Taylor <otaylor@redhat.com>
|
Wed Feb 27 14:58:12 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkmenubar.c (gtk_menu_bar_size_request/allocate):
|
* gtk/gtkmenubar.c (gtk_menu_bar_size_request/allocate):
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
Wed Feb 27 23:02:55 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||||
|
|
||||||
|
* gtk/gtkhandlebox.c (gtk_handle_box_realize): minor code cleanup
|
||||||
|
|
||||||
Wed Feb 27 14:58:12 2002 Owen Taylor <otaylor@redhat.com>
|
Wed Feb 27 14:58:12 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkmenubar.c (gtk_menu_bar_size_request/allocate):
|
* gtk/gtkmenubar.c (gtk_menu_bar_size_request/allocate):
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
Wed Feb 27 23:02:55 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||||
|
|
||||||
|
* gtk/gtkhandlebox.c (gtk_handle_box_realize): minor code cleanup
|
||||||
|
|
||||||
Wed Feb 27 14:58:12 2002 Owen Taylor <otaylor@redhat.com>
|
Wed Feb 27 14:58:12 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkmenubar.c (gtk_menu_bar_size_request/allocate):
|
* gtk/gtkmenubar.c (gtk_menu_bar_size_request/allocate):
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
Wed Feb 27 23:02:55 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||||
|
|
||||||
|
* gtk/gtkhandlebox.c (gtk_handle_box_realize): minor code cleanup
|
||||||
|
|
||||||
Wed Feb 27 14:58:12 2002 Owen Taylor <otaylor@redhat.com>
|
Wed Feb 27 14:58:12 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkmenubar.c (gtk_menu_bar_size_request/allocate):
|
* gtk/gtkmenubar.c (gtk_menu_bar_size_request/allocate):
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
Wed Feb 27 23:02:55 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||||
|
|
||||||
|
* gtk/gtkhandlebox.c (gtk_handle_box_realize): minor code cleanup
|
||||||
|
|
||||||
Wed Feb 27 14:58:12 2002 Owen Taylor <otaylor@redhat.com>
|
Wed Feb 27 14:58:12 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkmenubar.c (gtk_menu_bar_size_request/allocate):
|
* gtk/gtkmenubar.c (gtk_menu_bar_size_request/allocate):
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
Wed Feb 27 23:02:55 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||||
|
|
||||||
|
* gtk/gtkhandlebox.c (gtk_handle_box_realize): minor code cleanup
|
||||||
|
|
||||||
Wed Feb 27 14:58:12 2002 Owen Taylor <otaylor@redhat.com>
|
Wed Feb 27 14:58:12 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkmenubar.c (gtk_menu_bar_size_request/allocate):
|
* gtk/gtkmenubar.c (gtk_menu_bar_size_request/allocate):
|
||||||
|
@ -405,11 +405,11 @@ gtk_handle_box_realize (GtkWidget *widget)
|
|||||||
attributes.width = widget->allocation.width;
|
attributes.width = widget->allocation.width;
|
||||||
attributes.height = widget->allocation.height;
|
attributes.height = widget->allocation.height;
|
||||||
attributes.window_type = GDK_WINDOW_CHILD;
|
attributes.window_type = GDK_WINDOW_CHILD;
|
||||||
attributes.event_mask |= (gtk_widget_get_events (widget) |
|
attributes.event_mask = (gtk_widget_get_events (widget) |
|
||||||
GDK_EXPOSURE_MASK |
|
GDK_EXPOSURE_MASK |
|
||||||
GDK_BUTTON1_MOTION_MASK |
|
GDK_BUTTON1_MOTION_MASK |
|
||||||
GDK_POINTER_MOTION_HINT_MASK |
|
GDK_POINTER_MOTION_HINT_MASK |
|
||||||
GDK_BUTTON_PRESS_MASK |
|
GDK_BUTTON_PRESS_MASK |
|
||||||
GDK_BUTTON_RELEASE_MASK);
|
GDK_BUTTON_RELEASE_MASK);
|
||||||
attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL | GDK_WA_COLORMAP;
|
attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL | GDK_WA_COLORMAP;
|
||||||
hb->bin_window = gdk_window_new (widget->window, &attributes, attributes_mask);
|
hb->bin_window = gdk_window_new (widget->window, &attributes, attributes_mask);
|
||||||
@ -470,7 +470,7 @@ gtk_handle_box_style_set (GtkWidget *widget,
|
|||||||
!GTK_WIDGET_NO_WINDOW (widget))
|
!GTK_WIDGET_NO_WINDOW (widget))
|
||||||
{
|
{
|
||||||
gtk_style_set_background (widget->style, widget->window,
|
gtk_style_set_background (widget->style, widget->window,
|
||||||
widget->state);
|
widget->state);
|
||||||
gtk_style_set_background (widget->style, hb->bin_window, widget->state);
|
gtk_style_set_background (widget->style, hb->bin_window, widget->state);
|
||||||
gtk_style_set_background (widget->style, hb->float_window, widget->state);
|
gtk_style_set_background (widget->style, hb->float_window, widget->state);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user