[Xfce4-commits] [apps/xfdashboard] 01/01: Check for valid outline effect before enabling or disabling outline
noreply at xfce.org
noreply at xfce.org
Thu May 21 21:46:49 CEST 2015
This is an automated email from the git hooks/post-receive script.
nomad pushed a commit to branch master
in repository apps/xfdashboard.
commit a0d77953b857c442c4628093745560ac842dd8ec
Author: Stephan Haller <nomad at froevel.de>
Date: Thu May 21 21:46:13 2015 +0200
Check for valid outline effect before enabling or disabling outline
---
xfdashboard/background.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/xfdashboard/background.c b/xfdashboard/background.c
index 21c2b8a..a26cd68 100644
--- a/xfdashboard/background.c
+++ b/xfdashboard/background.c
@@ -600,10 +600,13 @@ void xfdashboard_background_set_background_type(XfdashboardBackground *self, con
if(priv->fillCanvas) clutter_content_invalidate(priv->fillCanvas);
/* Enable or disable drawing outline */
- if(inType & XFDASHBOARD_BACKGROUND_TYPE_OUTLINE) enableOutline=TRUE;
- else enableOutline=FALSE;
+ if(priv->outline)
+ {
+ if(inType & XFDASHBOARD_BACKGROUND_TYPE_OUTLINE) enableOutline=TRUE;
+ else enableOutline=FALSE;
- clutter_actor_meta_set_enabled(CLUTTER_ACTOR_META(priv->outline), enableOutline);
+ clutter_actor_meta_set_enabled(CLUTTER_ACTOR_META(priv->outline), enableOutline);
+ }
/* Notify about property change */
g_object_notify_by_pspec(G_OBJECT(self), XfdashboardBackgroundProperties[PROP_TYPE]);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list