From 2227e2993aa889b05986427ae583854e50e6743d Mon Sep 17 00:00:00 2001 From: Mathias Hasselmann Date: Fri, 28 Dec 2007 19:46:53 +0000 Subject: [PATCH] Draw bottom shadow of GtkCalender headings. (#506113) * gtk/gtkcalendar.c: Set proper initial height for priv->header_win. svn path=/trunk/; revision=19282 --- ChangeLog | 8 +++++++- gtk/gtkcalendar.c | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f85f980d1e..1414d21d23 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-12-28 Mathias Hasselmann + + Draw bottom shadow of GtkCalender headings. (#506113) + + * gtk/gtkcalendar.c: Set proper initial height for priv->header_win. + 2007-12-28 Matthias Clasen * gtk/gtkcalendar.c: Document the initial values of year/month/day @@ -56,7 +62,7 @@ 2007-12-28 Mathias Hasselmann 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. diff --git a/gtk/gtkcalendar.c b/gtk/gtkcalendar.c index 8735bd7575..c91858e718 100644 --- a/gtk/gtkcalendar.c +++ b/gtk/gtkcalendar.c @@ -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);