Enlightenment CVS committal
Author : devilhorns
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_gadcon.c
Log Message:
Keep Begin/Stop of move/resize gadgets in sync.
This fixes a bugger where the shelf menu & gadcon client menu were not
updating properly when editing, ie: the shelf menu would still read Stop
Editing even tho no other gcc's where in edit mode.
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_gadcon.c,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -3 -r1.85 -r1.86
--- e_gadcon.c 9 Nov 2007 20:34:55 -0000 1.85
+++ e_gadcon.c 11 Nov 2007 17:44:29 -0000 1.86
@@ -812,7 +812,8 @@
E_OBJECT_TYPE_CHECK(gcc, E_GADCON_CLIENT_TYPE);
if (gcc->o_control) return;
-
+
+ gcc->gadcon->editing = 1;
gcc->o_control = edje_object_add(gcc->gadcon->evas);
evas_object_layer_set(gcc->o_control, 100);
if (gcc->o_frame)
@@ -898,6 +899,8 @@
EAPI void
e_gadcon_client_edit_end(E_Gadcon_Client *gcc)
{
+ Evas_List *l = NULL;
+
E_OBJECT_CHECK(gcc);
E_OBJECT_TYPE_CHECK(gcc, E_GADCON_CLIENT_TYPE);
@@ -921,6 +924,16 @@
gcc->o_event = NULL;
if (gcc->o_control) evas_object_del(gcc->o_control);
gcc->o_control = NULL;
+
+ for (l = gcc->gadcon->clients; l; l = l->next)
+ {
+ E_Gadcon_Client *client = NULL;
+
+ client = l->data;
+ if (!client) continue;
+ if (client->o_control) return;
+ }
+ gcc->gadcon->editing = 0;
}
EAPI void
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs