[yelp] [yelp-settings.c] Using URIs instead of file paths for admon icons
- From: Shaun McCance <shaunm src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [yelp] [yelp-settings.c] Using URIs instead of file paths for admon icons
- Date: Wed, 6 Jan 2010 03:56:29 +0000 (UTC)
commit 9cdd2694536c4f98ae1c9961c81abb221c0c57cd
Author: Shaun McCance <shaunm gnome org>
Date: Tue Jan 5 21:48:20 2010 -0600
[yelp-settings.c] Using URIs instead of file paths for admon icons
src/yelp-settings.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/yelp-settings.c b/src/yelp-settings.c
index 3aac246..187503c 100644
--- a/src/yelp-settings.c
+++ b/src/yelp-settings.c
@@ -833,7 +833,7 @@ yelp_settings_params (gchar ***params,
gint *params_max)
{
GtkIconInfo *icon_info;
- gchar *icon_file;
+ gchar *icon_file, *icon_uri;
gint colors_i , icons_i;
if ((*params_i + 2 * (YELP_NUM_COLORS + YELP_NUM_ICONS)) >= *params_max) {
@@ -853,8 +853,11 @@ yelp_settings_params (gchar ***params,
icon_info = yelp_settings_get_icon (icons_i);
if (icon_info) {
icon_file = (gchar *) gtk_icon_info_get_filename (icon_info);
- if (icon_file)
- (*params)[(*params_i)++] = g_strdup_printf ("\"%s\"", icon_file);
+ if (icon_file) {
+ icon_uri = g_filename_to_uri (icon_file, NULL, NULL);
+ (*params)[(*params_i)++] = g_strdup_printf ("\"%s\"", icon_uri);
+ g_free (icon_uri);
+ }
else
(*params)[(*params_i)++] = g_strdup ("\"\"");
gtk_icon_info_free (icon_info);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]