[Glade-devel] Why does glade delete property lines with can_focus=False?



On Thu, 2006-07-13 at 17:38 +0200, Michael Burian wrote:
I'm using glade 2.12.1-5 from Debian etch and fell over this bug[1]

[1]
http://bugzilla.gnome.org/show_bug.cgi?id=322340

As a workaround I first had to enabled it in glade,
and later change it by hand to get:

<property name="can_focus">False</property>

Are there any, probably non-obvious, reasons that prevent this bug from
being fixed?

The problem is that different widgets have different default settings
for can_focus, so it isn't trivial to fix. We could just always write
out the can_focus setting, but it isn't needed 99.9% of the time so is a
bit wasteful.


Or should it be fixed somewhere else, by makeing "can_focus=False" the
default behavior when the line missing or something?

I've got a couple of buttons in a VBox that must not get the focus, and
it's pretty anoying having to fix this by hand after each Open/Save cycle.

I'd suggest you set can_focus to FALSE in your code instead. That is
easy to do.

Damon






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