Re: cool stuff in cvs head



Bjarne Steinsbø said:

  - After using the popup to select a new entry, the treeview will
consider a dnd operation to have started as soon as the cursor enters
the window.  Looks really weird...  The "workaround" is for the user to
do the drop outside the window...  I've tried various stuff to try to
track this one down, but no luck so far.  In the process I also ran into
a problem when trying to do a "$menu->get_flags".  The xs-code for
Gtk2::Widget said "inhandled case in flag_get - shouldn't happen", but
it certainly did.

after looking at the code there seems the only way you could get that error
message would be to try to set a flag that is read only, drawable or
is_sensitive so i would assume you're trying to set one of those and you
shouldn't be, according to the comments there, but i they don't seem to be in
line with the GtkWidgetFlags structure.

drawable isn't a flag its a macro that looks at whether the widget is visible
and mapped.

is_sensitive is also a macro, it looks at whether the widget is sensitive and
whether its parent is as well. however there is also a sensitive (no is_) that
is both readable and writable so that one should be avaible.

from the looks of it some work on it is needed. i'll reply back to this thread
with what i find.

i've fixed the error message while i was at it:
    unhandled case (%d) in get/set_flags - shouldn't happen
hopefully soon it won't happen.

i'll leave your cell renderer problems for someone familiar with the subject.

-rm



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]