Re: [gtk-list] question
- From: Tim Janik <timj gtk org>
- To: "Kemal 'Disq' Hadimli" <disq iname com>
- cc: Gtk+ MList <gtk-list redhat com>
- Subject: Re: [gtk-list] question
- Date: Tue, 27 Oct 1998 20:54:52 +0100 (CET)
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]