summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Thurman <tthurman@gnome.org>2009-10-17 01:15:08 -0400
committerThomas Thurman <tthurman@gnome.org>2009-10-19 10:49:19 -0400
commit78da50398d921831af66b26e4e325bd9c91500d4 (patch)
treefb21b97766cc6be7b319e8e289ee5ec5fd73f70e
parent5f4d174f733b058163f1f9b19bae82b2fb26770e (diff)
downloadmetacity-78da50398d921831af66b26e4e325bd9c91500d4.tar.gz
added url loading function
-rw-r--r--src/ui/theme.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/ui/theme.c b/src/ui/theme.c
index 287dd1dc..761aa831 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -130,9 +130,26 @@ meta_theme_get_current (void)
return the_theme;
}
+/**
+ * Filters image URLs.
+ *
+ * Currently, we accept two kinds of image URLs:
+ * - "wm:icon", which is the current window icon
+ * - "file:NAME" which loads images from the theme directory.
+ * This may be abbreviated to just NAME.
+ */
+static char *
+cowbell_url (GSList const *args,
+ void *user_data)
+{
+ /* stub */
+
+ return g_strdup ("/usr/share/icons/gnome/24x24/actions/gtk-edit.png");
+}
+
static ccss_function_t const cowbell_functions[] =
{
- /* { "url", url, NULL }, */
+ { "url", cowbell_url, NULL },
{ NULL }
};