aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-02-09 01:59:50 +0800
committerChris Lahey <clahey@src.gnome.org>2001-02-09 01:59:50 +0800
commitaa92a8935b7add78ffca2212df7e8184f7fa0bc9 (patch)
tree9288edc8f5f722d7901d635c2b05421f2c2104e9
parent7eb53204601c90801d690c9eab082751a8071fb6 (diff)
downloadgsoc2013-evolution-aa92a8935b7add78ffca2212df7e8184f7fa0bc9.tar
gsoc2013-evolution-aa92a8935b7add78ffca2212df7e8184f7fa0bc9.tar.gz
gsoc2013-evolution-aa92a8935b7add78ffca2212df7e8184f7fa0bc9.tar.bz2
gsoc2013-evolution-aa92a8935b7add78ffca2212df7e8184f7fa0bc9.tar.lz
gsoc2013-evolution-aa92a8935b7add78ffca2212df7e8184f7fa0bc9.tar.xz
gsoc2013-evolution-aa92a8935b7add78ffca2212df7e8184f7fa0bc9.tar.zst
gsoc2013-evolution-aa92a8935b7add78ffca2212df7e8184f7fa0bc9.zip
Set the dnd_code on the header properly.
2001-02-08 Christopher James Lahey <clahey@ximian.com> * e-table.c (e_table_setup_header): Set the dnd_code on the header properly. svn path=/trunk/; revision=8110
-rw-r--r--widgets/table/e-table.c7
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);