From 533b880f0d64cde423bc3279a401d9e04f80936e Mon Sep 17 00:00:00 2001 From: Denis Gorodnichev Date: Mon, 20 Mar 2017 13:32:41 +0300 Subject: setup custom icon restore ability to configure launcher's custom icon which degradated after switching on g_app_info_get_icon also update launcher state after saving launcher's properties. --- mate-panel/launcher.c | 2 ++ mate-panel/panel-ditem-editor.c | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/mate-panel/launcher.c b/mate-panel/launcher.c index 7bbd1cef..052c0b57 100644 --- a/mate-panel/launcher.c +++ b/mate-panel/launcher.c @@ -738,6 +738,8 @@ launcher_saved (GtkWidget *dialog, location = g_filename_from_uri (uri, NULL, NULL); launcher->app_info = g_desktop_app_info_new_from_filename (location); g_free (location); + + setup_button (launcher); } static void diff --git a/mate-panel/panel-ditem-editor.c b/mate-panel/panel-ditem-editor.c index bff453de..02916a9f 100644 --- a/mate-panel/panel-ditem-editor.c +++ b/mate-panel/panel-ditem-editor.c @@ -919,9 +919,12 @@ static void panel_ditem_editor_icon_changed (PanelDItemEditor *dialog, const char *icon) { - if (icon) + if (icon) { + panel_key_file_set_string (dialog->priv->key_file, + "Icon", icon); panel_key_file_set_locale_string (dialog->priv->key_file, "Icon", icon); + } else panel_key_file_remove_all_locale_key (dialog->priv->key_file, "Icon"); -- cgit v1.2.1