diff options
-rw-r--r-- | calendar/ChangeLog | 14 | ||||
-rw-r--r-- | calendar/gui/e-day-view.c | 96 | ||||
-rw-r--r-- | calendar/gui/e-week-view.c | 8 |
3 files changed, 66 insertions, 52 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 12793b0f39..7365bcb37f 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,17 @@ +2003-05-19 JP Rosevear <jpr@ximian.com> + + Fixes #43103 + + * gui/e-day-view.c (e_day_view_init): connect normally instead of + after so that our boolean return values afffect the action signal + emmissions properly + (e_day_view_on_top_canvas_drag_motion): fix proto to be a gboolean + (e_day_view_on_main_canvas_drag_motion): ditto + + * gui/e-week-view.c (e_week_view_init): connect normally instead + of after so that our boolean return values afffect the action + signal emmissions properly + 2003-05-16 JP Rosevear <jpr@ximian.com> * gui/dialogs/comp-editor.c (make_title_from_comp): the title is diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c index ec27dc79fa..ce8ed1d547 100644 --- a/calendar/gui/e-day-view.c +++ b/calendar/gui/e-day-view.c @@ -378,21 +378,21 @@ static void e_day_view_on_unrecur_appointment (GtkWidget *widget, gpointer data); static EDayViewEvent* e_day_view_get_popup_menu_event (EDayView *day_view); -static gint e_day_view_on_top_canvas_drag_motion (GtkWidget *widget, - GdkDragContext *context, - gint x, - gint y, - guint time, - EDayView *day_view); +static gboolean e_day_view_on_top_canvas_drag_motion (GtkWidget *widget, + GdkDragContext *context, + gint x, + gint y, + guint time, + EDayView *day_view); static void e_day_view_update_top_canvas_drag (EDayView *day_view, gint day); static void e_day_view_reshape_top_canvas_drag_item (EDayView *day_view); -static gint e_day_view_on_main_canvas_drag_motion (GtkWidget *widget, - GdkDragContext *context, - gint x, - gint y, - guint time, - EDayView *day_view); +static gboolean e_day_view_on_main_canvas_drag_motion (GtkWidget *widget, + GdkDragContext *context, + gint x, + gint y, + guint time, + EDayView *day_view); static void e_day_view_reshape_main_canvas_drag_item (EDayView *day_view); static void e_day_view_update_main_canvas_drag (EDayView *day_view, gint row, @@ -620,16 +620,16 @@ e_day_view_init (EDayView *day_view) gtk_table_attach (GTK_TABLE (day_view), day_view->top_canvas, 1, 2, 0, 1, GTK_EXPAND | GTK_FILL, GTK_FILL, 0, 0); gtk_widget_show (day_view->top_canvas); - g_signal_connect_after (day_view->top_canvas, "button_press_event", - G_CALLBACK (e_day_view_on_top_canvas_button_press), day_view); - g_signal_connect_after (day_view->top_canvas, "button_release_event", - G_CALLBACK (e_day_view_on_top_canvas_button_release), day_view); - g_signal_connect_after (day_view->top_canvas, "motion_notify_event", - G_CALLBACK (e_day_view_on_top_canvas_motion), day_view); - g_signal_connect_after (day_view->top_canvas, "drag_motion", - G_CALLBACK (e_day_view_on_top_canvas_drag_motion), day_view); - g_signal_connect_after (day_view->top_canvas, "drag_leave", - G_CALLBACK (e_day_view_on_top_canvas_drag_leave), day_view); + g_signal_connect (day_view->top_canvas, "button_press_event", + G_CALLBACK (e_day_view_on_top_canvas_button_press), day_view); + g_signal_connect (day_view->top_canvas, "button_release_event", + G_CALLBACK (e_day_view_on_top_canvas_button_release), day_view); + g_signal_connect (day_view->top_canvas, "motion_notify_event", + G_CALLBACK (e_day_view_on_top_canvas_motion), day_view); + g_signal_connect (day_view->top_canvas, "drag_motion", + G_CALLBACK (e_day_view_on_top_canvas_drag_motion), day_view); + g_signal_connect (day_view->top_canvas, "drag_leave", + G_CALLBACK (e_day_view_on_top_canvas_drag_leave), day_view); g_signal_connect (day_view->top_canvas, "drag_begin", G_CALLBACK (e_day_view_on_drag_begin), day_view); @@ -686,30 +686,30 @@ e_day_view_init (EDayView *day_view) g_signal_connect (day_view->main_canvas, "realize", G_CALLBACK (e_day_view_on_canvas_realized), day_view); - g_signal_connect_after (day_view->main_canvas, - "button_press_event", - G_CALLBACK (e_day_view_on_main_canvas_button_press), - day_view); - g_signal_connect_after (day_view->main_canvas, - "button_release_event", - G_CALLBACK (e_day_view_on_main_canvas_button_release), - day_view); - g_signal_connect_after (day_view->main_canvas, - "scroll_event", - G_CALLBACK (e_day_view_on_main_canvas_scroll), - day_view); - g_signal_connect_after (day_view->main_canvas, - "motion_notify_event", - G_CALLBACK (e_day_view_on_main_canvas_motion), - day_view); - g_signal_connect_after (day_view->main_canvas, - "drag_motion", - G_CALLBACK (e_day_view_on_main_canvas_drag_motion), - day_view); - g_signal_connect_after (day_view->main_canvas, - "drag_leave", - G_CALLBACK (e_day_view_on_main_canvas_drag_leave), - day_view); + g_signal_connect (day_view->main_canvas, + "button_press_event", + G_CALLBACK (e_day_view_on_main_canvas_button_press), + day_view); + g_signal_connect (day_view->main_canvas, + "button_release_event", + G_CALLBACK (e_day_view_on_main_canvas_button_release), + day_view); + g_signal_connect (day_view->main_canvas, + "scroll_event", + G_CALLBACK (e_day_view_on_main_canvas_scroll), + day_view); + g_signal_connect (day_view->main_canvas, + "motion_notify_event", + G_CALLBACK (e_day_view_on_main_canvas_motion), + day_view); + g_signal_connect (day_view->main_canvas, + "drag_motion", + G_CALLBACK (e_day_view_on_main_canvas_drag_motion), + day_view); + g_signal_connect (day_view->main_canvas, + "drag_leave", + G_CALLBACK (e_day_view_on_main_canvas_drag_leave), + day_view); g_signal_connect (day_view->main_canvas, "drag_begin", G_CALLBACK (e_day_view_on_drag_begin), day_view); @@ -6813,7 +6813,7 @@ e_day_view_convert_position_in_main_canvas (EDayView *day_view, } -static gint +static gboolean e_day_view_on_top_canvas_drag_motion (GtkWidget *widget, GdkDragContext *context, gint x, @@ -6956,7 +6956,7 @@ e_day_view_update_top_canvas_drag (EDayView *day_view, } -static gint +static gboolean e_day_view_on_main_canvas_drag_motion (GtkWidget *widget, GdkDragContext *context, gint x, diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c index 5a7ea363c6..80b7ee2937 100644 --- a/calendar/gui/e-week-view.c +++ b/calendar/gui/e-week-view.c @@ -382,13 +382,13 @@ e_week_view_init (EWeekView *week_view) "EWeekViewMainItem::week_view", week_view, NULL); - g_signal_connect_after (week_view->main_canvas, "button_press_event", + g_signal_connect (week_view->main_canvas, "button_press_event", G_CALLBACK (e_week_view_on_button_press), week_view); - g_signal_connect_after (week_view->main_canvas, "button_release_event", + g_signal_connect (week_view->main_canvas, "button_release_event", G_CALLBACK (e_week_view_on_button_release), week_view); - g_signal_connect_after (week_view->main_canvas, "scroll_event", + g_signal_connect (week_view->main_canvas, "scroll_event", G_CALLBACK (e_week_view_on_scroll), week_view); - g_signal_connect_after (week_view->main_canvas, "motion_notify_event", + g_signal_connect (week_view->main_canvas, "motion_notify_event", G_CALLBACK (e_week_view_on_motion), week_view); /* Create the buttons to jump to each days. */ |