Enlightenment CVS committal

Author  : atmosphere
Project : e17
Module  : apps/entice

Dir     : e17/apps/entice/src/bin


Modified Files:
        entice.c 


Log Message:
window dragability is possible, as well as the button that drags
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entice/src/bin/entice.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -3 -r1.42 -r1.43
--- entice.c    3 Apr 2004 02:23:22 -0000       1.42
+++ entice.c    3 Apr 2004 03:23:21 -0000       1.43
@@ -11,6 +11,7 @@
 #include <Esmart/container.h>
 #include <Esmart/E_Thumb.h>
 #include <Esmart/Esmart_Trans.h>
+#include <Esmart/dragable.h>
 #include <Epsilon.h>
 #include <string.h>
 #include <sys/types.h>
@@ -106,6 +107,7 @@
 void
 entice_init(Ecore_Evas * ee)
 {
+   int button = 1;
    int x, y, w, h;
    Entice *e = NULL;
    char *layout = NULL;
@@ -189,7 +191,7 @@
          edje_object_part_swallow(e->edje, "entice.thumbnail.area",
                                   e->container);
       }
-      if ((str = edje_object_data_get(o, "entice.window.type")))
+      if ((str = edje_object_data_get(e->edje, "entice.window.type")))
       {
          fprintf(stderr, "%s entice.window.type\n", str);
          if (!strcmp(str, "shaped"))
@@ -219,6 +221,24 @@
             evas_object_show(o);
          }
       }
+      if ((str = edje_object_data_get(e->edje, "entice.window.dragable")))
+      {
+         if (!strcmp(str, "true"))
+         {
+            o = esmart_draggies_new(ee);
+            evas_object_resize(o, w, h);
+            evas_object_move(o, 0, 0);
+            evas_object_layer_set(o, -1);
+            if ((str =
+                 edje_object_data_get(e->edje,
+                                      "entice.window.dragable.button")))
+            {
+               button = atoi(str);
+            }
+            esmart_draggies_button_set(o, button);
+            evas_object_show(o);
+         }
+      }
    }
    entice = e;
 }




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to