hello
this patch save the edge and width from the iconbar 
regards

Holger

--- e_mod_main.c.org    2004-12-03 21:20:44.000000000 +0100
+++ e_mod_main.c        2004-12-03 21:17:53.000000000 +0100
@@ -114,8 +114,15 @@
 int
 save(E_Module *m)
 {
-   /* FIXME: save config */
-   return 1;
+  /* FIXME: save config */
+  IBar *ib;
+   
+  ib = m->data;
+  if (!ib)return;
+  ecore_config_int_set("e.module.iconbar.edge", ib->conf.edge);
+  ecore_config_int_set("e.module.iconbar.width", ib->conf.width);
+
+  return 1;
 }
 
 int
@@ -150,13 +157,21 @@
    
    ib = calloc(1, sizeof(IBar));
    if (!ib) return NULL;
+
+   ecore_config_int_create_bound("e.module.iconbar.edge", 0, 0, 4, 
+                                1, 0, "", "Iconbar module: Edge Location");
+   ecore_config_int_create_bound("e.module.iconbar.width", 400, -1, 8192, 
+                                1, 0, "", "Iconbar module: Width");
+
+   ecore_config_load();
+
+   ib->conf.edge = ecore_config_int_get("e.module.iconbar.edge");
+   ib->conf.width = ecore_config_int_get("e.module.iconbar.width");
    
    ib->conf.appdir = strdup("bar");
-   ib->conf.width = 400;
    ib->conf.iconsize = 32;
    ib->conf.follow_speed = 0.9;
    ib->conf.autoscroll_speed = 0.95;
-   ib->conf.edge = EDGE_BOTTOM;
    ib->conf.anchor = 0.5;
    ib->conf.handle = 0.5;
 
@@ -198,6 +213,7 @@
                  ibb->evas = con->bg_evas;
                  ib->bars = evas_list_append(ib->bars, ibb);
                  _ibar_bar_init(ibb);
+                 _ibar_bar_edge_change(ibb, ib->conf.edge);
               }
          }
      }



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
enlightenment-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to