[pinpoint] blank screen when B is pressed
- From: Ãyvind KolÃs <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pinpoint] blank screen when B is pressed
- Date: Sat, 19 Nov 2011 23:14:10 +0000 (UTC)
commit 92e553a47504a44b04fc28267877494116cdb296
Author: Ãyvind KolÃs <pippin gimp org>
Date: Sat Nov 19 23:07:46 2011 +0000
blank screen when B is pressed
Suggested by Arnaus Installe
introduction.pin | 3 +++
pp-clutter.c | 13 ++++++++++++-
2 files changed, 15 insertions(+), 1 deletions(-)
---
diff --git a/introduction.pin b/introduction.pin
index bdf04b5..fb53f95 100644
--- a/introduction.pin
+++ b/introduction.pin
@@ -129,6 +129,9 @@ right, down or space - next slide
-- [transition=slide-left] [duration=4.702688]
left or up - previous slide
+-- [transition=sheet] [duration=3.435221]
+B - blanking of screen
+
-- [transition=slide-up] [duration=3.435221]
F11 - toggle fullscreen!
diff --git a/pp-clutter.c b/pp-clutter.c
index e3b2cba..1136033 100644
--- a/pp-clutter.c
+++ b/pp-clutter.c
@@ -96,6 +96,7 @@ typedef struct _ClutterRenderer
ClutterActor *foreground;
ClutterActor *json_layer;
+ ClutterActor *curtain;
ClutterActor *commandline;
ClutterActor *commandline_shading;
@@ -789,6 +790,7 @@ clutter_renderer_init (PinPointRenderer *pp_renderer,
renderer->stage = stage = clutter_stage_new ();
renderer->root = clutter_group_new ();
+ renderer->curtain = clutter_rectangle_new_with_color (&black);
renderer->rest_y = STARTPOS;
renderer->background = clutter_group_new ();
renderer->midground = clutter_group_new ();
@@ -798,15 +800,17 @@ clutter_renderer_init (PinPointRenderer *pp_renderer,
renderer->commandline_shading = clutter_rectangle_new_with_color (&black);
renderer->commandline = clutter_text_new ();
+ clutter_actor_set_size (renderer->curtain, 10000, 10000);
+ clutter_actor_hide (renderer->curtain);
clutter_actor_set_opacity (renderer->shading, 0x77);
clutter_actor_set_opacity (renderer->commandline_shading, 0x77);
clutter_container_add_actor (CLUTTER_CONTAINER (renderer->midground),
renderer->shading);
-
clutter_container_add (CLUTTER_CONTAINER (renderer->stage),
renderer->root,
+ renderer->curtain,
NULL);
clutter_container_add (CLUTTER_CONTAINER (renderer->root),
renderer->background,
@@ -1372,6 +1376,13 @@ key_pressed (ClutterActor *actor,
case CLUTTER_Tab:
activate_commandline (renderer);
break;
+ case CLUTTER_b:
+ case CLUTTER_B:
+ if (CLUTTER_ACTOR_IS_VISIBLE (renderer->curtain))
+ clutter_actor_hide (renderer->curtain);
+ else
+ clutter_actor_show (renderer->curtain);
+ break;
}
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]