Hack: raise the ecore_evas on mouse up.
authorTilman Sauerbeck <tilman@code-monkey.de>
Sun, 24 Apr 2005 20:07:36 +0000 (20:07 +0000)
committerTilman Sauerbeck <tilman@code-monkey.de>
Sun, 24 Apr 2005 20:07:36 +0000 (20:07 +0000)
src/esmart_draggies/rb_esmart_draggies.c

index 681e1958bc8b4dbfc27935f3eca2f5812589ee53..c422af512e30ad2d7d97afcbc11d90cab75660c2 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: rb_esmart_draggies.c 52 2004-08-01 10:19:14Z tilman $
+ * $Id: rb_esmart_draggies.c 316 2005-04-24 20:07:36Z tilman $
  *
  * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
  *
 
 #include "../rb_esmart.h"
 
+static void on_mouse_up (void *data, Evas *e, Evas_Object *o, void *ev)
+{
+       ecore_evas_raise (data);
+}
+
 static void c_free (RbEvasObject *e)
 {
        c_evas_object_free (e, true);
@@ -51,6 +56,10 @@ static VALUE c_new (VALUE klass, VALUE ecore_evas)
        argv[0] = rb_funcall (ecore_evas, evas, 0);
        rb_obj_call_init (self, 1, argv);
 
+       esmart_draggies_event_callback_add (draggies->real,
+                                           EVAS_CALLBACK_MOUSE_UP,
+                                           on_mouse_up, ee->real);
+
        return self;
 }