aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view.c
diff options
context:
space:
mode:
authorHans Petter Jansson <hpj@ximian.com>2003-01-27 13:34:04 +0800
committerHans Petter <hansp@src.gnome.org>2003-01-27 13:34:04 +0800
commitc509e2e85b3b4e264da53c24d1a0c91b889961e1 (patch)
treeb6be55d89cb94874e36ea9ee472ea69ea2fae870 /calendar/gui/e-week-view.c
parent50a112d4c47c19e1b58b277bb0bc08828cda1505 (diff)
downloadgsoc2013-evolution-c509e2e85b3b4e264da53c24d1a0c91b889961e1.tar.gz
gsoc2013-evolution-c509e2e85b3b4e264da53c24d1a0c91b889961e1.tar.zst
gsoc2013-evolution-c509e2e85b3b4e264da53c24d1a0c91b889961e1.zip
Make clicks, drags and resizes work, and pangoize remaining strings. Fix
2003-01-26 Hans Petter Jansson <hpj@ximian.com> Make clicks, drags and resizes work, and pangoize remaining strings. Fix EText placement. * gui/e-day-view-top-item.c (e_day_view_top_item_draw_long_event): Use Pango. * gui/e-day-view.c (e_day_view_on_top_canvas_button_press): Don't add scroll offset, it's already factored in. (e_day_view_on_main_canvas_button_press): Ditto. (e_day_view_on_top_canvas_motion): Ditto. (e_day_view_on_main_canvas_motion): Ditto. (e_day_view_reshape_long_event): Don't set the "font_gdk" property. Its non-existence will prevent the other properties from being set as well. (e_day_view_reshape_day_event): Ditto. (e_day_view_update_top_canvas_drag): Ditto. (e_day_view_start_editing_event): ETextEventProcessor is a GObject now. So use g_signal_stuff. (e_day_view_check_auto_scroll): Factor out scroll offset before checking the pointer's position relative to widget. (e_day_view_auto_scroll_handler): Don't freeze the canvas when scrolling - it will fail to update the canvas. If this is not intended behaviour, it's a bug in the canvas, I think. (e_day_view_on_main_canvas_drag_motion): Factor in the scroll offset before checking for auto-scroll, since the function requires this. * gui/e-week-view.c (e_week_view_reshape_event_span): Don't set the "font_gdk" property. Its non-existence will prevent the other properties from being set as well. (e_week_view_start_editing_event): ETextEventProcessor is a GObject now. So use g_signal_stuff. svn path=/trunk/; revision=19641
Diffstat (limited to 'calendar/gui/e-week-view.c')
-rw-r--r--calendar/gui/e-week-view.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index e92dbab6a7..a5c8f3b656 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -2723,12 +2723,12 @@ e_week_view_reshape_event_span (EWeekView *week_view,
span->text_item =
gnome_canvas_item_new (GNOME_CANVAS_GROUP (GNOME_CANVAS (week_view->main_canvas)->root),
e_text_get_type (),
+#if 0
"font_gdk", font,
+#endif
"anchor", GTK_ANCHOR_NW,
"clip", TRUE,
-#if 0
"max_lines", 1,
-#endif
"editable", TRUE,
"text", text.value ? text.value : "",
"use_ellipsis", TRUE,
@@ -2963,8 +2963,8 @@ e_week_view_start_editing_event (EWeekView *week_view,
if (event_processor) {
command.action = E_TEP_MOVE;
command.position = E_TEP_END_OF_BUFFER;
- gtk_signal_emit_by_name (GTK_OBJECT (event_processor),
- "command", &command);
+ g_signal_emit_by_name (event_processor,
+ "command", &command);
}
}