Author: everaldo
Date: 2007-06-08 20:54:56 -0400 (Fri, 08 Jun 2007)
New Revision: 79024

Modified:
   trunk/moon/plugin/ChangeLog
   trunk/moon/plugin/moon-plugin.cpp
Log:
        * moon-plugin.cpp: Add canvas, connect it to surface and get demo 
working
        back.

2007-06-08  Everaldo Canuto  <[EMAIL PROTECTED]>



Modified: trunk/moon/plugin/ChangeLog
===================================================================
--- trunk/moon/plugin/ChangeLog 2007-06-09 00:20:16 UTC (rev 79023)
+++ trunk/moon/plugin/ChangeLog 2007-06-09 00:54:56 UTC (rev 79024)
@@ -1,5 +1,10 @@
 2007-06-08  Everaldo Canuto  <[EMAIL PROTECTED]>
 
+       * moon-plugin.cpp: Add canvas, connect it to surface and get demo 
working
+       back.
+
+2007-06-08  Everaldo Canuto  <[EMAIL PROTECTED]>
+
        * moon-plugin.h,
        * moon-plugin.cpp: Rename CreateControls to CreateWindow.
 

Modified: trunk/moon/plugin/moon-plugin.cpp
===================================================================
--- trunk/moon/plugin/moon-plugin.cpp   2007-06-09 00:20:16 UTC (rev 79023)
+++ trunk/moon/plugin/moon-plugin.cpp   2007-06-09 00:54:56 UTC (rev 79024)
@@ -33,6 +33,7 @@
        SolidColorBrush *scb = new SolidColorBrush ();
        solid_color_brush_set_color (scb, c);
        shape_set_stroke (r, scb);
+       panel_child_add (canvas, r);
 
 #if VIDEO_DEMO
        UIElement *v, *v2;
@@ -43,9 +44,6 @@
        v2 = video_new ("/home/everaldo/sawamu.wmv", 100, 30);
        panel_child_add (canvas, v2);
 #endif 
-       panel_child_add (canvas, r);
-
-       //gtk_timeout_add (60, repaint, w);
 }
 
 static void moon_plugin_menu_about (PluginInstance *plugin)
@@ -235,8 +233,12 @@
        g_signal_connect (G_OBJECT(this->container), "event", G_CALLBACK 
(plugin_event_callback), this);
 
 #ifdef DEMO
+       this->canvas = new Canvas ();
        this->surface = surface_new (window->width, window->height);
+       surface_attach (this->surface, canvas);
        gtk_container_add (GTK_CONTAINER (container), 
this->surface->drawing_area);
+
+       moon_plugin_demo (this->canvas);
 #else
        GtkWidget *label = gtk_label_new (PLUGIN_OURNAME" "PLUGIN_OURVERSION);
        gtk_misc_set_alignment (GTK_MISC (label), 0, 0);

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to