NetworkManager/tui/newt
Dan Winship bbc6434e96 tui: fix selection bugs after deleting a connection
nmt_newt_listbox_clear() did not reset active and active_key, which in
the case of NmtEditConnectionList meant that after the connection list
was rebuilt, the selection would appear to be in the same place, but
active_key would still point to the connection that used to be in that
row, rather than the one currently in that row, so if you immediately
hit Edit or Delete, you'd get unexpected results. (It also meant that
it was possible for the selection to land on a header row instead of a
connection row.)

This was particularly bad in the case of the Delete button, since
active_key would be left pointing to a freed NMConnection in that
case.

Fix NmtNewtListbox, and then add code to NmtEditConnectionList to
preserve the selection itself when rebuilding the list.
2014-03-21 13:32:24 -04:00
..
Makefile.am tui: fix srcdir != builddir build 2014-02-13 18:28:30 +01:00
nmt-newt-button-box.c tui: don't center the buttons in a button box 2014-01-16 09:19:06 -05:00
nmt-newt-button-box.h nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-button.c tui: fix a crash when creating a new connection 2014-01-30 11:43:15 -05:00
nmt-newt-button.h nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-checkbox.c nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-checkbox.h nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-component.c nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-component.h nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-container.c nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-container.h nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-entry-numeric.c trivial: fix a typo in a comment 2014-03-17 09:01:50 +01:00
nmt-newt-entry-numeric.h nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-entry.c nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-entry.h nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-form.c tui: don't expand editor form to fullscreen horizontally 2014-02-17 15:30:04 -05:00
nmt-newt-form.h tui: handle Esc correctly from toplevel windows 2014-02-17 15:30:04 -05:00
nmt-newt-grid.c nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-grid.h nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-hacks.c nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-hacks.h nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-label.c nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-label.h nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-listbox.c tui: fix selection bugs after deleting a connection 2014-03-21 13:32:24 -04:00
nmt-newt-listbox.h trivial: fix variable name in declaration 2014-02-27 13:39:20 -05:00
nmt-newt-popup.c nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-popup.h nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-section.c nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-section.h nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-separator.c nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-separator.h nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-stack.c nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-stack.h nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-textbox.c tui: add nmt_newt_text_width() 2014-01-16 09:19:07 -05:00
nmt-newt-textbox.h nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-toggle-button.c nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-toggle-button.h nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-types.h build: improve our use of glib's version macros to catch more bugs 2014-02-13 11:24:37 -05:00
nmt-newt-utils.c build: improve our use of glib's version macros to catch more bugs 2014-02-13 11:24:37 -05:00
nmt-newt-utils.h tui: add nmt_newt_text_width() 2014-01-16 09:19:07 -05:00
nmt-newt-widget.c tui: fix a crash when creating a new connection 2014-01-30 11:43:15 -05:00
nmt-newt-widget.h nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt.h nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00