[gnome-shell] StThemeNode: support border-image: none
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] StThemeNode: support border-image: none
- Date: Mon, 21 Mar 2011 13:17:48 +0000 (UTC)
commit adbc1d97a0f64fcc309336e06d095db8fc02d113
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Sun Mar 20 20:49:40 2011 -0400
StThemeNode: support border-image: none
Treat border-image: none as a valid specification that overwrites any
previously specified border image.
https://bugzilla.gnome.org/show_bug.cgi?id=644788
src/st/st-theme-node.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/st/st-theme-node.c b/src/st/st-theme-node.c
index 2a857ab..7adfd13 100644
--- a/src/st/st-theme-node.c
+++ b/src/st/st-theme-node.c
@@ -2518,6 +2518,15 @@ st_theme_node_get_border_image (StThemeNode *node)
char *filename;
+ /* Support border-image: none; to suppress a previously specified border image */
+ if (term_is_none (term))
+ {
+ if (term->next == NULL)
+ return NULL;
+ else
+ goto next_property;
+ }
+
/* First term must be the URL to the image */
if (term->type != TERM_URI)
goto next_property;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]