Yeah, great idea adding plugable service support! Go for it! :)

On Wed, Nov 04, 2009 at 03:09:33AM -0800, Enlightenment SVN wrote:
> Log:
>   Weather : fix compilation and add the module icon
>   
>   
> Author:       watchwolf
> Date:         2009-11-04 03:09:33 -0800 (Wed, 04 Nov 2009)
> New Revision: 43449
> 
> Added:
>   trunk/PROTO/weather/images/LICENSE.GPL2 
> trunk/PROTO/weather/images/LICENSE.GPL3 
> trunk/PROTO/weather/images/icon-weather.png 
> Removed:
>   trunk/PROTO/weather/images/module_icon.png 
> Modified:
>   trunk/PROTO/weather/AUTHORS trunk/PROTO/weather/src/module/e_mod_gadcon.c 
> trunk/PROTO/weather/src/module/e_mod_main.c trunk/PROTO/weather/weather.edc 
> 
> Modified: trunk/PROTO/weather/AUTHORS
> ===================================================================
> --- trunk/PROTO/weather/AUTHORS       2009-11-04 11:09:02 UTC (rev 43448)
> +++ trunk/PROTO/weather/AUTHORS       2009-11-04 11:09:33 UTC (rev 43449)
> @@ -1,2 +1,7 @@
>  Originally by Matthew Mullins, additions by various Enlightenment developers
> -Rewritten by Christopher 'devilhorns' Michael <devilho...@devilhorns.us>
> +Rewritten by :
> +- Christopher 'devilhorns' Michael <devilho...@devilhorns.us>
> +- Jonathan 'Watchwolf' Atton <jonathan.at...@gmail.com>
> +
> +The images comes from the Nokia weather demo application 
> (http://qt.gitorious.org/qt-labs/mobile-demos)
> +
> 
> 
> Property changes on: trunk/PROTO/weather/images/icon-weather.png
> ___________________________________________________________________
> Added: svn:mime-type
>    + application/octet-stream
> 
> Modified: trunk/PROTO/weather/src/module/e_mod_gadcon.c
> ===================================================================
> --- trunk/PROTO/weather/src/module/e_mod_gadcon.c     2009-11-04 11:09:02 UTC 
> (rev 43448)
> +++ trunk/PROTO/weather/src/module/e_mod_gadcon.c     2009-11-04 11:09:33 UTC 
> (rev 43449)
> @@ -27,12 +27,22 @@
>  {
>     Instance *inst;
>     E_Gadcon_Client *gcc;
> +   char buff[PATH_MAX];
>  
>     inst = E_NEW(Instance, 1);
>     inst->ci = _weather_config_item_get(id);
>  
> -   inst->obj = evas_object_rectangle_add(gc->evas);
> -   evas_object_color_set(inst->obj, 255, 0, 0, 255);
> +    if(gc->location->site == E_GADCON_SITE_DESKTOP)
> +    {
> +        inst->obj = evas_object_rectangle_add(gc->evas);
> +        evas_object_color_set(inst->obj, 255, 0, 0, 255);
> +    }
> +    else
> +    {
> +        snprintf(buff, PATH_MAX, "%s/weather.edj", weather_cfg->mod_dir);
> +        inst->obj = edje_object_add(gc->evas);
> +        edje_object_file_set(inst->obj, buff, "icon");
> +    }
>     evas_object_event_callback_add(inst->obj, EVAS_CALLBACK_MOUSE_DOWN, 
>                                    _gc_cb_mouse_down, inst);
>     evas_object_show(inst->obj);
> 
> Modified: trunk/PROTO/weather/src/module/e_mod_main.c
> ===================================================================
> --- trunk/PROTO/weather/src/module/e_mod_main.c       2009-11-04 11:09:02 UTC 
> (rev 43448)
> +++ trunk/PROTO/weather/src/module/e_mod_main.c       2009-11-04 11:09:33 UTC 
> (rev 43449)
> @@ -22,7 +22,7 @@
>     char buff[PATH_MAX];
>  
>     snprintf(buff, PATH_MAX, "%s/locale", m->dir);
> -   bindtextdomain(PACKAGE, buf);
> +   bindtextdomain(PACKAGE, buff);
>     bind_textdomain_codeset(PACKAGE, "UTF-8");
>  #endif
>  
> 
> Modified: trunk/PROTO/weather/weather.edc
> ===================================================================
> --- trunk/PROTO/weather/weather.edc   2009-11-04 11:09:02 UTC (rev 43448)
> +++ trunk/PROTO/weather/weather.edc   2009-11-04 11:09:33 UTC (rev 43449)
> @@ -1,6 +1,6 @@
>  images 
>  {
> -   image: "module_icon.png" COMP;
> +   image: "icon-weather.png" COMP;
>  }
>  
>  collections 
> @@ -14,13 +14,13 @@
>               part 
>                 {
>                    name: "image";
> -                  mouse_events: 0;
> +                  mouse_events: 1;
>                    description 
>                      {
>                         state: "default" 0.0;
>                         aspect: 1.0 1.0;
>                         aspect_preference: BOTH;
> -                       image.normal: "module_icon.png";
> +                       image.normal: "icon-weather.png";
>                      }
>                 }
>            }
> 
> 
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> enlightenment-svn mailing list
> enlightenment-...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to