From 7ee450758e4f2bee13aa8ff967a5795a6dcdc91f Mon Sep 17 00:00:00 2001 From: Denis Gorodnichev Date: Mon, 2 Jan 2017 23:29:52 +0300 Subject: support desktop actions --- mate-panel/panel-util.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'mate-panel/panel-util.c') diff --git a/mate-panel/panel-util.c b/mate-panel/panel-util.c index 46ff444c..a958a761 100644 --- a/mate-panel/panel-util.c +++ b/mate-panel/panel-util.c @@ -760,20 +760,12 @@ panel_util_cairo_rgbdata_to_pixbuf (unsigned char *data, char * guess_icon_from_exec (GtkIconTheme *icon_theme, - GKeyFile *key_file) + const gchar *exec) { - char *exec; char *icon_name; char *path; - exec = panel_key_file_get_string (key_file, "Exec"); - if (!exec || !exec [0]) { - g_free (exec); - return NULL; - } - icon_name = g_path_get_basename (exec); - g_free (exec); path = panel_find_icon (icon_theme, icon_name, 48); if (!path) { -- cgit v1.2.1