diff options
Diffstat (limited to 'widgets/table')
-rw-r--r-- | widgets/table/e-table-col.c | 4 | ||||
-rw-r--r-- | widgets/table/e-table-header-item.c | 5 | ||||
-rw-r--r-- | widgets/table/e-table-header-item.h | 2 | ||||
-rw-r--r-- | widgets/table/e-table.c | 4 |
4 files changed, 7 insertions, 8 deletions
diff --git a/widgets/table/e-table-col.c b/widgets/table/e-table-col.c index e2e12caf63..457830843d 100644 --- a/widgets/table/e-table-col.c +++ b/widgets/table/e-table-col.c @@ -22,6 +22,8 @@ etc_destroy (GtkObject *object) { ETableCol *etc = E_TABLE_COL (object); + gtk_object_unref( GTK_OBJECT(etc->ecell) ); + if ( etc->is_pixbuf ) gdk_pixbuf_unref( etc->pixbuf ); else @@ -67,6 +69,8 @@ e_table_col_new (int col_idx, const char *text, int width, int min_width, etc->selected = 0; etc->resizeable = resizable; + gtk_object_ref(GTK_OBJECT(etc->ecell)); + return etc; } diff --git a/widgets/table/e-table-header-item.c b/widgets/table/e-table-header-item.c index 91a64d204a..475e15c31d 100644 --- a/widgets/table/e-table-header-item.c +++ b/widgets/table/e-table-header-item.c @@ -428,8 +428,6 @@ ethi_realize (GnomeCanvasItem *item) gnome_canvas_get_color (item->canvas, "black", &c); gdk_gc_set_foreground (ethi->gc, &c); - ethi->normal_cursor = gdk_cursor_new (GDK_ARROW); - if (!ethi->font){ g_warning ("Font had not been set for this ETableHeader"); ethi_font_load (ethi, "fixed"); @@ -467,9 +465,6 @@ ethi_unrealize (GnomeCanvasItem *item) gdk_gc_unref (ethi->gc); ethi->gc = NULL; - gdk_cursor_destroy (ethi->normal_cursor); - ethi->normal_cursor = NULL; - gtk_signal_disconnect (GTK_OBJECT (item->canvas), ethi->drag_motion_id); gtk_signal_disconnect (GTK_OBJECT (item->canvas), ethi->drag_end_id); gtk_signal_disconnect (GTK_OBJECT (item->canvas), ethi->drag_leave_id); diff --git a/widgets/table/e-table-header-item.h b/widgets/table/e-table-header-item.h index 156e25beef..2e889a6adf 100644 --- a/widgets/table/e-table-header-item.h +++ b/widgets/table/e-table-header-item.h @@ -15,7 +15,7 @@ typedef struct { ETableHeader *eth; GdkGC *gc; - GdkCursor *change_cursor, *normal_cursor; + GdkCursor *change_cursor; short x1, y1, height, width; GdkFont *font; diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c index 589c1ec704..074ed3c2ae 100644 --- a/widgets/table/e-table.c +++ b/widgets/table/e-table.c @@ -223,7 +223,7 @@ e_table_make_subtables (ETableModel *model, GArray *groups) return (ETableModel **) tables; } -#endif + typedef struct _Node Node; struct _Node { @@ -234,7 +234,7 @@ struct _Node { guint is_leaf:1; }; -#if 0 + static Node * leaf_new (GnomeCanvasItem *table_item, ETableModel *table_model, Node *parent) { |