diff options
author | Denis Gorodnichev <[email protected]> | 2017-01-02 23:29:52 +0300 |
---|---|---|
committer | lukefromdc <[email protected]> | 2017-01-13 19:12:06 -0500 |
commit | 7ee450758e4f2bee13aa8ff967a5795a6dcdc91f (patch) | |
tree | 9352174371cbb4c5af49342f4797e4a8514a751c /mate-panel/panel-util.c | |
parent | a27e6eaffa7e3bf72381b63dc9cfecc06125fce2 (diff) | |
download | mate-panel-7ee450758e4f2bee13aa8ff967a5795a6dcdc91f.tar.bz2 mate-panel-7ee450758e4f2bee13aa8ff967a5795a6dcdc91f.tar.xz |
support desktop actions
Diffstat (limited to 'mate-panel/panel-util.c')
-rw-r--r-- | mate-panel/panel-util.c | 10 |
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) { |