diff options
author | Thomas Thurman <tthurman@gnome.org> | 2009-10-27 00:58:55 -0400 |
---|---|---|
committer | Thomas Thurman <tthurman@gnome.org> | 2009-10-27 00:58:55 -0400 |
commit | 0eb1910e9558e63f28724a0ebb016b6deff40edf (patch) | |
tree | 81e6ed98206231f914cd356c34d6976645dbc765 | |
parent | ce3209c379d29d227764b45487b514067e32c0b9 (diff) | |
download | metacity-0eb1910e9558e63f28724a0ebb016b6deff40edf.tar.gz |
take images from directory according to theme
-rw-r--r-- | src/ui/theme.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ui/theme.c b/src/ui/theme.c index f748e3a6..2970f37f 100644 --- a/src/ui/theme.c +++ b/src/ui/theme.c @@ -254,23 +254,24 @@ cowbell_url (GSList const *args, /* also to check if the file exists! */ char *filename = NULL; + MetaTheme **theme = (MetaTheme**) user_data; g_return_val_if_fail (args && args->data, NULL); filename = (char*) args->data; if (strcmp (filename, "wm:icon")==0) { - return g_strdup_printf ("file:///usr/share/icons/gnome/24x24/actions/gtk-edit.png"); + return g_strdup ("file:///usr/share/icons/gnome/24x24/actions/gtk-edit.png"); } else { - return g_strdup_printf ("file:///home/tthurman/.themes/Human/%s", filename); + return g_strdup_printf ("file://%s/%s", (*theme)->directory, filename); } } static ccss_function_t const cowbell_functions[] = { - { "url", cowbell_url, NULL }, + { "url", cowbell_url, &the_theme }, { NULL } }; |