Author: fejj
Date: 2007-11-08 12:19:43 -0500 (Thu, 08 Nov 2007)
New Revision: 89216
Modified:
trunk/moon/src/ChangeLog
trunk/moon/src/font.cpp
trunk/moon/src/runtime.cpp
Log:
2007-11-08 Jeffrey Stedfast <[EMAIL PROTECTED]>
* runtime.cpp (Attach): Emit the Resize event.
(drawing_area_size_allocate): Emit the Resize event.
Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog 2007-11-08 17:16:46 UTC (rev 89215)
+++ trunk/moon/src/ChangeLog 2007-11-08 17:19:43 UTC (rev 89216)
@@ -1,3 +1,8 @@
+2007-11-08 Jeffrey Stedfast <[EMAIL PROTECTED]>
+
+ * runtime.cpp (Attach): Emit the Resize event.
+ (drawing_area_size_allocate): Emit the Resize event.
+
2007-11-07 Chris Toshok <[EMAIL PROTECTED]>
* clock.cpp (Clock::Begin): guard against division by zero.
Modified: trunk/moon/src/font.cpp
===================================================================
--- trunk/moon/src/font.cpp 2007-11-08 17:16:46 UTC (rev 89215)
+++ trunk/moon/src/font.cpp 2007-11-08 17:19:43 UTC (rev 89216)
@@ -157,7 +157,7 @@
if (FcPatternGetString (matched, FC_FILE, 0, &filename) !=
FcResultMatch)
goto fail;
- printf ("loading font from `%s'\n", filename);
+ //printf ("loading font from `%s'\n", filename);
if (FcPatternGetInteger (matched, FC_INDEX, 0, &id) !=
FcResultMatch)
goto fail;
@@ -765,10 +765,6 @@
FcPattern *pattern;
if (font == NULL) {
- //char *str = ToString ();
- //printf ("requested font: %s\n", str);
- //g_free (str);
-
pattern = CreatePattern ();
font = TextFont::Load (pattern);
FcPatternDestroy (pattern);
Modified: trunk/moon/src/runtime.cpp
===================================================================
--- trunk/moon/src/runtime.cpp 2007-11-08 17:16:46 UTC (rev 89215)
+++ trunk/moon/src/runtime.cpp 2007-11-08 17:19:43 UTC (rev 89216)
@@ -390,8 +390,11 @@
width = normal_width;
}
- if (change_size)
+ if (change_size) {
Realloc ();
+
+ Emit (ResizeEvent);
+ }
canvas->UpdateBounds ();
canvas->Invalidate ();
@@ -438,7 +441,7 @@
Surface::Resize (int width, int height)
{
gtk_widget_set_size_request (drawing_area, width, height);
-
+
if (!full_screen)
Emit (ResizeEvent);
}
@@ -744,7 +747,7 @@
}
#endif
#endif
-
+
TimeManager::Instance()->AddHandler
(TimeManager::Instance()->RenderEvent, render_cb, s);
TimeManager::Instance()->AddHandler
(TimeManager::Instance()->UpdateInputEvent, update_input_cb, s);
return TRUE;
@@ -1138,8 +1141,10 @@
if (s->width != allocation->width || s->height != allocation->height){
s->width = allocation->width;
s->height = allocation->height;
-
+
s->Realloc ();
+
+ s->Emit (ResizeEvent);
}
// if x or y changed we need to recompute the presentation matrix
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches