[gnome-clocks/clutter] embed: add embed actor to the stage
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks/clutter] embed: add embed actor to the stage
- Date: Fri, 24 Aug 2012 11:21:36 +0000 (UTC)
commit 9d5419a73fb60ba34cd0bc640b996cba234b7b1f
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Fri Aug 24 13:20:11 2012 +0200
embed: add embed actor to the stage
And make sure to show the vbox's children.
gnomeclocks/app.py | 1 +
gnomeclocks/widgets.py | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gnomeclocks/app.py b/gnomeclocks/app.py
index 47045b0..6139301 100644
--- a/gnomeclocks/app.py
+++ b/gnomeclocks/app.py
@@ -79,6 +79,7 @@ class Window(Gtk.ApplicationWindow):
self.world.connect("show-clock", self._on_show_clock)
self.toolbar.connect("view-clock", self._on_view_clock)
+ vbox.show_all()
self.show_all()
self.toolbar.selection_toolbar.hide()
diff --git a/gnomeclocks/widgets.py b/gnomeclocks/widgets.py
index 56bd75a..4fd1b5c 100644
--- a/gnomeclocks/widgets.py
+++ b/gnomeclocks/widgets.py
@@ -754,6 +754,7 @@ class Embed (GtkClutter.Embed):
constraint.set_source(self.stage)
constraint.set_coordinate(Clutter.BindCoordinate.SIZE)
self.actor.add_constraint(constraint)
+ self.stage.add_actor(self.actor)
self._contentsLayout = Clutter.BoxLayout()
self._contentsLayout.set_vertical(True)
@@ -773,7 +774,6 @@ class Embed (GtkClutter.Embed):
self._notebookActor = GtkClutter.Actor.new_with_contents(self._notebook)
self._overlayLayout.add(self._notebookActor, Clutter.BinAlignment.FILL, Clutter.BinAlignment.FILL)
self.show_all()
- self._notebook.show_all()
################################################################################
# Main
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]