[metacity/cowbell] added url loading function



commit 78da50398d921831af66b26e4e325bd9c91500d4
Author: Thomas Thurman <tthurman gnome org>
Date:   Sat Oct 17 01:15:08 2009 -0400

    added url loading function

 src/ui/theme.c |   19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/src/ui/theme.c b/src/ui/theme.c
index 287dd1d..761aa83 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 }
 };
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]