question
- From: "Kemal 'Disq' Hadimli" <disq iname com>
- To: gtk-list redhat com
- Subject: question
- Date: Sun, 25 Oct 1998 19:51:49 +0000 (GMT)
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]