diff options
author | Kristian Rietveld <kris@gtk.org> | 2003-07-12 14:10:31 +0000 |
---|---|---|
committer | Kristian Rietveld <kristian@src.gnome.org> | 2003-07-12 14:10:31 +0000 |
commit | c5037bdb505adb00d97f28ddb5cc7819569091cf (patch) | |
tree | fca45337a59b5e306b4f778937aec6664c3fdd9f /demos | |
parent | 79fceb3a8bf3511b3926c097eb99d15d2ea4950f (diff) | |
download | gtk+-c5037bdb505adb00d97f28ddb5cc7819569091cf.tar.gz |
Merged from stable.
Sat Jul 12 16:08:32 2003 Kristian Rietveld <kris@gtk.org>
Merged from stable.
* demos/gtk-demo/editable_cells.c (cell_edited): fixup bad
code (#115784, Owen Taylor).
Diffstat (limited to 'demos')
-rw-r--r-- | demos/gtk-demo/editable_cells.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/demos/gtk-demo/editable_cells.c b/demos/gtk-demo/editable_cells.c index b695fccc3f..9a4b4ed6db 100644 --- a/demos/gtk-demo/editable_cells.c +++ b/demos/gtk-demo/editable_cells.c @@ -152,13 +152,11 @@ cell_edited (GtkCellRendererText *cell, GtkTreePath *path = gtk_tree_path_new_from_string (path_string); GtkTreeIter iter; - gint *column; - - column = g_object_get_data (G_OBJECT (cell), "column"); + gint column = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (cell), "column")); gtk_tree_model_get_iter (model, &iter, path); - switch (GPOINTER_TO_INT (column)) + switch (column) { case COLUMN_NUMBER: { |