Re: modify_bg fails on windowless widget should produce gtk_warning
- From: george young <gry ll mit edu>
- To: gtk-app-devel-list gnome org
- Subject: Re: modify_bg fails on windowless widget should produce gtk_warning
- Date: Wed, 21 Jul 2004 09:46:07 -0400
On Tue, 20 Jul 2004 10:34:24 -0400
george young <gry ll mit edu> threw this fish to the penguins:
[gtk+-2.4, pytgk-2.0.0]
When I do modify_bg on a Frame widget, nothing happens. I understand
(after hours of hacking) that this is because a Frame has no window.
It's fine that it fails, this is just an aspect of the toolkit, but
is there some reason it can't emit a warning to stderr (or where ever
warnings are being emitted/logged), so the app developer doesn't waste
time tracking down a silent failure?
It looks like there's a GTK_WIDGET_NO_WINDOW (widget) that could be
easily tested...
I stand corrected, GTK_WIDGET_NO_WINDOW is not on point here.
Nonetheless, there is a set of widgets that do not change color when
modify_bg is applied, and do not emit any warning or error. The case
I ran into was a VBox, but I gather there are several:
Alignment
AspectFrame
Arrow
Bin
HBox
VBox
Frame
Image
Label
Pixmap
ScrolledWindow
HSeparator
VSeparator
Table
[from http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq03.005.htp]
--
"Are the gods not just?" "Oh no, child.
What would become of us if they were?" (CSL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]