Fix storage of external editor icons

De-serialize and serialize icons instead of using their names.
This commit is contained in:
Lawrence Lee
2021-08-14 17:11:07 -07:00
parent d3e524a491
commit 672d6302f3
7 changed files with 75 additions and 31 deletions

View File

@@ -41,7 +41,7 @@ public:
explicit EditorInfo(
Glib::ustring name = Glib::ustring(),
Glib::ustring command = Glib::ustring(),
Glib::ustring icon_name = Glib::ustring(),
Glib::ustring icon_serialized = Glib::ustring(),
void *other_data = nullptr
);
/**
@@ -49,9 +49,9 @@ public:
*/
Glib::ustring name;
/**
* The string representation of the icon. See Gio::Icon::to_string().
* The string representation of the icon. See Gio::Icon::serialize().
*/
Glib::ustring icon_name;
Glib::ustring icon_serialized;
/**
* The commandline for running the program. See
* Gio::AppInfo::get_commandline()