Draw bottom shadow of GtkCalender headings. (#506113)

* gtk/gtkcalendar.c: Set proper initial height for priv->header_win.

svn path=/trunk/; revision=19282
This commit is contained in:
Mathias Hasselmann 2007-12-28 19:46:53 +00:00
parent 2c35a3f9b2
commit 2227e2993a
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2007-12-28 Mathias Hasselmann <mathias@openismus.com>
Draw bottom shadow of GtkCalender headings. (#506113)
* gtk/gtkcalendar.c: Set proper initial height for priv->header_win.
2007-12-28 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcalendar.c: Document the initial values of year/month/day
@ -56,7 +62,7 @@
2007-12-28 Mathias Hasselmann <mathias@openismus.com>
Add GTK_CALENDAR_SHOW_DETAILS display flag, which chooses if details
are shown within the widget, or jst as tooltip.
are shown within the widget, or jst as tooltip. (#339540)
* gtk/gtkcalendar.c, gtk/gtkcalendar.h: Add "show-details" property
aka. GTK_CALENDAR_SHOW_DETAILS, and use it.

View File

@ -1481,7 +1481,7 @@ calendar_realize_header (GtkCalendar *calendar)
attributes.x = widget->style->xthickness;
attributes.y = widget->style->ythickness;
attributes.width = widget->allocation.width - 2 * attributes.x;
attributes.height = priv->header_h - 2 * attributes.y;
attributes.height = priv->header_h;
priv->header_win = gdk_window_new (widget->window,
&attributes, attributes_mask);