LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Glade, GTK problem (https://www.linuxquestions.org/questions/programming-9/glade-gtk-problem-206300/)

jpostma 07-17-2004 01:39 PM

Glade, GTK problem
 
I have an application with a button and a hscale. The button is used for setting the value of the hscale.

I got the following error:

(kino:14479): Gtk-CRITICAL **: file gtkrange.c: line 669 (gtk_range_set_value): assertion `GTK_IS_RANGE (range)' failed

The code is:

void
on_BUTTON_clicked (GtkButton *button, gpointer user_data)
{
GtkRange *scale = (GtkRange *)g_object_get_data(G_OBJECT(button), "hscale1");
gtk_range_set_value(GTK_RANGE(scale), 0);
}

I get the next error

(kino:14479): Gtk-CRITICAL **: file gtkrange.c: line 669 (gtk_range_set_value): assertion `GTK_IS_RANGE (range)' failed

Can someone help me?


All times are GMT -5. The time now is 03:40 AM.