Author: hisham
Date: 2005-05-24 20:10:29 -0400 (Tue, 24 May 2005)
New Revision: 44954
Modified:
trunk/efl-sharp/libs/efl-sharp/src/bin/efl_sharp_test.cs
trunk/efl-sharp/libs/efl-sharp/src/lib/ecore/ecore_event.cs
trunk/efl-sharp/libs/efl-sharp/src/lib/ecore/ecore_main.cs
Log:
fixing test app
Modified: trunk/efl-sharp/libs/efl-sharp/src/bin/efl_sharp_test.cs
===================================================================
--- trunk/efl-sharp/libs/efl-sharp/src/bin/efl_sharp_test.cs 2005-05-24
23:55:50 UTC (rev 44953)
+++ trunk/efl-sharp/libs/efl-sharp/src/bin/efl_sharp_test.cs 2005-05-25
00:10:29 UTC (rev 44954)
@@ -1,6 +1,7 @@
using System;
using System.Runtime.InteropServices;
using Evas;
+using Ecore;
public class EcoreEvasTest
{
@@ -36,7 +37,7 @@
public static int app_signal_exit(IntPtr data, int type, IntPtr ev)
{
System.Console.WriteLine("Quitting main application!");
- Ecore.LoopQuit();
+ Ecore.MainLoop.Quit();
return 1;
}
@@ -55,7 +56,7 @@
public static void Main(string [] args)
{
- Ecore.Init();
+ Ecore.MainLoop.Init();
EcoreEvas.Init();
Edje.Init();
@@ -72,7 +73,7 @@
EE.DataSet("edje", edje);
EE.Show();
- if(Ecore.EventHandlerAdd(Ecore.EventSignalExit, app_signal_exit, null)
== IntPtr.Zero)
+ if(Ecore.Events.HandlerAdd(Ecore.Events.EventSignalExit,
app_signal_exit, null) == IntPtr.Zero)
System.Console.WriteLine("Error adding callback!");
if(edje.FileSet(DataConfig.DATADIR +
"/data/flower.edj","desktop/background") == 0)
@@ -102,6 +103,6 @@
textblock.Raise();
textblock.Show();
- Ecore.LoopBegin();
+ Ecore.MainLoop.Begin();
}
}
Modified: trunk/efl-sharp/libs/efl-sharp/src/lib/ecore/ecore_event.cs
===================================================================
--- trunk/efl-sharp/libs/efl-sharp/src/lib/ecore/ecore_event.cs 2005-05-24
23:55:50 UTC (rev 44953)
+++ trunk/efl-sharp/libs/efl-sharp/src/lib/ecore/ecore_event.cs 2005-05-25
00:10:29 UTC (rev 44954)
@@ -7,7 +7,7 @@
public delegate void EventFunction(IntPtr data, IntPtr ev);
public delegate int EventHandlerFunction(IntPtr data, int type, IntPtr
ev);
- class Event
+ class Events
{
const string Library = "ecore";
Modified: trunk/efl-sharp/libs/efl-sharp/src/lib/ecore/ecore_main.cs
===================================================================
--- trunk/efl-sharp/libs/efl-sharp/src/lib/ecore/ecore_main.cs 2005-05-24
23:55:50 UTC (rev 44953)
+++ trunk/efl-sharp/libs/efl-sharp/src/lib/ecore/ecore_main.cs 2005-05-25
00:10:29 UTC (rev 44954)
@@ -38,7 +38,7 @@
[DllImport(Library)]
private extern static void ecore_main_loop_begin();
- public static void Main()
+ public static void Begin()
{
ecore_main_loop_begin();
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches