[PATCH] Fix sensitivity of close button on new file dialog (https://bugzilla.gnome.org/show_bug.cgi?id=629136)

Guilherme Salgado gsalgado at gmail.com
Thu Aug 1 09:17:30 EDT 2013


Hi there,

This is a simple patch to fix that bug...

The sensitivity of the close button is handled by
gnc_main_window_switch_page(), which makes it insensitive when the
page is immutable. However, that function is obviously not called when
you hit 'File -> New File' and cancel it, so the close button
sensitivity doesn't get updated.

One way to fix this is to move the code responsible for updating the
close button sensitiveness to gnc_main_window_generate_title, where
the sensitivity of the save button is handled. Having that as a
side-effect of an unrelated function is certainly not the most elegant
solution, but since the sensitivity of the save button is already
handled there, I thought I'd give it a try and see what others think.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Move-the-code-that-updates-the-sensitivity-of-immuta.patch
Type: application/octet-stream
Size: 2538 bytes
Desc: not available
URL: <http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20130801/1ffcedef/attachment.obj>


More information about the gnucash-devel mailing list