[evolution-patches] calendar pane bug workaround



Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.1792
diff -u -r1.1792 ChangeLog
--- ChangeLog	12 Jun 2003 11:16:33 -0000	1.1792
+++ ChangeLog	18 Jun 2003 21:17:43 -0000
@@ -1,3 +1,13 @@
+2003-06-18  Dan Winship  <danw ximian com>
+
+	* gui/calendar-config.c (calendar_config_get_hpane_pos) 
+	(calendar_config_get_vpane_pos) 
+	(calendar_config_get_month_hpane_pos) 
+	(calendar_config_get_month_vpane_pos): Plug in the defaults from
+	the schemas file here, so that even if something goes wrong with
+	the schemas, people will still get reasonable defaults instead of
+	"I click on the calendar and it shows me tasks".
+
 2003-06-10  Rodrigo Moya <rodrigo ximian com>
 
 	Fixes #41582
Index: gui/calendar-config.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/calendar-config.c,v
retrieving revision 1.52
diff -u -r1.52 calendar-config.c
--- gui/calendar-config.c	30 May 2003 17:35:09 -0000	1.52
+++ gui/calendar-config.c	18 Jun 2003 21:17:44 -0000
@@ -287,7 +287,7 @@
 {
 	return e_config_listener_get_long_with_default (config,
 						       "/apps/evolution/calendar/display/hpane_position",
-						       -1, NULL);
+						       400, NULL);
 }
 
 
@@ -301,7 +301,7 @@
 gint
 calendar_config_get_vpane_pos		(void)
 {
-	return e_config_listener_get_long_with_default (config, "/apps/evolution/calendar/display/vpane_position", -1, NULL);
+	return e_config_listener_get_long_with_default (config, "/apps/evolution/calendar/display/vpane_position", 150, NULL);
 }
 
 
@@ -315,7 +315,7 @@
 gint
 calendar_config_get_month_hpane_pos	(void)
 {
-	return e_config_listener_get_long_with_default (config, "/apps/evolution/calendar/display/month_hpane_position", -1, NULL);
+	return e_config_listener_get_long_with_default (config, "/apps/evolution/calendar/display/month_hpane_position", 32000, NULL);
 }
 
 
@@ -329,7 +329,7 @@
 gint
 calendar_config_get_month_vpane_pos	(void)
 {
-	return  e_config_listener_get_long_with_default (config, "/apps/evolution/calendar/display/month_vpane_position", 0, NULL);
+	return  e_config_listener_get_long_with_default (config, "/apps/evolution/calendar/display/month_vpane_position", 150, NULL);
 }
 
 


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