diff options
-rw-r--r-- | widgets/e-table/ChangeLog | 6 | ||||
-rw-r--r-- | widgets/e-table/e-table.c | 4 | ||||
-rw-r--r-- | widgets/table/e-table.c | 4 |
3 files changed, 10 insertions, 4 deletions
diff --git a/widgets/e-table/ChangeLog b/widgets/e-table/ChangeLog index 0fdef6508c..cf4a023179 100644 --- a/widgets/e-table/ChangeLog +++ b/widgets/e-table/ChangeLog @@ -1,3 +1,9 @@ +2000-08-21 Chris Toshok <toshok@helixcode.com> + + * e-table.c (e_table_drag_source_set): pass table, not site as the + closure for these drag signals, since e_table_drag_source_event_cb + assumes it's the table. + 2000-08-20 Christopher James Lahey <clahey@helixcode.com> * e-table-selection-model.c, e-table-selection-model.h: Added diff --git a/widgets/e-table/e-table.c b/widgets/e-table/e-table.c index e2f7edec5e..bd6d7bc60c 100644 --- a/widgets/e-table/e-table.c +++ b/widgets/e-table/e-table.c @@ -1147,11 +1147,11 @@ void e_table_drag_source_set (ETable *table, table->drag_source_button_press_event_id = gtk_signal_connect (GTK_OBJECT (canvas), "button_press_event", GTK_SIGNAL_FUNC (e_table_drag_source_event_cb), - site); + table); table->drag_source_motion_notify_event_id = gtk_signal_connect (GTK_OBJECT (canvas), "motion_notify_event", GTK_SIGNAL_FUNC (e_table_drag_source_event_cb), - site); + table); table->site = site; } diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c index e2f7edec5e..bd6d7bc60c 100644 --- a/widgets/table/e-table.c +++ b/widgets/table/e-table.c @@ -1147,11 +1147,11 @@ void e_table_drag_source_set (ETable *table, table->drag_source_button_press_event_id = gtk_signal_connect (GTK_OBJECT (canvas), "button_press_event", GTK_SIGNAL_FUNC (e_table_drag_source_event_cb), - site); + table); table->drag_source_motion_notify_event_id = gtk_signal_connect (GTK_OBJECT (canvas), "motion_notify_event", GTK_SIGNAL_FUNC (e_table_drag_source_event_cb), - site); + table); table->site = site; } |