Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mixer

Dir     : e_modules/mixer


Modified Files:
        e_mod_main.c 


Log Message:
Set config item "app" to use stringshare by default, and check that app is
installed before trying to launch.

===================================================================
RCS file: /cvs/e/e_modules/mixer/e_mod_main.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -3 -r1.49 -r1.50
--- e_mod_main.c        3 Oct 2006 03:48:28 -0000       1.49
+++ e_mod_main.c        3 Oct 2006 03:54:58 -0000       1.50
@@ -222,7 +222,7 @@
      }
    else if (ev->button == 2)
      {
-       if ((ci->use_app) && (ci->app != NULL))
+       if ((ci->use_app) && (ci->app != NULL) && 
(ecore_file_app_installed(ci->app))
          ecore_exe_run(ci->app, NULL);
        else
          _mixer_window_simple_pop_up(inst);    
@@ -303,7 +303,7 @@
        ci->card_id = 0;
        ci->channel_id = 0;
        ci->mode = SIMPLE_MODE;
-       ci->app = NULL;
+       ci->app = evas_stringshare_add("");
      }
    else if (mixer->mix_sys)
      {   
@@ -316,7 +316,7 @@
                  ci->card_id = 0;
                  ci->channel_id = 0;
                  ci->mode = SIMPLE_MODE;
-                 ci->app = NULL;
+                 ci->app = evas_stringshare_add("");
                  mixer_config->items = evas_list_append(mixer_config->items, 
ci);
                  return ci;
               }
@@ -328,7 +328,7 @@
             ci->card_id = 0;
             ci->channel_id = 0;
             ci->mode = SIMPLE_MODE;
-            ci->app = NULL;
+            ci->app = evas_stringshare_add("");
             mixer_config->items = evas_list_append(mixer_config->items, ci);
             return ci;
          }
@@ -445,7 +445,7 @@
        ci->card_id = 0;
        ci->channel_id = 0;
        ci->mode = SIMPLE_MODE;
-       ci->app = NULL;
+       ci->app = evas_stringshare_add("");
        ci->use_app = 0;
        mixer_config->items = evas_list_append(mixer_config->items, ci);
      }



-------------------------------------------------------------------------
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