[9555] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] question

daemon@ATHENA.MIT.EDU (Kemal 'Disq' Hadimli)
Sun Oct 25 12:51:32 1998

Date: Sun, 25 Oct 1998 19:51:49 +0000 (GMT)
From: "Kemal 'Disq' Hadimli" <disq@iname.com>
Reply-To: "Kemal 'Disq' Hadimli" <disq@iname.com>
To: gtk-list@redhat.com
Resent-From: gtk-list@redhat.com


hello.

 How do i toggle a <CheckItem> or a <ToggleItem> created with
GtkItemFactory?

 I tried using the code below but it didnt work.

gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(gtk_item_factory_get_widget(
   item_factory,"<main>/View/View with blabla")),blablaboolean);


The warnings are:

Gtk-WARNING **: invalid cast from `GtkCheckMenuItem' to `GtkToggleButton'
Gtk-CRITICAL **: file gtktogglebutton.c: line 223
(gtk_toggle_button_set_state): assertion `GTK_IS_TOGGLE_BUTTON
(toggle_button)' failed.



bye,
 disqk





-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post