Enlightenment CVS committal

Author  : kiwi
Project : e_modules
Module  : devian

Dir     : e_modules/devian/src/module


Modified Files:
        e_mod_source_picture.c e_mod_source_rss.c 


Log Message:
use e_module_dialog instead of e_dialog to display source informations

===================================================================
RCS file: /cvs/e/e_modules/devian/src/module/e_mod_source_picture.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- e_mod_source_picture.c      2 Jul 2006 19:53:55 -0000       1.8
+++ e_mod_source_picture.c      2 Jul 2006 21:25:14 -0000       1.9
@@ -339,7 +339,6 @@
 
 void DEVIANF(source_picture_dialog_infos) (Source_Picture *source)
 {
-   E_Dialog *dia;
    char buf[4096];
    char *path = NULL;
    int edje_part;
@@ -360,10 +359,6 @@
    if (!path)
      return;
 
-   dia = e_dialog_new(DEVIANM->container);
-   if (!dia)
-     return;
-
    snprintf(buf, 4096,
             "<hilight>Informations on %s</hilight><br><br>"
             "<underline=on underline_color=#000>Picture path :</> %s<br>"
@@ -371,13 +366,7 @@
             "<underline=on underline_color=#000>Total pictures in local list 
:</> %d",
             DEVIANF(source_picture_name_get) (source, edje_part), path,
            evas_list_count(DEVIANM->picture_list_local->pictures));
-   e_dialog_title_set(dia, MODULE_NAME " Module - Picture Informations");
-   e_dialog_icon_set(dia, "enlightenment/e", 64);
-   e_dialog_text_set(dia, buf);
-   e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
-   e_win_centered_set(dia->win, 1);
-   e_dialog_show(dia);
-
+   e_module_dialog_show(DEVIANM->module, _(MODULE_NAME " Module Information"), 
buf);
 }
 
 char *DEVIANF(source_picture_name_get) (Source_Picture *source, int part)
===================================================================
RCS file: /cvs/e/e_modules/devian/src/module/e_mod_source_rss.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- e_mod_source_rss.c  2 Jul 2006 19:53:55 -0000       1.6
+++ e_mod_source_rss.c  2 Jul 2006 21:25:14 -0000       1.7
@@ -188,13 +188,9 @@
 
 void DEVIANF(source_rss_dialog_infos) (Source_Rss *source)
 {
-   E_Dialog *dia;
    Rss_Doc *doc;
    char buf[4096];
 
-   dia = e_dialog_new(DEVIANM->container);
-   if (!dia)
-     return;
    doc = source->devian->conf->rss_doc;
    if (!doc)
      return;
@@ -207,12 +203,7 @@
             "<underline=on underline_color=#000>Web site associated :</> 
%s<br><br>"
             "<underline=on underline_color=#000>Description :</><br>%s",
             doc->name, doc->url, doc->version, doc->host, doc->link, 
doc->description);
-   e_dialog_title_set(dia, MODULE_NAME " Module - Picture Informations");
-   e_dialog_icon_set(dia, "enlightenment/e", 64);
-   e_dialog_text_set(dia, buf);
-   e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
-   e_win_centered_set(dia->win, 1);
-   e_dialog_show(dia);
+   e_module_dialog_show(DEVIANM->module, _(MODULE_NAME " Module Information"), 
buf);
 }
 
 char *DEVIANF(source_rss_name_get) (Source_Rss *source)



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