Enlightenment CVS committal

Author  : sebastid
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_apps.c e_apps.h e_border.c e_zone.c 


Log Message:
Can drag eapps from the ibar and drop them again. Will result in multiple
of the same eapp! But fortunately it doesn't get saved.

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_apps.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -3 -r1.37 -r1.38
--- e_apps.c    27 Apr 2005 07:06:15 -0000      1.37
+++ e_apps.c    3 May 2005 13:44:42 -0000       1.38
@@ -274,6 +274,34 @@
 }
 
 void
+e_app_prepend_relative(E_App *add, E_App *before)
+{
+   if (!before->parent) return;
+
+   before->parent->subapps = 
evas_list_prepend_relative(before->parent->subapps,
+                                                       add, before);
+
+   _e_app_change(add, E_APP_ADD);
+   _e_app_change(before->parent, E_APP_ORDER);
+}
+
+void
+e_app_append(E_App *add, E_App *parent)
+{
+   parent->subapps = evas_list_append(parent->subapps, add);
+
+   _e_app_change(add, E_APP_ADD);
+}
+
+void
+e_app_remove(E_App *remove, E_App *parent)
+{
+   parent->subapps = evas_list_remove(parent->subapps, remove);
+
+   _e_app_change(remove, E_APP_DEL);
+}
+
+void
 e_app_change_callback_add(void (*func) (void *data, E_App *a, E_App_Change 
ch), void *data)
 {
    E_App_Callback *cb;
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_apps.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- e_apps.h    19 Apr 2005 15:11:45 -0000      1.10
+++ e_apps.h    3 May 2005 13:44:43 -0000       1.11
@@ -65,6 +65,9 @@
 EAPI int    e_app_exec(E_App *a);
 EAPI int    e_app_starting_get(E_App *a);
 EAPI int    e_app_running_get(E_App *a);
+EAPI void   e_app_prepend_relative(E_App *add, E_App *before);
+EAPI void   e_app_append(E_App *add, E_App *parent);
+EAPI void   e_app_remove(E_App *remove, E_App *parent);
     
 EAPI void   e_app_change_callback_add(void (*func) (void *data, E_App *a, 
E_App_Change ch), void *data);
 EAPI void   e_app_change_callback_del(void (*func) (void *data, E_App *a, 
E_App_Change ch), void *data);
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_border.c,v
retrieving revision 1.174
retrieving revision 1.175
diff -u -3 -r1.174 -r1.175
--- e_border.c  2 May 2005 10:16:30 -0000       1.174
+++ e_border.c  3 May 2005 13:44:43 -0000       1.175
@@ -577,7 +577,6 @@
    E_OBJECT_CHECK(bd);
    E_OBJECT_TYPE_CHECK(bd, E_BORDER_TYPE);
    _e_border_reorder_after(bd, NULL);
-   printf("raise layer: %d\n", bd->layer);
    e_container_window_raise(bd->zone->container, bd->win, bd->layer);
      {
        E_Event_Border_Raise *ev;
@@ -1368,6 +1367,8 @@
 {
    E_Event_Border_Remove *ev;
 
+   printf("Delete border\n");
+
    ev = calloc(1, sizeof(E_Event_Border_Remove));
    ev->border = bd;
    /* FIXME Don't ref this during shutdown. And the event is pointless
@@ -1569,7 +1570,7 @@
          {
             if (e->detail == ECORE_X_WINDOW_STACK_ABOVE)
               {
-                 printf("config raise\n");
+                 printf("config raise %d\n", bd->layer);
                  e_border_raise(bd);
               }
             else if (e->detail == ECORE_X_WINDOW_STACK_BELOW)
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_zone.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -3 -r1.43 -r1.44
--- e_zone.c    2 May 2005 06:10:11 -0000       1.43
+++ e_zone.c    3 May 2005 13:44:43 -0000       1.44
@@ -513,9 +513,9 @@
    E_Desk *desk;
    
    if (x < 0) x = 0;
-   else if (x >= zone->desk_x_count) x = zone->desk_x_count  - 1;
+   else if (x >= zone->desk_x_count) x = zone->desk_x_count - 1;
    if (y < 0) y = 0;
-   else if (y >= zone->desk_y_count) y = zone->desk_y_count  - 1;
+   else if (y >= zone->desk_y_count) y = zone->desk_y_count - 1;
    desk = e_desk_at_xy_get(zone, x, y);
    if (desk)
      {




-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to