diff options
author | JP Rosevear <jpr@ximian.com> | 2003-04-17 00:23:58 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2003-04-17 00:23:58 +0800 |
commit | 8d2d08837d5e8969db0a62547124bab9c6507459 (patch) | |
tree | fd254a2a12316faa4f36f2bd3aea18646240d61e /calendar/gui/calendar-config.c | |
parent | 611fbb0443eb7a26a252ca4a706f9b592cdf0b98 (diff) | |
download | gsoc2013-evolution-8d2d08837d5e8969db0a62547124bab9c6507459.tar.gz gsoc2013-evolution-8d2d08837d5e8969db0a62547124bab9c6507459.tar.zst gsoc2013-evolution-8d2d08837d5e8969db0a62547124bab9c6507459.zip |
Fixes #39735 and 40257
2003-04-15 JP Rosevear <jpr@ximian.com>
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
Diffstat (limited to 'calendar/gui/calendar-config.c')
-rw-r--r-- | calendar/gui/calendar-config.c | 36 |
1 files changed, 18 insertions, 18 deletions
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); } |