From c150a409d44428073347bf5da033d0290cda4d4d Mon Sep 17 00:00:00 2001 From: Nat Friedman Date: Tue, 25 May 1999 17:09:56 +0000 Subject: This is the fix Miguel and I hacked in the car at Expo to make the year view work in low-resolution displays. This isn't the proper fix, but it's better than the way things were. 1999-05-25 Nat Friedman * doc/C/gnomecal.sgml: Fixed a typo. * gnome-cal.c (setup_widgets): Added a scrolled window widget into which the year view is placed. * year-view.c (CALENDAR_HEIGHT): The height of the total year view inside the scrolled window. (idle_handler): Set the height of the year view to CALENDAR_HEIGHT. (year_view_size_allocate): Set the scroll region of the year view canvas to allocation->width, CALENDAR_HEIGHT. svn path=/trunk/; revision=938 --- calendar/main.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'calendar/main.c') diff --git a/calendar/main.c b/calendar/main.c index 9462a3a531..db0000365c 100644 --- a/calendar/main.c +++ b/calendar/main.c @@ -566,9 +566,15 @@ new_calendar (char *full_name, char *calendar_file, char *geometry, char *page, if (gnome_parse_geometry (geometry, &xpos, &ypos, &width, &height)){ if (xpos != -1) gtk_widget_set_uposition (toplevel, xpos, ypos); - if (width != -1) - gtk_widget_set_usize (toplevel, width, height); +#if 0 + if (width != -1) + gtk_widget_set_usize (toplevel, width, 600); +#endif } +#if 0 + gtk_widget_set_usize (toplevel, width, 600); +#endif + setup_appbar (toplevel); setup_menu (toplevel); -- cgit v1.2.3