Commits

Daniel Poelzleithner  committed ebee4fc

add parent property to MooPane

  • Participants
  • Parent commits bf6dfd4

Comments (0)

Files changed (1)

File moo/mooutils/moopane.c

     PROP_LABEL,
     PROP_PARAMS,
     PROP_DETACHABLE,
-    PROP_REMOVABLE
+    PROP_REMOVABLE,
+    PROP_PARENT
 };
 
 enum {
         case PROP_REMOVABLE:
             g_value_set_boolean (value, pane->removable != 0);
             break;
+        case PROP_PARENT:
+            g_value_set_object (value, pane->parent);
+            break;
         default:
             G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
     }
         g_param_spec_boolean ("removable", "removable", "removable",
                               TRUE, G_PARAM_READWRITE));
 
+    g_object_class_install_property (gobject_class, PROP_PARENT,
+        g_param_spec_object ("parent", "parent", "parent",
+                             MOO_TYPE_PANED, G_PARAM_READABLE));
+
     signals[REMOVE] =
             g_signal_new ("remove",
                           G_OBJECT_CLASS_TYPE (klass),
     gtk_container_remove (GTK_CONTAINER (old_container), widget);
     gtk_container_add (GTK_CONTAINER (new_container), widget);
     g_object_unref (widget);
+
+//    gtk_widget_reparent(widget, new_container);
 }
 
 void