Commit 624a9cdb authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

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)
parent cb49f6e2
2005-04-07 Matthias Clasen <mclasen@redhat.com> 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 * gtk/updateiconcache.c (write_card16, write_card32): Avoid
unaligned access. (#172947) unaligned access. (#172947)
......
2005-04-07 Matthias Clasen <mclasen@redhat.com> 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 * gtk/updateiconcache.c (write_card16, write_card32): Avoid
unaligned access. (#172947) unaligned access. (#172947)
......
2005-04-07 Matthias Clasen <mclasen@redhat.com> 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 * gtk/updateiconcache.c (write_card16, write_card32): Avoid
unaligned access. (#172947) unaligned access. (#172947)
......
...@@ -2495,6 +2495,15 @@ gtk_menu_paint (GtkWidget *widget, ...@@ -2495,6 +2495,15 @@ gtk_menu_paint (GtkWidget *widget,
arrow_size, arrow_size); 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 static gboolean
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment