summaryrefslogtreecommitdiff
path: root/examples/rangewidgets
diff options
context:
space:
mode:
authorBST 2002 Tony Gale <gale@gtk.org>2002-08-24 11:53:26 +0000
committerTony Gale <gale@src.gnome.org>2002-08-24 11:53:26 +0000
commit1bfcf9ba16ca0ff12ae08f1bdf0a891f4ad73457 (patch)
tree8a4daa7edd4a34ce5059389b80e5d39f0352d6a6 /examples/rangewidgets
parentc22b614565cd30079a0eaf7534f1a3f4f2819c6b (diff)
downloadgtk+-1bfcf9ba16ca0ff12ae08f1bdf0a891f4ad73457.tar.gz
update g_connect_signal usage
Sat Aug 24 12:46:37 BST 2002 Tony Gale <gale@gtk.org> * docs/tutorial/gtk-tut.sgml, examples/*: update g_connect_signal usage * docs/faq/gtk-faq.html: spelling/grammar fixes
Diffstat (limited to 'examples/rangewidgets')
-rw-r--r--examples/rangewidgets/rangewidgets.c4
1 files changed, 2 insertions, 2 deletions
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);