diff options
author | Denis Gorodnichev <[email protected]> | 2017-03-20 13:32:41 +0300 |
---|---|---|
committer | Denis Gorodnichev <[email protected]> | 2017-03-20 13:32:41 +0300 |
commit | 533b880f0d64cde423bc3279a401d9e04f80936e (patch) | |
tree | 8d1520c759139829dcafff8e457f509039c688cf | |
parent | 9144f83b9a564a317eaa352b3a1ad5247ec855b7 (diff) | |
download | mate-panel-533b880f0d64cde423bc3279a401d9e04f80936e.tar.bz2 mate-panel-533b880f0d64cde423bc3279a401d9e04f80936e.tar.xz |
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.
-rw-r--r-- | mate-panel/launcher.c | 2 | ||||
-rw-r--r-- | mate-panel/panel-ditem-editor.c | 5 |
2 files changed, 6 insertions, 1 deletions
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"); |