Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : net

Dir     : e_modules/net/src


Modified Files:
        e_mod_config.c e_mod_config.h e_mod_configure.c e_mod_main.c 
        e_mod_net.c 


Log Message:
Add option to allow disabling of popup window on mouse_over.

===================================================================
RCS file: /cvs/e/e_modules/net/src/e_mod_config.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- e_mod_config.c      14 Feb 2007 08:26:14 -0000      1.6
+++ e_mod_config.c      21 Feb 2007 02:13:35 -0000      1.7
@@ -21,6 +21,7 @@
    ci->app = evas_stringshare_add("");
    ci->limit = 0;
    ci->show_text = 1;
+   ci->show_popup = 0;
    cfg->items = evas_list_append(cfg->items, ci);
    return ci;
 }
===================================================================
RCS file: /cvs/e/e_modules/net/src/e_mod_config.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- e_mod_config.h      14 Feb 2007 08:23:45 -0000      1.5
+++ e_mod_config.h      21 Feb 2007 02:13:35 -0000      1.6
@@ -19,6 +19,7 @@
    const char *device;
    const char *app;
    int limit, show_text;
+   int show_popup;
 };
 
 EAPI Config_Item *_config_item_get(const char *id);
===================================================================
RCS file: /cvs/e/e_modules/net/src/e_mod_configure.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- e_mod_configure.c   14 Feb 2007 09:29:38 -0000      1.6
+++ e_mod_configure.c   21 Feb 2007 02:13:35 -0000      1.7
@@ -8,6 +8,7 @@
    char *device;
    char *app;
    int limit, show_text;
+   int show_popup;
    
    Ecore_List *devs;
    int num;
@@ -82,6 +83,7 @@
      cfdata->app = strdup(ci->app);
 
    cfdata->show_text = ci->show_text;
+   cfdata->show_popup = ci->show_popup;
    cfdata->limit = ci->limit;
    
    cfdata->devs = _config_devices_get();
@@ -111,6 +113,8 @@
    of = e_widget_framelist_add(evas, _("General Settings"), 0);
    ob = e_widget_check_add(evas, _("Show Text"), &(cfdata->show_text));
    e_widget_framelist_object_append(of, ob);
+   ob = e_widget_check_add(evas, _("Show Popup On Mouse-Over"), 
&(cfdata->show_popup));
+   e_widget_framelist_object_append(of, ob);
    ob = e_widget_label_add(evas, _("Launch Application On Double-Click"));
    e_widget_framelist_object_append(of, ob);
    ob = e_widget_entry_add(evas, &(cfdata->app));
@@ -158,7 +162,8 @@
      }
    ci->limit = cfdata->limit;
    ci->show_text = cfdata->show_text;
-
+   ci->show_popup = cfdata->show_popup;
+   
    if (ci->app) evas_stringshare_del(ci->app);
    if (cfdata->app != NULL)
      ci->app = evas_stringshare_add(cfdata->app);
===================================================================
RCS file: /cvs/e/e_modules/net/src/e_mod_main.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- e_mod_main.c        15 Feb 2007 22:12:02 -0000      1.5
+++ e_mod_main.c        21 Feb 2007 02:13:35 -0000      1.6
@@ -20,6 +20,7 @@
    E_CONFIG_VAL(item_edd, Config_Item, device, STR);
    E_CONFIG_VAL(item_edd, Config_Item, app, STR);
    E_CONFIG_VAL(item_edd, Config_Item, limit, INT);
+   E_CONFIG_VAL(item_edd, Config_Item, show_popup, INT);
    E_CONFIG_VAL(item_edd, Config_Item, show_text, INT);
    
    conf_edd = E_CONFIG_DD_NEW("Config", Config);
===================================================================
RCS file: /cvs/e/e_modules/net/src/e_mod_net.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- e_mod_net.c 16 Feb 2007 23:47:54 -0000      1.9
+++ e_mod_net.c 21 Feb 2007 02:13:35 -0000      1.10
@@ -106,9 +106,9 @@
    else if ((ev->button == 1) && (!cfg->menu))
      {
        if (inst->popup_locked) 
-         inst->popup_locked=0;
+         inst->popup_locked = 0;
        else
-         inst->popup_locked=1;
+         inst->popup_locked = 1;
      }
    else if ((ev->button == 3) && (!cfg->menu)) 
      {
@@ -155,10 +155,10 @@
 
    inst = data;
    if (inst->popup != NULL) return;
-
-   inst->popup = E_NEW(Popup, 1);
    ci = _config_item_get(inst->gcc->id);
+   if (!ci->show_popup) return;
    
+   inst->popup = E_NEW(Popup, 1);
    snprintf(buf, sizeof(buf), "%s/net.edj", e_module_dir_get(cfg->mod));
    
    con = e_container_current_get(e_manager_current_get());



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to