Enlightenment CVS committal

Author  : shorne
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        Makefile.am e_configure.c e_includes.h e_int_config_fonts.c 
        e_ipc_handlers.h e_path.c e_path.h e_widget_config_list.c 
        e_widget_config_list.h 
Added Files:
        e_int_config_paths.c e_int_config_paths.h 


Log Message:
Add a simple search path configuration dialog, plus:
 * Add some widget API used by new dialog
 * Fix typo

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/Makefile.am,v
retrieving revision 1.116
retrieving revision 1.117
diff -u -3 -r1.116 -r1.117
--- Makefile.am 6 Apr 2006 12:07:45 -0000       1.116
+++ Makefile.am 9 Apr 2006 11:55:18 -0000       1.117
@@ -150,7 +150,8 @@
 e_stolen.h \
 e_gadcon.h \
 e_shelf.h \
-e_widget_preview.h
+e_widget_preview.h \
+e_int_config_paths.h
 
 enlightenment_src = \
 e_user.c \
@@ -282,6 +283,7 @@
 e_gadcon.c \
 e_shelf.c \
 e_widget_preview.c \
+e_int_config_paths.c \
 $(ENLIGHTENMENTHEADERS)
 
 enlightenment_SOURCES = \
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_configure.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -3 -r1.43 -r1.44
--- e_configure.c       1 Apr 2006 09:59:40 -0000       1.43
+++ e_configure.c       9 Apr 2006 11:55:18 -0000       1.44
@@ -95,7 +95,8 @@
    e_configure_standard_item_add(eco, "enlightenment/windows", _("Window List 
Settings"), e_int_config_winlist);
    e_configure_standard_item_add(eco, "enlightenment/windows", _("Window 
Manipulation Settings"), e_int_config_window_manipulation);
    e_configure_standard_item_add(eco, "enlightenment/run", _("Run Command 
Settings"), e_int_config_exebuf);
-   
+   e_configure_standard_item_add(eco, "enlightenment/e", _("Search Paths"), 
e_int_config_paths); 
+
    /* FIXME: we should have a way for modules to hook in here and add their
     * own entries
     */
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_includes.h,v
retrieving revision 1.97
retrieving revision 1.98
diff -u -3 -r1.97 -r1.98
--- e_includes.h        6 Apr 2006 12:07:45 -0000       1.97
+++ e_includes.h        9 Apr 2006 11:55:18 -0000       1.98
@@ -130,3 +130,4 @@
 #include "e_shelf.h"
 #include "e_tlist.h"
 #include "e_widget_preview.h"
+#include "e_int_config_paths.h"
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_int_config_fonts.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- e_int_config_fonts.c        6 Apr 2006 12:07:45 -0000       1.4
+++ e_int_config_fonts.c        9 Apr 2006 11:55:18 -0000       1.5
@@ -359,7 +359,7 @@
    of = e_widget_framelist_add(evas, _("Font Fallbacks"), 0);
    e_widget_framelist_content_align_set(of, 0.5, 0.5);
 
-   ob = e_widget_config_list_add(evas, e_widget_entry_add, _("Fallback Name"));
+   ob = e_widget_config_list_add(evas, e_widget_entry_add, _("Fallback Name"), 
1);
    cfdata->gui.fallback_list = ob;
    e_widget_framelist_object_append(of, ob);
    
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_ipc_handlers.h,v
retrieving revision 1.127
retrieving revision 1.128
diff -u -3 -r1.127 -r1.128
--- e_ipc_handlers.h    29 Mar 2006 15:50:01 -0000      1.127
+++ e_ipc_handlers.h    9 Apr 2006 11:55:18 -0000       1.128
@@ -3,7 +3,7 @@
  */
 /* NOTE:
  * 
- * This is a very SPECIAL file. This servers as a kind of "auto code generator"
+ * This is a very SPECIAL file. This serves as a kind of "auto code generator"
  * to handle the encoder, decoder etc. aspects of ipc requests. the aim here
  * is to make writing support for a new opcode simple and compact. It intends
  * to centralize the handling into 1 spot, instead of having ti spread around
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_path.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -3 -r1.19 -r1.20
--- e_path.c    2 Mar 2006 12:03:48 -0000       1.19
+++ e_path.c    9 Apr 2006 11:55:18 -0000       1.20
@@ -249,6 +249,20 @@
      }
 }
 
+EAPI void
+e_path_user_path_clear(E_Path *ep)
+{      
+   while (*(ep->user_dir_list))
+     {
+       E_Path_Dir *epd;
+       epd = (*(ep->user_dir_list))->data;
+       *(ep->user_dir_list) = evas_list_remove_list(*(ep->user_dir_list), 
*(ep->user_dir_list));
+       evas_stringshare_del(epd->dir);
+       free(epd);     
+     }
+   _e_path_cache_free(ep);
+}
+
 EAPI const char *
 e_path_find(E_Path *ep, const char *file)
 {
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_path.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- e_path.h    2 Mar 2006 12:03:48 -0000       1.10
+++ e_path.h    9 Apr 2006 11:55:18 -0000       1.11
@@ -38,6 +38,7 @@
 EAPI void        e_path_user_path_append(E_Path *ep, const char *path);
 EAPI void        e_path_user_path_prepend(E_Path *ep, const char *path);
 EAPI void        e_path_user_path_remove(E_Path *ep, const char *path);
+EAPI void       e_path_user_path_clear(E_Path *ep);
 EAPI const char *e_path_find(E_Path *ep, const char *file); 
 EAPI void        e_path_evas_append(E_Path *ep, Evas *evas);
 EAPI Evas_List  *e_path_dir_list_get(E_Path *ep);
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_widget_config_list.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- e_widget_config_list.c      6 Apr 2006 12:07:45 -0000       1.1
+++ e_widget_config_list.c      9 Apr 2006 11:55:18 -0000       1.2
@@ -38,7 +38,7 @@
 
 /* Externally accessible functions */
 EAPI Evas_Object *
-e_widget_config_list_add(Evas *evas, Evas_Object* (*func_entry_add) (Evas 
*evas, char **val), const char *label)
+e_widget_config_list_add(Evas *evas, Evas_Object* (*func_entry_add) (Evas 
*evas, char **val), const char *label, int listspan)
 {
    Evas_Object *obj, *o;
    E_Widget_Data *wd;
@@ -72,7 +72,7 @@
                                        1, 1, 1, 1);
    
    
-   o = e_widget_ilist_add(evas, 16, 16, NULL);
+   o = e_widget_ilist_add(evas, 0, 0, NULL);
    wd->gui.list = o;
    e_widget_disabled_set(o, 1);
    e_widget_min_size_set(o, 100, 100);
@@ -80,7 +80,7 @@
    e_widget_ilist_go(o);
    e_widget_table_object_append(       wd->gui.table, 
                                        o, 
-                                       2, 0, 1, 4,
+                                       2, 0, listspan, 4,
                                        1, 1, 1, 1);
   
    o = e_widget_label_add(evas, label);
@@ -130,6 +130,16 @@
    return e_widget_ilist_count(wd->gui.list);   
 }
 
+EAPI void
+e_widget_config_list_clear(Evas_Object *obj)
+{
+   E_Widget_Data *wd;
+ 
+   wd = e_widget_data_get(obj);
+   e_widget_ilist_clear(wd->gui.list); 
+   _list_select_num(wd, -1); 
+}
+
 EAPI const char *
 e_widget_config_list_nth_get(Evas_Object *obj, int n)
 {
@@ -330,7 +340,7 @@
    if (!wd) return;
    
    wd->cur_enabled = !e_widget_disabled_get(obj);
-   
+  
    if (wd->cur_enabled)
      {
        e_widget_disabled_set(wd->gui.list, 0); 
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_widget_config_list.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- e_widget_config_list.h      6 Apr 2006 12:07:45 -0000       1.1
+++ e_widget_config_list.h      9 Apr 2006 11:55:18 -0000       1.2
@@ -6,11 +6,12 @@
 #ifndef E_WIDGET_CONFIG_LIST_H
 #define E_WIDGET_CONFIG_LIST_H
 
-EAPI Evas_Object *e_widget_config_list_add(Evas *evas, Evas_Object* 
(*func_entry_add) (Evas *evas, char **val), const char *label);
+EAPI Evas_Object *e_widget_config_list_add(Evas *evas, Evas_Object* 
(*func_entry_add) (Evas *evas, char **val), const char *label, int listspan);
 EAPI int e_widget_config_list_count(Evas_Object *obj);
 EAPI const char *e_widget_config_list_nth_get(Evas_Object *obj, int n);
 EAPI void e_widget_config_list_append(Evas_Object *obj, const char *entry);
 EAPI void e_widget_config_list_object_append(Evas_Object *obj, Evas_Object 
*sobj, int col, int row, int colspan, int rowspan, int fill_w, int fill_h, int 
expand_w, int expand_h);
+EAPI void e_widget_config_list_clear(Evas_Object *obj);
 
 #endif
 #endif




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to