GtkButton GtkHScale
- From: Johannes Postma <jhnns hccnet nl>
- To: gtk-app-devel-list gnome org
- Subject: GtkButton GtkHScale
- Date: Mon, 19 Jul 2004 20:18:19 +0200
Hello,
I have an application with a GtkButton and a GtkHScale.The button is
used to set the value of the GtkHScale. Unfortunately my code doesn't
work. I get the next error:
Gtk-CRITICAL **: file gtkrange.c: line 669 (gtk_range_set_value):
assertion `GTK_IS_RANGE (range)' failed
My code is:
void on_BUTTON_clicked (GtkButton *button, gpointer user_data)
{
GtkHScale *scale = (GtkHScale *)g_object_get_data(G_OBJECT(button),
"hscale1");
gtk_range_set_value(GTK_HSCALE(scale), 0);
}
Can someone help me?
Johannes
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]