[9596] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: question
daemon@ATHENA.MIT.EDU (Tim Janik)
Tue Oct 27 15:35:42 1998
From: Tim Janik <timj@gtk.org>
Date: Tue, 27 Oct 1998 20:54:52 +0100 (CET)
To: "Kemal 'Disq' Hadimli" <disq@iname.com>
cc: Gtk+ MList <gtk-list@redhat.com>
In-Reply-To: <Pine.LNX.3.96.981025182904.4269B-100000@heart.of.gold>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
On Sun, 25 Oct 1998, Kemal 'Disq' Hadimli wrote:
>
> 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(
use gtk_check_menu_item_set_state (GTKCHECK_MENU_ITEM (....
here.
> 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.
that's beacuse you referred to the check menu item as a toggle button.
>
> bye,
> disqk
>
---
ciaoTJ
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null