summaryrefslogtreecommitdiff
path: root/tests/testentrycompletion.c
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2004-10-28 15:00:05 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-10-28 15:00:05 +0000
commitd5f92150d4b8bffb78cd5110cbb2c28bfdf81136 (patch)
tree0d79978a95c24dcbdb2d9fd577dedf0da2795ece /tests/testentrycompletion.c
parentdbba41045ecb383810fb8962ee9b83998a89c37d (diff)
downloadgtk+-d5f92150d4b8bffb78cd5110cbb2c28bfdf81136.tar.gz
Fix many sparse warnings.
Diffstat (limited to 'tests/testentrycompletion.c')
-rw-r--r--tests/testentrycompletion.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testentrycompletion.c b/tests/testentrycompletion.c
index 01bd203309..0f7a74f761 100644
--- a/tests/testentrycompletion.c
+++ b/tests/testentrycompletion.c
@@ -217,7 +217,7 @@ animation_timer (GtkEntryCompletion *completion)
{
g_print ("readding model!\n");
- gtk_entry_completion_set_model (completion, old_store);
+ gtk_entry_completion_set_model (completion, GTK_TREE_MODEL(old_store));
g_object_unref (old_store);
old_store = NULL;
}
@@ -342,7 +342,7 @@ main (int argc, char *argv[])
gtk_entry_completion_insert_action_text (completion, 100, "action!");
gtk_entry_completion_insert_action_text (completion, 101, "'nother action!");
- g_signal_connect (completion, "action_activated", G_CALLBACK (activated_cb), 0);
+ g_signal_connect (completion, "action_activated", G_CALLBACK (activated_cb), NULL);
/* Create our third entry */
entry = gtk_entry_new ();