From 3a5db6a93221b15b23ae593d55f3cdc7e4f2804a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 26 Jan 2008 12:11:47 +0000 Subject: configure.ac: Check for libglade-2.0, for the metadata-editor example. Original commit message from CVS: * configure.ac: Check for libglade-2.0, for the metadata-editor example. * tests/icles/Makefile.am: Only try to build the metadata-editor example if we have gtk and glade (otherwise the build would just fail ...); fix build in uninstalled setup. * tests/icles/metadata_editor.c: (on_cell_edited), (ui_add_columns): Fix compiler warnings (use GLib macros to cast pointer <-> int). --- tests/icles/metadata_editor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/icles/metadata_editor.c') diff --git a/tests/icles/metadata_editor.c b/tests/icles/metadata_editor.c index 69d9c29a..7b318761 100644 --- a/tests/icles/metadata_editor.c +++ b/tests/icles/metadata_editor.c @@ -398,7 +398,7 @@ on_cell_edited (GtkCellRendererText * renderer, gchar * str_path, GtkTreePath *path = NULL; GtkTreeIter iter; GtkTreeModel *model = NULL; - const guint32 col_index = (guint32) user_data; + const gint col_index = GPOINTER_TO_INT (user_data); const gchar *tag = gtk_entry_get_text (ui_entry_insert_tag); path = gtk_tree_path_new_from_string (str_path); @@ -459,7 +459,7 @@ ui_add_columns (GtkTreeView * tree_view, const gchar * title, gint col_index, if (editable) { g_object_set (renderer, "editable", TRUE, NULL); g_signal_connect (G_OBJECT (renderer), "edited", - G_CALLBACK (on_cell_edited), (gpointer) col_index); + G_CALLBACK (on_cell_edited), GINT_TO_POINTER (col_index)); } if ((tree_col = gtk_tree_view_column_new_with_attributes (title, renderer, -- cgit v1.2.1