Enlightenment CVS committal

Author  : ravenlock
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_int_config_modules.c 


Log Message:
Add a description textblock to the dialog.  This will display the Comment field 
from within the module.desktop file. In a multi-select situation it will show 
the comment of the last selected item.

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_int_config_modules.c,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -3 -r1.64 -r1.65
--- e_int_config_modules.c      23 Aug 2007 09:45:30 -0000      1.64
+++ e_int_config_modules.c      25 Aug 2007 15:24:52 -0000      1.65
@@ -1,8 +1,12 @@
+/*
+    * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+*/
+
 #include "e.h"
 
 typedef struct _CFModule 
 {
-   const char *short_name, *name;
+   const char *short_name, *name, *comment;
    const char *icon, *orig_path;
    int enabled, selected;
 } CFModule;
@@ -12,6 +16,7 @@
    Evas_Object *o_avail, *o_loaded;
    Evas_Object *b_load, *b_unload;
    Evas_Object *b_about, *b_config;
+   Evas_Object *o_desc;
 };
 
 static void        *_create_data  (E_Config_Dialog *cfd);
@@ -146,11 +151,15 @@
    e_widget_on_change_hook_set(ow, _avail_list_cb_change, cfdata);
    _fill_avail_list(cfdata);
    e_widget_frametable_object_append(of, ow, 0, 0, 1, 1, 1, 1, 1, 1);
+   ow = e_widget_textblock_add(evas);
+   cfdata->o_desc = ow;
+   e_widget_textblock_markup_set(ow, "Description: Unavailable.");
+   e_widget_frametable_object_append(of, ow, 0, 1, 1, 1, 1, 1, 1, 1);
    ow = e_widget_button_add(evas, _("Load Module"), NULL, _btn_cb_load, 
                            cfdata, NULL);
    cfdata->b_load = ow;
    e_widget_disabled_set(ow, 1);
-   e_widget_frametable_object_append(of, ow, 0, 1, 1, 1, 1, 1, 1, 0);
+   e_widget_frametable_object_append(of, ow, 0, 2, 1, 1, 1, 1, 1, 0);
    e_widget_table_object_append(ot, of, 0, 0, 1, 1, 1, 1, 1, 1);
    
    of = e_widget_frametable_add(evas, _("Loaded Modules"), 0);
@@ -217,6 +226,7 @@
        module->short_name = evas_stringshare_add(mod);
        if (desktop->name) module->name = evas_stringshare_add(desktop->name);
        if (desktop->icon) module->icon = evas_stringshare_add(desktop->icon);
+       if (desktop->comment) module->comment = 
evas_stringshare_add(desktop->comment);
        if (desktop->orig_path) 
          module->orig_path = evas_stringshare_add(desktop->orig_path);
        if (e_module_find(mod)) module->enabled = 1;
@@ -389,6 +399,10 @@
        lbl = e_widget_ilist_nth_label_get(cfdata->o_avail, i);
        module = evas_hash_find(modules, lbl);
        if (!module) continue;
+       if (module->comment)
+               e_widget_textblock_markup_set(cfdata->o_desc, module->comment);
+       else
+               e_widget_textblock_markup_set(cfdata->o_desc, "Description: 
Unavailable.");
        module->selected = 1;
      }
    if (l) evas_list_free(l);



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to