LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-17-2004, 01:39 PM   #1
jpostma
Member
 
Registered: Jun 2003
Location: Alphen ad Rijn -- The Netherlands
Distribution: Fedora Core 2 - Slackware 12
Posts: 119

Rep: Reputation: 15
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Learning C with Glade/for GTK+ J_K9 Programming 4 10-31-2005 02:21 PM
showing windows with Glade/GTK cho Programming 1 06-22-2005 04:38 PM
Glade / GTK 2.4 Kane635 Linux - Software 0 09-07-2004 07:53 PM
Help with GTK and Glade autogen gtkmike Programming 0 06-13-2004 04:21 PM
Using optionmenu with Glade/GTk robw Programming 0 11-16-2003 03:38 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration