summaryrefslogtreecommitdiff
path: root/mate-panel/panel-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'mate-panel/panel-util.c')
-rw-r--r--mate-panel/panel-util.c10
1 files changed, 1 insertions, 9 deletions
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) {