diff options
author | JP Rosevear <jpr@ximian.com> | 2002-03-06 04:47:48 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2002-03-06 04:47:48 +0800 |
commit | 41c0e5bb186d461a9da7763518b6bcd277391f09 (patch) | |
tree | f02790a805ff83c273fafbe6d15054f53f6dc171 /calendar/gui/e-meeting-time-sel-item.c | |
parent | 5c10817db46137b17aabcb01e4b7098635288b3c (diff) | |
download | gsoc2013-evolution-41c0e5bb186d461a9da7763518b6bcd277391f09.tar.gz gsoc2013-evolution-41c0e5bb186d461a9da7763518b6bcd277391f09.tar.zst gsoc2013-evolution-41c0e5bb186d461a9da7763518b6bcd277391f09.zip |
remove unneeded parameter from print_text_size everywhere
2002-03-05 JP Rosevear <jpr@ximian.com>
* gui/print.c: remove unneeded parameter from print_text_size
everywhere
(get_font_for_size): calculate a font size based on the available
height
(print_text): calculate the top of where the font should be drawn
(print_text_size): use get_font_for_size
(print_day_background): use get_font_for_size
2002-03-05 JP Rosevear <jpr@ximian.com>
* gui/e-meeting-time-sel-item.c
(e_meeting_time_selector_item_draw): pass the real table
to e_meeting_model_etable_view_to_model_row
(e_meeting_time_selector_item_paint_busy_periods): ditto
* gui/dialogs/meeting-page.c (right_click_cb): ditto
* gui/e-meeting-model.h: update protos
* gui/e-meeting-model.c
(e_meeting_model_etable_model_to_view_row): take in to account the
fact the table used the without model
(e_meeting_model_etable_view_to_model_row): ditto
svn path=/trunk/; revision=15926
Diffstat (limited to 'calendar/gui/e-meeting-time-sel-item.c')
-rw-r--r-- | calendar/gui/e-meeting-time-sel-item.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/calendar/gui/e-meeting-time-sel-item.c b/calendar/gui/e-meeting-time-sel-item.c index a796495451..d44a1f436d 100644 --- a/calendar/gui/e-meeting-time-sel-item.c +++ b/calendar/gui/e-meeting-time-sel-item.c @@ -272,6 +272,7 @@ e_meeting_time_selector_item_draw (GnomeCanvasItem *item, GdkDrawable *drawable, { EMeetingTimeSelector *mts; EMeetingTimeSelectorItem *mts_item; + ETable *real_table; EMeetingAttendee *ia; gint day_x, meeting_start_x, meeting_end_x, bar_y, bar_height; gint row, row_y, start_x, end_x; @@ -285,6 +286,8 @@ e_meeting_time_selector_item_draw (GnomeCanvasItem *item, GdkDrawable *drawable, gc = mts_item->main_gc; stipple_gc = mts_item->stipple_gc; + real_table = e_table_scrolled_get_table (E_TABLE_SCROLLED (mts->etable)); + is_display_top = (GTK_WIDGET (item->canvas) == mts->display_top) ? TRUE : FALSE; @@ -335,7 +338,8 @@ e_meeting_time_selector_item_draw (GnomeCanvasItem *item, GdkDrawable *drawable, row = y / mts->row_height; row_y = row * mts->row_height - y; while (row < e_meeting_model_count_actual_attendees (mts->model) && row_y < height) { - gint model_row = e_meeting_model_etable_view_to_model_row (mts->model, row); + gint model_row = e_meeting_model_etable_view_to_model_row (real_table, + mts->model, row); ia = e_meeting_model_find_attendee_at_row (mts->model, model_row); @@ -648,7 +652,7 @@ e_meeting_time_selector_item_paint_busy_periods (EMeetingTimeSelectorItem *mts_i /* Step through the attendees painting the busy periods. */ while (y < height && row < e_meeting_model_count_actual_attendees (mts->model)) { - model_row = e_meeting_model_etable_view_to_model_row (mts->model, row); + model_row = e_meeting_model_etable_view_to_model_row (real_table, mts->model, row); /* Find the first visible busy period. */ first_period = e_meeting_time_selector_item_find_first_busy_period (mts_item, date, model_row); |