gnome-shell/src/extensions-tool
Florian Müllner 45fa520cca extensions-tool: Fix removing from settings list
When removing a string from a settings list, we iterate over all
existing entries and copy all strings except the one that's being
removed to a new list, which is then written to GSettings.

However we currently always increment the index, so we end up with
a NULL entry in place of the removed entry, which is then interpreted
as the end of the list. In other words, we also remove all entries
that follow the removed string.

Fix this by looping over the list entries instead of the index, and
only increment the index for entries we copy.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/1946
2019-11-25 21:05:32 +01:00
..
completion/bash extensions-tool: Add 'reset' command 2019-08-21 18:28:02 +02:00
man extensions-tool: Add 'reset' command 2019-08-21 18:28:02 +02:00
template extensions-tool: Implement create command 2019-08-21 18:28:02 +02:00
command-create.c extensions-tool: Add create options 2019-08-21 18:28:02 +02:00
command-disable.c extensions-tool: Adjust enable/disable commands to shell changes 2019-08-21 18:28:02 +02:00
command-enable.c extensions-tool: Adjust enable/disable commands to shell changes 2019-08-21 18:28:02 +02:00
command-info.c extensions-tool: Add info command 2019-08-21 18:28:02 +02:00
command-install.c extensions-tool: Handle existing extension folder 2019-08-21 18:28:02 +02:00
command-list.c extensions-tool: Add '--prefs' list option 2019-08-21 18:28:02 +02:00
command-pack.c extensions-tool: Add 'install' command 2019-08-21 18:28:02 +02:00
command-prefs.c extensions-tool: Add 'prefs' command 2019-08-21 18:28:02 +02:00
command-reset.c extensions-tool: Add 'reset' command 2019-08-21 18:28:02 +02:00
command-uninstall.c extensions-tool: Add 'uninstall' command 2019-08-21 18:28:02 +02:00
commands.h extensions-tool: Add 'reset' command 2019-08-21 18:28:02 +02:00
common.h extensions-tool: Split out settings_list_add/remove helpers 2019-08-21 18:28:02 +02:00
COPYING extensions-tool: Start import 2019-08-21 18:28:02 +02:00
gnome-extensions-tool.gresource.xml extensions-tool: Implement create command 2019-08-21 18:28:02 +02:00
main.c extensions-tool: Fix removing from settings list 2019-11-25 21:05:32 +01:00
meson-src.build extensions-tool: Add 'prefs' command 2019-08-21 18:28:02 +02:00
meson.build extensions-tool: Add 'reset' command 2019-08-21 18:28:02 +02:00