diff options
author | Owen Taylor <otaylor@redhat.com> | 2001-11-16 15:20:28 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2001-11-16 15:20:28 +0000 |
commit | 1431d7658e51bc1d4ec1b7aeb546cbca41005827 (patch) | |
tree | f73b8048507f8d2aad5c3bcce0a20d261af642a8 /gtk/gtkimagemenuitem.c | |
parent | e8eb7a4094fa94358ef5f0025800c04197bcd35e (diff) | |
download | gtk+-1431d7658e51bc1d4ec1b7aeb546cbca41005827.tar.gz |
Make Menu items NO_WINDOW widgets.
Fri Nov 16 00:16:40 2001 Owen Taylor <otaylor@redhat.com>
* gtk/{gtkmenuitem.[ch],gtkcheckmenuitem.c,gtkimagemenuitem.c,
gtkradiomenuitem.c,gtktearoffmenuitem.c}: Make Menu items
NO_WINDOW widgets.
* gtk/gtk{h,v,}paned.[ch]: Make NO_WINDOW widgets, some
cleanup.
* gtk/gtkstyle.c (gtk_default_draw_handle): Don't assume
we are drawing in a window when drawing the paned handle.
Diffstat (limited to 'gtk/gtkimagemenuitem.c')
-rw-r--r-- | gtk/gtkimagemenuitem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkimagemenuitem.c b/gtk/gtkimagemenuitem.c index 57ededa8ad..0c7476dec5 100644 --- a/gtk/gtkimagemenuitem.c +++ b/gtk/gtkimagemenuitem.c @@ -256,8 +256,8 @@ gtk_image_menu_item_size_allocate (GtkWidget *widget, child_allocation.width = width; child_allocation.height = height; - child_allocation.x = MAX (x, 0); - child_allocation.y = MAX (y, 0); + child_allocation.x = widget->allocation.x + MAX (x, 0); + child_allocation.y = widget->allocation.y + MAX (y, 0); gtk_widget_size_allocate (image_menu_item->image, &child_allocation); } |