[10439] in The GTK GIMP ToolKit mailing list archive

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

[gtk-list] Gtk+ 1.1.5 gtktoolbar bug ?

daemon@ATHENA.MIT.EDU (Mario Motta)
Wed Nov 25 10:36:14 1998

Date: Wed, 25 Nov 1998 16:24:27 +0100
From: Mario Motta <mmotta@guest.net>
Reply-To: mmotta@guest.net
To: gtk-list@redhat.com
Resent-From: gtk-list@redhat.com

hi all,
seems that in gtk+ 1.1.5 a code like this:
=================================================================
widget = gtk_toolbar_new(orientation,GTK_TOOLBAR_ICONS);
button = gtk_toolbar_append_item (GTK_TOOLBAR (widget),
                                    text, 
                                    tip,
                                    NULL,
                                    pixmap,
                                    GTK_SIGNAL_FUNC(ButtonSignal),
                                    (gpointer) data);
gtk_widget_set_sensitive(button,FALSE);
=================================================================
gets this gdk message:
Gdk-CRITICAL **:
file gdkdraw.c: line 312 (gdk_draw_pixmap): assertion `src != NULL'
failed.
After that no pixmap appears over button.

With "gtk_widget_set_sensitive(button,TRUE);"
or commenting out offending line situation returns normal.
Does the button needs a pixmap also for insensitive state ?
Previous gtk+ version did not show this behaviour. Point me in right
direction, please.

regards
-- 
Mario Motta
AI Research Group - Rimini
mmotta@guest.net
http://www.guest.net/homepages/mmotta/VDKHome/index.htm

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


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