Gtk+ -1.3.5 GtkCalendar size : Bug 56925



Hi,

In the GtkCalendar widget,
when the Days Names are shown, the height of the Calendar window is
updated but keeps its size when the Days Names are unselected.

Here is a patch which seems correct the problem.

Regards

Jean-Noel
*** gtkcalendar.c.old	Sun Jul  1 15:36:48 2001
--- gtkcalendar.c	Sun Jul  1 15:38:16 2001
***************
*** 1235,1241 ****
      }
    /* We add one to max_day_char_width to be able to make the marked day "bold" */
    private_data->max_day_char_width = private_data->min_day_width / 2 +1;
!   
    if (calendar->display_flags & GTK_CALENDAR_SHOW_DAY_NAMES)
      for (i = 0; i < 7; i++)
        {
--- 1235,1243 ----
      }
    /* We add one to max_day_char_width to be able to make the marked day "bold" */
    private_data->max_day_char_width = private_data->min_day_width / 2 +1;
! 
!   private_data->max_label_char_ascent = 0;
!   private_data->max_label_char_descent = 0;
    if (calendar->display_flags & GTK_CALENDAR_SHOW_DAY_NAMES)
      for (i = 0; i < 7; i++)
        {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]