forked from AuroraMiddleware/gtk
calendar: Fix an uninitialized value
Values pased to gtk_widget_measure must be initialized to 0. This failed if the header widget of the calendar was invisible.
This commit is contained in:
parent
7fd06cacbd
commit
ab84b17c1a
@ -1679,11 +1679,10 @@ gtk_calendar_size_request (GtkWidget *widget,
|
||||
GtkBorder day_padding, day_name_padding, week_padding;
|
||||
PangoLayout *layout;
|
||||
PangoRectangle logical_rect;
|
||||
|
||||
gint height;
|
||||
gint i, r, c;
|
||||
gint calendar_margin = CALENDAR_MARGIN;
|
||||
gint header_width, main_width;
|
||||
gint header_width = 0, main_width;
|
||||
gint max_header_height = 0;
|
||||
gint max_detail_height;
|
||||
gint inner_border = calendar_get_inner_border (calendar);
|
||||
|
Loading…
Reference in New Issue
Block a user