[Xfce4-commits] [apps/xfdashboard] 01/02: Make use of new function xfdashboard_application_get_stage() in xfdashboard_traverse_actor() to get root actor (the stage) if NULL was given.
noreply at xfce.org
noreply at xfce.org
Sun Jun 12 22:09:35 CEST 2016
This is an automated email from the git hooks/post-receive script.
nomad pushed a commit to branch master
in repository apps/xfdashboard.
commit ce1738a897fce473adbe79d4514c191e9fae65ac
Author: Stephan Haller <nomad at froevel.de>
Date: Sun Jun 12 21:42:41 2016 +0200
Make use of new function xfdashboard_application_get_stage() in xfdashboard_traverse_actor() to get root actor (the stage) if NULL was given.
---
libxfdashboard/utils.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/libxfdashboard/utils.c b/libxfdashboard/utils.c
index 07cfc3f..78f4cf4 100644
--- a/libxfdashboard/utils.c
+++ b/libxfdashboard/utils.c
@@ -45,6 +45,7 @@
#include <libxfdashboard/stage.h>
#include <libxfdashboard/stage-interface.h>
#include <libxfdashboard/window-tracker.h>
+#include <libxfdashboard/application.h>
#include <libxfdashboard/compat.h>
/* Gobject type for pointer arrays (GPtrArray) */
@@ -478,12 +479,7 @@ void xfdashboard_traverse_actor(ClutterActor *inRootActor,
/* If root actor where begin traversal is NULL then begin at stage */
if(!inRootActor)
{
- ClutterStageManager *stageManager;
- ClutterStage *defaultStage;
-
- stageManager=clutter_stage_manager_get_default();
- defaultStage=clutter_stage_manager_get_default_stage(stageManager);
- inRootActor=CLUTTER_ACTOR(defaultStage);
+ inRootActor=CLUTTER_ACTOR(xfdashboard_application_get_stage(NULL));
}
/* If no selector is provider create a seletor matching all actors.
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list