Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : screenshot

Dir     : e_modules/screenshot


Modified Files:
        e_mod_main.c 


Log Message:
Removed config item from instance structure as we really don't need it there.

===================================================================
RCS file: /cvs/e/e_modules/screenshot/e_mod_main.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -3 -r1.31 -r1.32
--- e_mod_main.c        21 May 2006 10:59:39 -0000      1.31
+++ e_mod_main.c        21 May 2006 11:12:44 -0000      1.32
@@ -20,7 +20,6 @@
    E_Gadcon_Client *gcc;
    Evas_Object *ss_obj;
    Screenshot *ss;
-   Config_Item *ci;
    Ecore_Exe *exe;
 };
 
@@ -81,7 +80,6 @@
    
    ci = _ss_config_item_get(id);
    if (!ci->id) ci->id = evas_stringshare_add(id);
-   inst->ci = ci;
    
    ss = _ss_new(gc->evas);
    ss->inst = inst;
@@ -173,7 +171,7 @@
        evas_event_feed_mouse_up(inst->gcc->gadcon->evas, ev->button,
                                 EVAS_BUTTON_NONE, ev->timestamp, NULL);
      }
-   else if ((ev->button == 1) && (inst->ci))
+   else if ((ev->button == 1) && (inst))
      _ss_handle_mouse_down(inst);
 }
 
@@ -447,7 +445,7 @@
        cmd = strdup("import");
        opt = _get_import_options(ci);
      }
-   else if (inst->ci->use_scrot == 1) 
+   else if (ci->use_scrot == 1) 
      {
        cmd = strdup("scrot");
        opt = _get_scrot_options(ci);
@@ -470,11 +468,11 @@
 
    inst->exe = ecore_exe_run(buf, inst);
    
-   if (inst->ci->delay_time > 0)
+   if (ci->delay_time > 0)
      {
        msg = malloc(sizeof(Edje_Message_Int_Set) + 1 * sizeof(int));
        msg->count = 1;
-       msg->val[0] = inst->ci->delay_time - 1;
+       msg->val[0] = ci->delay_time - 1;
        edje_object_message_send(inst->ss->ss_obj, EDJE_MESSAGE_INT_SET, 1, 
msg);
        free(msg);
      }




-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to