Author: miguel
Date: 2007-06-19 11:48:43 -0400 (Tue, 19 Jun 2007)
New Revision: 80183

Modified:
   trunk/moon/src/ChangeLog
   trunk/moon/src/runtime.cpp
   trunk/moon/src/runtime.h
Log:
2007-06-19  Jackson Harper  <[EMAIL PROTECTED]>

        * xaml.cpp\runtime.h: Add a public function for setting
        properties, from strings.  Basically a copy and paste of my

Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog    2007-06-19 15:47:13 UTC (rev 80182)
+++ trunk/moon/src/ChangeLog    2007-06-19 15:48:43 UTC (rev 80183)
@@ -13,8 +13,11 @@
 
 2007-06-19  Miguel de Icaza  <[EMAIL PROTECTED]>
 
-       * runtime.cpp: Add support for resizing objects.
+       * runtime.cpp: Add support for notifying the consumer that the
+       surface has resized.
 
+       Add support for resizing objects.
+
 2007-06-19  Jeffrey Stedfast  <[EMAIL PROTECTED]>
 
        * brush.cpp (~VideoBrush): We want to detach from the media

Modified: trunk/moon/src/runtime.cpp
===================================================================
--- trunk/moon/src/runtime.cpp  2007-06-19 15:47:13 UTC (rev 80182)
+++ trunk/moon/src/runtime.cpp  2007-06-19 15:48:43 UTC (rev 80183)
@@ -1389,12 +1389,13 @@
 {
        Surface *s = (Surface *) user_data;
 
-       printf ("Size allocate from %d %d to %d %d\n",
-               s->width, s->height, allocation->width, allocation->height);
        if (s->width != allocation->width || s->height != allocation->height){
                s->width = allocation->width;
                s->height = allocation->height;
 
+               if (s->cb_surface_resize != NULL)
+                       s->cb_surface_resize (s->toplevel);
+
                surface_realloc (s);
                gtk_widget_queue_draw_area ((GtkWidget *) s->drawing_area,
                                            0, 0, allocation->width, 
allocation->height);
@@ -2738,7 +2739,7 @@
                              callback_mouse_event motion, callback_mouse_event 
down, callback_mouse_event up,
                              callback_mouse_event enter,
                              callback_plain_event got_focus, 
callback_plain_event lost_focus,
-                             callback_plain_event loaded, callback_plain_event 
mouse_leave,
+                             callback_plain_event loaded, callback_plain_event 
mouse_leave, callback_plain_event surface_resize,
                              callback_keyboard_event keydown, 
callback_keyboard_event keyup)
 {
        s->cb_motion = motion;
@@ -2751,5 +2752,6 @@
        s->cb_mouse_leave = mouse_leave;
        s->cb_keydown = keydown;
        s->cb_keyup = keyup;
+       s->cb_surface_resize = surface_resize;
 }
 

Modified: trunk/moon/src/runtime.h
===================================================================
--- trunk/moon/src/runtime.h    2007-06-19 15:47:13 UTC (rev 80182)
+++ trunk/moon/src/runtime.h    2007-06-19 15:48:43 UTC (rev 80183)
@@ -871,7 +871,7 @@
                xlib_surface(NULL), cairo_xlib(NULL), pixmap(NULL),
                using_cairo_xlib_surface(0), pixbuf(NULL),
                cb_motion(NULL), cb_down(NULL), cb_up(NULL), cb_enter(NULL),
-               cb_got_focus(NULL), cb_lost_focus(NULL), cb_loaded(NULL), 
cb_mouse_leave(NULL),
+               cb_got_focus(NULL), cb_lost_focus(NULL), cb_loaded(NULL), 
cb_mouse_leave(NULL), cb_surface_resize(NULL),
                cb_keydown(NULL), cb_keyup(NULL),
                cairo (NULL) {}
        
@@ -911,7 +911,7 @@
        int frames;
 
        callback_mouse_event cb_motion, cb_down, cb_up, cb_enter;
-       callback_plain_event cb_got_focus, cb_lost_focus, cb_loaded, 
cb_mouse_leave;
+       callback_plain_event cb_got_focus, cb_lost_focus, cb_loaded, 
cb_mouse_leave, cb_surface_resize;
        callback_keyboard_event cb_keydown, cb_keyup;
 
 };
@@ -932,6 +932,7 @@
                                  callback_mouse_event enter,
                                  callback_plain_event got_focus, 
callback_plain_event lost_focus,
                                  callback_plain_event loaded, 
callback_plain_event mouse_leave,
+                                 callback_plain_event surface_resized,
                                  callback_keyboard_event keydown, 
callback_keyboard_event keyup);
                      
 

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

Reply via email to