From 8d2d08837d5e8969db0a62547124bab9c6507459 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Wed, 16 Apr 2003 16:23:58 +0000 Subject: Fixes #39735 and 40257 2003-04-15 JP Rosevear Fixes #39735 and 40257 * gui/gnome-cal.c: convert float pane positions to ints (setup_widgets): set the initial position after realization and track the drags to get the new position, pack the panes slightly differently (gnome_calendar_set_pane_positions): set purely pixel oriented positions (gnome_calendar_update_config_settings): no need to update quanta setting (gnome_calendar_hpane_realized): realization callback (gnome_calendar_vpane_realized): ditto (gnome_calendar_vpane_resized): resize callback, store new size (gnome_calendar_hpane_resized): ditto * gui/calendar-model.c (get_due_status): handle an error getting the timezone * gui/calendar-config.c (calendar_config_get_hpane_pos): return an int (calendar_config_set_hpane_pos): take an int (calendar_config_get_vpane_pos): return an int (calendar_config_set_vpane_pos): take an int * gui/calendar-config.h: update protos * gui/apps_evolution_calendar.schemas: update defaults for pane positions svn path=/trunk/; revision=20863 --- calendar/gui/calendar-config.c | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'calendar/gui/calendar-config.c') diff --git a/calendar/gui/calendar-config.c b/calendar/gui/calendar-config.c index fd5dd0f3a3..e191a6e8d8 100644 --- a/calendar/gui/calendar-config.c +++ b/calendar/gui/calendar-config.c @@ -281,61 +281,61 @@ calendar_config_set_default_view (gint view) /* The positions of the panes in the normal and month views. */ -gfloat +gint calendar_config_get_hpane_pos (void) { - return e_config_listener_get_float_with_default (config, - "/apps/evolution/calendar/display/hpane_position", - 1.0, NULL); + return e_config_listener_get_long_with_default (config, + "/apps/evolution/calendar/display/hpane_position", + -1, NULL); } void -calendar_config_set_hpane_pos (gfloat hpane_pos) +calendar_config_set_hpane_pos (gint hpane_pos) { - e_config_listener_set_float (config, "/apps/evolution/calendar/display/hpane_position", hpane_pos); + e_config_listener_set_long (config, "/apps/evolution/calendar/display/hpane_position", hpane_pos); } -gfloat +gint calendar_config_get_vpane_pos (void) { - return e_config_listener_get_float_with_default (config, "/apps/evolution/calendar/display/vpane_position", 1.0, NULL); + return e_config_listener_get_long_with_default (config, "/apps/evolution/calendar/display/vpane_position", -1, NULL); } void -calendar_config_set_vpane_pos (gfloat vpane_pos) +calendar_config_set_vpane_pos (gint vpane_pos) { - e_config_listener_set_float (config, "/apps/evolution/calendar/display/vpane_position", vpane_pos); + e_config_listener_set_long (config, "/apps/evolution/calendar/display/vpane_position", vpane_pos); } -gfloat +gint calendar_config_get_month_hpane_pos (void) { - return e_config_listener_get_float_with_default (config, "/apps/evolution/calendar/display/month_hpane_position", 0.0, NULL); + return e_config_listener_get_long_with_default (config, "/apps/evolution/calendar/display/month_hpane_position", -1, NULL); } void -calendar_config_set_month_hpane_pos (gfloat hpane_pos) +calendar_config_set_month_hpane_pos (gint hpane_pos) { - e_config_listener_set_float (config, "/apps/evolution/calendar/display/month_hpane_position", hpane_pos); + e_config_listener_set_long (config, "/apps/evolution/calendar/display/month_hpane_position", hpane_pos); } -gfloat +gint calendar_config_get_month_vpane_pos (void) { - return e_config_listener_get_float_with_default (config, "/apps/evolution/calendar/display/month_vpane_position", 1.0, NULL); + return e_config_listener_get_long_with_default (config, "/apps/evolution/calendar/display/month_vpane_position", 0, NULL); } void -calendar_config_set_month_vpane_pos (gfloat vpane_pos) +calendar_config_set_month_vpane_pos (gint vpane_pos) { - e_config_listener_set_float (config, "/apps/evolution/calendar/display/month_vpane_position", vpane_pos); + e_config_listener_set_long (config, "/apps/evolution/calendar/display/month_vpane_position", vpane_pos); } -- cgit