[gnome-boxes] Set names on clutter actors for easier debugging
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Set names on clutter actors for easier debugging
- Date: Fri, 8 Jun 2012 07:44:06 +0000 (UTC)
commit 6cf938f4eae45dfe828988816de536b78c58acc9
Author: Alexander Larsson <alexl redhat com>
Date: Thu Jun 7 18:13:22 2012 +0200
Set names on clutter actors for easier debugging
https://bugzilla.gnome.org/show_bug.cgi?id=677274
src/app.vala | 8 ++++++++
src/collection-view.vala | 1 +
src/machine.vala | 1 +
src/properties.vala | 1 +
src/sidebar.vala | 1 +
src/topbar.vala | 1 +
src/wizard.vala | 1 +
7 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/src/app.vala b/src/app.vala
index bbfec3b..9965a2d 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -375,6 +375,7 @@ private class Boxes.App: Boxes.UI {
stage_bin = new Clutter.BinLayout (Clutter.BinAlignment.FIXED,
Clutter.BinAlignment.FIXED);
stage.set_layout_manager (stage_bin);
+ stage.name = "boxes-stage";
sidebar = new Sidebar (this);
view = new CollectionView (this, sidebar.category);
@@ -385,6 +386,7 @@ private class Boxes.App: Boxes.UI {
properties = new Properties (this);
var vbox_actor = new Clutter.Actor ();
+ vbox_actor.name = "top-vbox";
var vbox = new Clutter.BoxLayout ();
vbox_actor.set_layout_manager (vbox);
vbox.set_vertical (true);
@@ -394,10 +396,12 @@ private class Boxes.App: Boxes.UI {
Clutter.BinAlignment.FILL);
topbar_revealer = new Boxes.Revealer (true);
+ topbar_revealer.name = "topbar-revealer";
vbox.pack (topbar_revealer, false, true, true, Clutter.BoxAlignment.START, Clutter.BoxAlignment.START);
topbar_revealer.add (topbar.actor);
var below_bin_actor = new Clutter.Actor ();
+ below_bin_actor.name = "below-bin";
var below_bin = new Clutter.BinLayout (Clutter.BinAlignment.FIXED,
Clutter.BinAlignment.FIXED);
below_bin_actor.set_layout_manager (below_bin);
@@ -409,6 +413,7 @@ private class Boxes.App: Boxes.UI {
Clutter.BinAlignment.FILL);
var hbox_actor = new Clutter.Actor ();
+ hbox_actor.name = "top-hbox";
var hbox = new Clutter.BoxLayout ();
hbox_actor.set_layout_manager (hbox);
@@ -417,6 +422,7 @@ private class Boxes.App: Boxes.UI {
Clutter.BinAlignment.FILL);
overlay_bin_actor = new Clutter.Actor ();
+ overlay_bin_actor.name = "overlay-bin";
overlay_bin = new Clutter.BinLayout (Clutter.BinAlignment.FIXED,
Clutter.BinAlignment.FIXED);
overlay_bin_actor.set_layout_manager (overlay_bin);
@@ -428,11 +434,13 @@ private class Boxes.App: Boxes.UI {
Clutter.BinAlignment.FILL);
sidebar_revealer = new Boxes.Revealer (false);
+ sidebar_revealer.name = "sidebar-revealer";
hbox.pack (sidebar_revealer, false, true, true, Clutter.BoxAlignment.START, Clutter.BoxAlignment.START);
sidebar_revealer.unreveal ();
sidebar_revealer.add (sidebar.actor);
var content_bin_actor = new Clutter.Actor ();
+ content_bin_actor.name = "content-bin";
var content_bin = new Clutter.BinLayout (Clutter.BinAlignment.FILL,
Clutter.BinAlignment.FILL);
content_bin_actor.set_layout_manager (content_bin);
diff --git a/src/collection-view.vala b/src/collection-view.vala
index 7a7ddbd..eb2c519 100644
--- a/src/collection-view.vala
+++ b/src/collection-view.vala
@@ -217,5 +217,6 @@ private class Boxes.CollectionView: Boxes.UI {
scrolled_window.show_all ();
gtkactor = new GtkClutter.Actor.with_contents (scrolled_window);
+ gtkactor.name = "collection-view";
}
}
diff --git a/src/machine.vala b/src/machine.vala
index 058c71f..d268cda 100644
--- a/src/machine.vala
+++ b/src/machine.vala
@@ -409,6 +409,7 @@ private class Boxes.MachineActor: Boxes.UI {
var widget = machine.app.display_page.remove_display ();
machine.display.set_enable_inputs (widget, false);
display = new GtkClutter.Actor.with_contents (widget);
+ display.name = "properties-thumbnail";
machine.app.overlay_bin.add (display,
Clutter.BinAlignment.FILL,
Clutter.BinAlignment.FILL);
diff --git a/src/properties.vala b/src/properties.vala
index 630a0be..2b17f52 100644
--- a/src/properties.vala
+++ b/src/properties.vala
@@ -136,6 +136,7 @@ private class Boxes.Properties: Boxes.UI {
notebook.show_tabs = false;
notebook.get_style_context ().add_class ("boxes-bg");
gtk_actor = new GtkClutter.Actor.with_contents (notebook);
+ gtk_actor.name = "properties";
gtk_actor.opacity = 0;
/* topbar */
diff --git a/src/sidebar.vala b/src/sidebar.vala
index 60f4f7f..b255927 100644
--- a/src/sidebar.vala
+++ b/src/sidebar.vala
@@ -128,6 +128,7 @@ private class Boxes.Sidebar: Boxes.UI {
private void setup_sidebar () {
notebook = new Gtk.Notebook ();
gtk_actor = new GtkClutter.Actor.with_contents (notebook);
+ gtk_actor.name = "sidebar";
notebook.get_style_context ().add_class ("boxes-sidebar-bg");
notebook.set_size_request ((int) width, 100);
notebook.show_tabs = false;
diff --git a/src/topbar.vala b/src/topbar.vala
index 47ec350..78d8326 100644
--- a/src/topbar.vala
+++ b/src/topbar.vala
@@ -41,6 +41,7 @@ private class Boxes.Topbar: Boxes.UI {
notebook = new Gtk.Notebook ();
notebook.set_size_request (50, (int) height);
gtk_actor = new GtkClutter.Actor.with_contents (notebook);
+ gtk_actor.name = "topbar";
/* TopbarPage.COLLECTION */
var hbox = new Gtk.HBox (false, 0);
diff --git a/src/wizard.vala b/src/wizard.vala
index 20a48b5..6326188 100644
--- a/src/wizard.vala
+++ b/src/wizard.vala
@@ -387,6 +387,7 @@ private class Boxes.Wizard: Boxes.UI {
notebook.show_tabs = false;
notebook.get_style_context ().add_class ("boxes-bg");
gtk_actor = new GtkClutter.Actor.with_contents (notebook);
+ gtk_actor.name = "wizard";
gtk_actor.opacity = 0;
/* Introduction */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]