[glide] Nammmes



commit ddf94193bca2716589c05da044933a865d9d4b3b
Author: Robert Carr <racarr Valentine localdomain>
Date:   Sat May 1 22:28:41 2010 -0400

    Nammmes

 data/ui/glide-window.ui |    2 ++
 src/glide-actor.c       |   16 ++++++++++++++++
 2 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/data/ui/glide-window.ui b/data/ui/glide-window.ui
index 88686ae..33e4b81 100644
--- a/data/ui/glide-window.ui
+++ b/data/ui/glide-window.ui
@@ -664,6 +664,8 @@
             </child>
           </object>
           <packing>
+            <property name="expand">False</property>
+            <property name="fill">False</property>
             <property name="position">3</property>
           </packing>
         </child>
diff --git a/src/glide-actor.c b/src/glide-actor.c
index 8332b03..0c6d5e9 100644
--- a/src/glide-actor.c
+++ b/src/glide-actor.c
@@ -48,6 +48,16 @@ enum {
 
 static guint actor_signals[LAST_SIGNAL] = { 0, };
 
+static gchar *
+glide_actor_generate_name ()
+{
+  static int i = 0;
+  
+  i++;
+  return g_strdup_printf("actor%d", i);
+}
+
+
 static void
 glide_actor_finalize (GObject *object)
 {
@@ -186,9 +196,15 @@ glide_actor_class_init (GlideActorClass *klass)
 static void
 glide_actor_init (GlideActor *actor)
 {
+  gchar *name;
   actor->priv = GLIDE_ACTOR_GET_PRIVATE (actor);
   
+  name = glide_actor_generate_name ();
+  
   clutter_actor_set_reactive (CLUTTER_ACTOR (actor), TRUE);
+  clutter_actor_set_name (CLUTTER_ACTOR (actor), name);
+  
+  g_free (name);
 }
 
 GlideStageManager *



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]