From 1bfcf9ba16ca0ff12ae08f1bdf0a891f4ad73457 Mon Sep 17 00:00:00 2001 From: BST 2002 Tony Gale Date: Sat, 24 Aug 2002 11:53:26 +0000 Subject: update g_connect_signal usage Sat Aug 24 12:46:37 BST 2002 Tony Gale * docs/tutorial/gtk-tut.sgml, examples/*: update g_connect_signal usage * docs/faq/gtk-faq.html: spelling/grammar fixes --- examples/rangewidgets/rangewidgets.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/rangewidgets') diff --git a/examples/rangewidgets/rangewidgets.c b/examples/rangewidgets/rangewidgets.c index eeb311d6eb..457dd6a4a3 100644 --- a/examples/rangewidgets/rangewidgets.c +++ b/examples/rangewidgets/rangewidgets.c @@ -59,7 +59,7 @@ GtkWidget *make_menu_item (gchar *name, item = gtk_menu_item_new_with_label (name); g_signal_connect (G_OBJECT (item), "activate", - callback, data); + callback, (gpointer) data); gtk_widget_show (item); return item; @@ -248,7 +248,7 @@ void create_range_controls( void ) adj2 = gtk_adjustment_new (1.0, 1.0, 101.0, 1.0, 1.0, 0.0); g_signal_connect (G_OBJECT (adj2), "value_changed", - G_CALLBACK (cb_page_size), adj1); + G_CALLBACK (cb_page_size), (gpointer) adj1); scale = gtk_hscale_new (GTK_ADJUSTMENT (adj2)); gtk_scale_set_digits (GTK_SCALE (scale), 0); gtk_box_pack_start (GTK_BOX (box2), scale, TRUE, TRUE, 0); -- cgit v1.2.1