Allow setting background images on menus. (#169532, Benjamin Otte)

2005-04-07  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkmenu.c (gtk_menu_paint): Allow setting background
	images on menus.  (#169532, Benjamin Otte)
This commit is contained in:
Matthias Clasen 2005-04-07 19:56:57 +00:00 committed by Matthias Clasen
parent cb49f6e2d0
commit 624a9cdb1f
4 changed files with 18 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2005-04-07 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmenu.c (gtk_menu_paint): Allow setting background
images on menus. (#169532, Benjamin Otte)
* gtk/updateiconcache.c (write_card16, write_card32): Avoid
unaligned access. (#172947)

View File

@ -1,5 +1,8 @@
2005-04-07 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmenu.c (gtk_menu_paint): Allow setting background
images on menus. (#169532, Benjamin Otte)
* gtk/updateiconcache.c (write_card16, write_card32): Avoid
unaligned access. (#172947)

View File

@ -1,5 +1,8 @@
2005-04-07 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmenu.c (gtk_menu_paint): Allow setting background
images on menus. (#169532, Benjamin Otte)
* gtk/updateiconcache.c (write_card16, write_card32): Avoid
unaligned access. (#172947)

View File

@ -2495,6 +2495,15 @@ gtk_menu_paint (GtkWidget *widget,
arrow_size, arrow_size);
}
}
else if (event->window == menu->bin_window)
{
gtk_paint_box (widget->style,
menu->bin_window,
GTK_STATE_NORMAL,
GTK_SHADOW_OUT,
NULL, widget, "menu",
-border_x, -border_y, width, height);
}
}
static gboolean