diff options
Diffstat (limited to 'widgets/table')
-rw-r--r-- | widgets/table/e-table.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c index 19db9e807e..b48d4d95a3 100644 --- a/widgets/table/e-table.c +++ b/widgets/table/e-table.c @@ -261,21 +261,26 @@ sort_info_changed (ETableSortInfo *info, ETable *et) static void e_table_setup_header (ETable *e_table) { + char *pointer; e_table->header_canvas = GNOME_CANVAS (e_canvas_new ()); GTK_WIDGET_UNSET_FLAGS (e_table->header_canvas, GTK_CAN_FOCUS); gtk_widget_show (GTK_WIDGET (e_table->header_canvas)); + pointer = g_strdup_printf("%p", e_table); + e_table->header_item = gnome_canvas_item_new ( gnome_canvas_root (e_table->header_canvas), e_table_header_item_get_type (), "ETableHeader", e_table->header, "full_header", e_table->full_header, "sort_info", e_table->sort_info, - "dnd_code", "(unset)", + "dnd_code", pointer, "table", e_table, NULL); + g_free(pointer); + gtk_signal_connect ( GTK_OBJECT (e_table->header_canvas), "size_allocate", GTK_SIGNAL_FUNC (header_canvas_size_allocate), e_table); |