Enlightenment CVS committal

Author  : rephorm
Project : e17
Module  : apps/elicit

Dir     : e17/apps/elicit/src


Modified Files:
        Elicit.h conf.c elicit.c shots.c shots.h swatches.c swatches.h 
        themes.c themes.h 


Log Message:

Summer! :) (a new theme)

Also, shot/swatch panels can now be horizontal (up to the theme). The theme container 
now actually gets filled with a list of available themes... and lets you switch the 
theme. (beware, the spring theme doesn't implement this yet).
a few other fixes/cleanups that i can't think of atm.

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/elicit/src/Elicit.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- Elicit.h    14 May 2004 03:20:18 -0000      1.12
+++ Elicit.h    12 Aug 2004 22:26:30 -0000      1.13
@@ -66,6 +66,7 @@
     Evas_Object *cont;
     double length;
     int scrolling;
+    int dir;
   } swatches, shots, themes;
 
   Ecore_Timer *change_timer;
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/elicit/src/conf.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- conf.c      13 May 2004 00:34:22 -0000      1.9
+++ conf.c      12 Aug 2004 22:26:30 -0000      1.10
@@ -108,7 +108,7 @@
     case ELICIT_CONF_TAG_THEME:
       if (el->gui)
       {
-        elicit_ui_theme_set(el, ecore_config_theme_get(key), "elicit");
+//        elicit_ui_theme_set(el, ecore_config_theme_get(key), "elicit");
       }
       break;
   }
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/elicit/src/elicit.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- elicit.c    14 Jun 2004 12:50:19 -0000      1.17
+++ elicit.c    12 Aug 2004 22:26:30 -0000      1.18
@@ -147,7 +147,7 @@
     return;
   }
   /* update the config */
-  //elicit_config_theme_set(theme);
+  elicit_config_theme_set(theme);
 
   /* set the default window size */
   edje_object_size_min_get(el->gui, &mw, &mh);
@@ -194,6 +194,9 @@
   edje_object_signal_callback_add(el->gui, "drag", "shot.scroll.bar", 
elicit_shot_scroll_cb, el);
   edje_object_signal_callback_add(el->gui, "elicit,shot,scroll,*", "*", 
elicit_shot_scroll_cb, el);
 
+  edje_object_signal_callback_add(el->gui, "drag", "theme.scroll.bar", 
elicit_theme_scroll_cb, el);
+  edje_object_signal_callback_add(el->gui, "elicit,theme,scroll,*", "*", 
elicit_theme_scroll_cb, el);
+
   evas_object_hide(el->gui);
   evas_object_show(el->gui);
 }
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/elicit/src/shots.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- shots.c     14 Jun 2004 12:50:19 -0000      1.6
+++ shots.c     12 Aug 2004 22:26:30 -0000      1.7
@@ -5,19 +5,53 @@
 int
 elicit_shots_init(Elicit *el)
 {
-  el->shots.cont = esmart_container_new(el->evas); 
-  esmart_container_direction_set(el->shots.cont, CONTAINER_DIRECTION_VERTICAL);
-  esmart_container_spacing_set(el->shots.cont, 3);
-  esmart_container_padding_set(el->shots.cont, 5, 5, 5, 5);
-  evas_object_show(el->shots.cont);
-  edje_object_part_swallow(el->gui, "shot.container", el->shots.cont);
-  edje_object_part_drag_value_set(el->gui, "shot.scroll.bar", 0.001, 0.001);
+  if (edje_object_part_exists(el->gui, "shot.container"))
+  {
+    char *dir;
+
+    el->shots.cont = esmart_container_new(el->evas); 
+  
+    dir = (char *)edje_object_data_get(el->gui, "swatches.direction");
+    if (dir && (dir[0] == 'h' || dir[0] == 'H'))
+      el->shots.dir = CONTAINER_DIRECTION_HORIZONTAL;
+    else
+      el->shots.dir = CONTAINER_DIRECTION_VERTICAL;
+      
+    esmart_container_direction_set(el->shots.cont, el->shots.dir);
+
+    esmart_container_spacing_set(el->shots.cont, 3);
+    esmart_container_padding_set(el->shots.cont, 5, 5, 5, 5);
+    evas_object_show(el->shots.cont);
+    edje_object_part_swallow(el->gui, "shot.container", el->shots.cont);
+    edje_object_part_drag_value_set(el->gui, "shot.scroll.bar", 0.001, 0.001);
+  
+    elicit_shots_load(el);
+  
+    ecore_idle_enterer_add(elicit_shots_scroll_idler, el);
+  }
+}
 
-  elicit_shots_load(el);
+void
+elicit_shots_shutdown(Elicit *el)
+{
+  Evas_List *l;
 
-  ecore_idle_enterer_add(elicit_shots_scroll_idler, el);
+  if (el->shots.cont){
+    for (l = esmart_container_elements_get(el->shots.cont); l; l = l->next)
+    {
+      Evas_Object *o = l->data;
+      Elicit_Shot *sh = evas_object_data_get(o, "shot");
+      elicit_shot_free(sh);
+    }
+    /*
+    edje_object_part_unswallow(el->gui, el->shots.cont);
+    evas_object_del(el->shots.cont);
+    el->shots.cont = NULL;
+    */
+  }
 }
 
+
 void
 elicit_shots_save(Elicit *el)
 {
@@ -166,7 +200,11 @@
 void
 elicit_shot_free(Elicit_Shot *sh)
 {
-  if (sh->shot) evas_object_del(sh->shot);
+
+  if (sh->shot) {
+    edje_object_part_unswallow(sh->obj, sh->shot);
+    evas_object_del(sh->shot);
+  }
   if (sh->obj) evas_object_del(sh->obj);
   if (sh->name) free(sh->name);
 }
@@ -179,7 +217,7 @@
   int iw, ih;
   Evas_Coord mw, mh;
   double length;
-  Evas_Coord h;
+  Evas_Coord w, h;
 
   /* don't save an empty shot */
   if (!el->flags.shot_taken) return;
@@ -217,8 +255,14 @@
   /* scroll to the end of the list */
   length = esmart_container_elements_length_get(el->shots.cont);
   el->shots.length = length;
-  evas_object_geometry_get(el->shots.cont, NULL, NULL, NULL, &h);
-  if (length > h)
+  evas_object_geometry_get(el->shots.cont, NULL, NULL, &w, &h);
+  if (el->shots.dir == CONTAINER_DIRECTION_HORIZONTAL && length > w)
+  {
+    esmart_container_scroll_offset_set(el->shots.cont,
+                                       w - length - 10 );
+    _elicit_shots_update_scroll_bar(el);
+  }
+  else if (el->shots.dir == CONTAINER_DIRECTION_VERTICAL && length > h)
   {
     esmart_container_scroll_offset_set(el->shots.cont,
                                        h - length - 10 );
@@ -254,7 +298,7 @@
 {
   Elicit *el;
   Elicit_Shot *sh;
-  Evas_Coord h;
+  Evas_Coord w, h;
   int offset;
 
   el = evas_object_data_get(o, "elicit");
@@ -265,13 +309,18 @@
   
   el->shots.length = esmart_container_elements_length_get(el->shots.cont);
 
-  evas_object_geometry_get(el->shots.cont, NULL, NULL, NULL, &h);
+  evas_object_geometry_get(el->shots.cont, NULL, NULL, &w, &h);
   offset = esmart_container_scroll_offset_get(el->shots.cont);
-  if (offset < h - el->shots.length - 10 && el->shots.length > h)
+  if (el->shots.dir == CONTAINER_DIRECTION_VERTICAL && offset < h - el->shots.length 
- 10 && el->shots.length > h)
   {
     esmart_container_scroll_offset_set(el->shots.cont,
                                        h - el->shots.length - 10);
   }
+  if (el->shots.dir == CONTAINER_DIRECTION_HORIZONTAL && offset < w - 
el->shots.length - 10 && el->shots.length > w)
+  {
+    esmart_container_scroll_offset_set(el->shots.cont,
+                                       w - el->shots.length - 10);
+  }
   _elicit_shots_update_scroll_bar(el);
 
   elicit_shots_save(el);
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/elicit/src/shots.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- shots.h     12 May 2004 19:13:30 -0000      1.1
+++ shots.h     12 Aug 2004 22:26:30 -0000      1.2
@@ -2,6 +2,7 @@
 #define ELICIT_SHOTS_H
 
 int elicit_shots_init(Elicit *el);
+void elicit_shots_shutdown(Elicit *el);
 void elicit_shots_save(Elicit *el);
 void elicit_shots_load(Elicit *el);
 
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/elicit/src/swatches.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- swatches.c  14 Jun 2004 12:50:19 -0000      1.6
+++ swatches.c  12 Aug 2004 22:26:30 -0000      1.7
@@ -6,17 +6,50 @@
 int
 elicit_swatches_init(Elicit *el)
 {
-  el->swatches.cont = esmart_container_new(el->evas); 
-  esmart_container_direction_set(el->swatches.cont, CONTAINER_DIRECTION_VERTICAL);
-  esmart_container_spacing_set(el->swatches.cont, 3);
-  esmart_container_padding_set(el->swatches.cont, 5, 5, 5, 5);
-  evas_object_show(el->swatches.cont);
-  edje_object_part_swallow(el->gui, "swatch.container", el->swatches.cont);
-  edje_object_part_drag_value_set(el->gui, "swatch.scroll.bar", 0.001, 0.001);
+  if (edje_object_part_exists(el->gui, "swatch.container"))
+  {
+    char *dir;
+    
+    el->swatches.cont = esmart_container_new(el->evas); 
 
-  elicit_swatches_load(el);
+    dir = (char *)edje_object_data_get(el->gui, "swatches.direction");
+    if (dir && (dir[0] == 'h' || dir[0] == 'H'))
+      el->swatches.dir = CONTAINER_DIRECTION_HORIZONTAL;
+    else
+      el->swatches.dir = CONTAINER_DIRECTION_VERTICAL;
+    esmart_container_direction_set(el->swatches.cont, el->swatches.dir);
 
-  ecore_idle_enterer_add(elicit_swatches_scroll_idler, el);
+    esmart_container_spacing_set(el->swatches.cont, 3);
+    esmart_container_padding_set(el->swatches.cont, 5, 5, 5, 5);
+    evas_object_show(el->swatches.cont);
+    edje_object_part_swallow(el->gui, "swatch.container", el->swatches.cont);
+    edje_object_part_drag_value_set(el->gui, "swatch.scroll.bar", 0.001, 0.001);
+  
+    elicit_swatches_load(el);
+  
+    ecore_idle_enterer_add(elicit_swatches_scroll_idler, el);
+  }
+}
+
+void
+elicit_swatches_shutdown(Elicit *el)
+{
+  Evas_List *l;
+  
+  if (el->swatches.cont)
+  {
+    for (l = esmart_container_elements_get(el->swatches.cont); l; l = l->next)
+    {
+      Evas_Object *o = l->data;
+      Elicit_Swatch *sw = evas_object_data_get(o, "swatch");
+      elicit_swatch_free(sw);
+    }
+    /*
+    edje_object_part_unswallow(el->gui, el->swatches.cont);
+    evas_object_del(el->swatches.cont);
+    el->swatches.cont = NULL;
+    */
+  }
 }
 
 void
@@ -150,7 +183,11 @@
 void
 elicit_swatch_free(Elicit_Swatch *sw)
 {
-  if (sw->rect) evas_object_del(sw->rect);
+  if (sw->rect)
+  {
+    edje_object_part_unswallow(sw->obj, sw->rect);
+    evas_object_del(sw->rect);
+  }
   if (sw->obj) evas_object_del(sw->obj);
   if (sw->name) free(sw->name);
 }
@@ -162,7 +199,7 @@
   Elicit_Swatch *sw;
   Evas_Coord mw, mh;
   double length;
-  Evas_Coord h;
+  Evas_Coord w, h;
 
   sw = calloc(1, sizeof(Elicit_Swatch));
 
@@ -199,8 +236,14 @@
   /* scroll to the end of the list */
   length = esmart_container_elements_length_get(el->swatches.cont);
   el->swatches.length = length;
-  evas_object_geometry_get(el->swatches.cont, NULL, NULL, NULL, &h);
-  if (length > h)
+  evas_object_geometry_get(el->swatches.cont, NULL, NULL, &w, &h);
+  if (el->swatches.dir == CONTAINER_DIRECTION_HORIZONTAL && length > w)
+  {
+    esmart_container_scroll_offset_set(el->swatches.cont,
+                                       w - length - 10 );
+    _elicit_swatches_update_scroll_bar(el);
+  }
+  else if (el->swatches.dir == CONTAINER_DIRECTION_VERTICAL && length > h)
   {
     esmart_container_scroll_offset_set(el->swatches.cont,
                                        h - length - 10 );
@@ -231,7 +274,7 @@
 {
   Elicit *el;
   Elicit_Swatch *sw;
-  Evas_Coord h;
+  Evas_Coord w, h;
   int offset;
 
   el = evas_object_data_get(o, "elicit");
@@ -242,13 +285,18 @@
 
   el->swatches.length = esmart_container_elements_length_get(el->swatches.cont);
 
-  evas_object_geometry_get(el->swatches.cont, NULL, NULL, NULL, &h);
+  evas_object_geometry_get(el->swatches.cont, NULL, NULL, &w, &h);
   offset = esmart_container_scroll_offset_get(el->swatches.cont);
-  if (offset < h - el->swatches.length - 10 && el->swatches.length > h)
+  if (el->swatches.dir == CONTAINER_DIRECTION_VERTICAL && offset < h - 
el->swatches.length - 10 && el->swatches.length > h)
   {
     esmart_container_scroll_offset_set(el->swatches.cont,
                                        h - el->swatches.length - 10);
   }
+  else if (el->swatches.dir == CONTAINER_DIRECTION_HORIZONTAL && offset < w - 
el->swatches.length - 10 && el->swatches.length > w)
+  {
+    esmart_container_scroll_offset_set(el->swatches.cont,
+                                       w - el->swatches.length - 10);
+  }
   _elicit_swatches_update_scroll_bar(el);
 
   elicit_swatches_save(el);
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/elicit/src/swatches.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- swatches.h  12 May 2004 19:13:30 -0000      1.1
+++ swatches.h  12 Aug 2004 22:26:30 -0000      1.2
@@ -4,6 +4,7 @@
 #include <Edb.h>
 
 int elicit_swatches_init(Elicit *el);
+void elicit_swatches_shutdown(Elicit *el);
 void elicit_swatches_load(Elicit *el);
 void elicit_swatches_save(Elicit *el);
 
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/elicit/src/themes.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- themes.c    12 May 2004 19:13:30 -0000      1.1
+++ themes.c    12 Aug 2004 22:26:30 -0000      1.2
@@ -6,41 +6,69 @@
 int
 elicit_themes_init(Elicit *el)
 {
-  el->themes.cont = esmart_container_new(el->evas); 
-  esmart_container_direction_set(el->themes.cont, CONTAINER_DIRECTION_VERTICAL);
-  esmart_container_spacing_set(el->themes.cont, 2);
-  esmart_container_padding_set(el->themes.cont, 5, 5, 5, 5);
-  edje_object_part_swallow(el->gui, "theme.container", el->themes.cont);
-  edje_object_part_drag_value_set(el->gui, "theme.scroll.bar", 0.001, 0.001);
-
-  evas_object_show(el->themes.cont);
-  {
-    Evas_Object *o;
-
-    o = edje_object_add(el->evas);
-    edje_object_file_set(o, elicit_theme_find(elicit_config_theme_get()), "theme");
-    evas_object_resize(o, 100, 10);
-    evas_object_data_set(o, "theme", strdup("winter"));
-    evas_object_data_set(o, "elicit", el);
-    edje_object_part_text_set(o, "theme.label", "Not Yet");
-/*    edje_object_signal_callback_add(o, "elicit,theme,load", "*", 
elicit_theme_load_cb, NULL);*/
-    evas_object_show(o);
-    esmart_container_element_append(el->themes.cont, o);
-
-#if 0
-    o = edje_object_add(el->evas);
-    edje_object_file_set(o, elicit_theme_find(elicit_config_theme_get()), "theme");
-    evas_object_resize(o, 100, 10);
-    edje_object_part_text_set(o, "theme.label", "spring");
-    evas_object_data_set(o, "theme", strdup("spring"));
-    evas_object_data_set(o, "elicit", el);
-    edje_object_signal_callback_add(o, "elicit,theme,load", "*", 
elicit_theme_load_cb, NULL);
-    evas_object_show(o);
-    esmart_container_element_append(el->themes.cont, o);
-#endif
+  if (edje_object_part_exists(el->gui, "theme.container"))
+  {
+    el->themes.cont = esmart_container_new(el->evas); 
+    esmart_container_direction_set(el->themes.cont, CONTAINER_DIRECTION_VERTICAL);
+    esmart_container_fill_policy_set(el->themes.cont, CONTAINER_FILL_POLICY_FILL_X);
+    esmart_container_spacing_set(el->themes.cont, 2);
+    esmart_container_padding_set(el->themes.cont, 5, 5, 5, 5);
+    edje_object_part_swallow(el->gui, "theme.container", el->themes.cont);
+    edje_object_part_drag_value_set(el->gui, "theme.scroll.bar", 0.001, 0.001);
+  
+    evas_object_show(el->themes.cont);
+    {
+      Evas_Object *o;
+      Evas_List *themes, *l;
+
+      themes = elicit_themes_list();
+      
+      for (l = themes; l; l = l->next)
+      {
+        o = edje_object_add(el->evas);
+        edje_object_file_set(o, elicit_theme_find(elicit_config_theme_get()), 
"theme");
+        evas_object_resize(o, 100, 10);
+        edje_object_part_text_set(o, "theme.label", l->data);
+        evas_object_data_set(o, "theme", l->data);
+        evas_object_data_set(o, "elicit", el);
+        evas_object_repeat_events_set(o, TRUE);
+        edje_object_signal_callback_add(o, "elicit,theme,load", "*", 
elicit_theme_load_cb, NULL);
+        evas_object_show(o);
+        esmart_container_element_append(el->themes.cont, o);
+      }
+
+      evas_list_free(themes);
+
+      el->themes.length = esmart_container_elements_length_get(el->themes.cont);
+
+    }
+  }
+}
+
+void
+elicit_themes_shutdown(Elicit *el)
+{
+  Evas_List *l;
+
+  if(el->themes.cont)
+  {
+    for (l = esmart_container_elements_get(el->themes.cont); l; l = l->next)
+    {
+      Evas_Object *o = l->data;
+      char *theme = evas_object_data_get(o, "theme");
+
+      free(theme);
+      esmart_container_element_remove(el->themes.cont, o);
+      evas_object_del(o);
+    }
+   /* 
+    evas_object_del(el->themes.cont);
+    el->themes.cont = NULL;
+  */
   }
 }
 
+
 void
 elicit_themes_free(Elicit *el)
 {
@@ -57,7 +85,27 @@
   el = evas_object_data_get(o, "elicit");
   th = evas_object_data_get(o, "theme");
 
+  esmart_container_element_remove(el->themes.cont, o);
+  evas_object_del(o);
+
+#if 1
+  elicit_shots_shutdown(el);
+  elicit_swatches_shutdown(el);
+  elicit_themes_shutdown(el);
+
+  evas_object_del(el->gui);
+  
+  el->gui = edje_object_add(el->evas);
+  evas_object_name_set(el->gui, "gui");
+  evas_object_move(el->gui, 0, 0);
+  evas_object_show(el->gui);
+
   elicit_ui_theme_set(el, th, "elicit");
+
+  elicit_shots_init(el);
+  elicit_swatches_init(el);
+  elicit_themes_init(el);
+#endif
 }
 
 
@@ -73,4 +121,141 @@
   edje_object_part_text_set(el->gui, "theme.label", th);
 }
 
+Evas_List *
+elicit_themes_list()
+{
+  char *dirs = NULL, *ptr = NULL, *end = NULL, *dir = NULL;
+  struct stat st;
+  struct dirent *ent;
+  DIR *dp;
+  Evas_List *themes = NULL, *l = NULL;
+  int theme_seen = 0;
+  
+  dirs = ecore_config_theme_search_path_get();
+  ptr = dirs;
+  end = dirs + strlen(dirs);
+  dir = dirs;
+  while (ptr && ptr < end)
+  {
+    while (*ptr != '|' && ptr < end)
+      ptr++;
+    if (ptr < end)
+      *ptr = '\0';
+
+    if (stat(dir, &st) != 0)
+    {
+      ptr ++;
+      dir = ptr;
+      continue;
+    }
+    dp = opendir((const char *) dir);
+    while (ent = readdir(dp))
+    {
+      if (ent->d_name[0] == '.') continue;
+
+      theme_seen = 0;
+      for (l = themes; l; l = l->next)
+      {
+        if (!strcmp(l->data, ent->d_name))
+        {
+          theme_seen = 1;
+          break;
+        }
+      }
+
+      if (!theme_seen)
+      {
+        char *theme = strdup(ent->d_name);
+        char *suff = theme + strlen(theme) - 4;
+        if (!strcmp(suff, ".eet"))
+        {
+          *suff = '\0';
+          themes = evas_list_append(themes, theme);
+        }
+        else free(theme);
+      }
+    }
+
+    ptr++;
+    dir = ptr;
+  }
+  free(dirs);
+
+  return themes;
+}
+
+
+void
+elicit_theme_scroll_cb(void *data, Evas_Object *o, const char *emission, const char 
*source)
+{
+  Elicit *el = data;
+
+  if (!strcmp(emission, "drag"))
+  {
+    double l = el->themes.length;
+    Evas_Coord h;
+    double vx, vy;
+
+    evas_object_geometry_get(el->themes.cont, NULL, NULL, NULL, &h);
+    if (l > h)
+    {
+      edje_object_part_drag_value_get(el->gui, source, &vx, &vy);
+      esmart_container_scroll_offset_set(el->themes.cont, -vy*(l-h+10));
+    }
+  }
+  else if (!fnmatch("elicit,theme,scroll,up*", emission, 0))
+  {
+    if (!strcmp(emission, "elicit,theme,scroll,up"))
+    {
+      esmart_container_scroll(el->themes.cont, 5);
+      _elicit_themes_update_scroll_bar(el);
+    }
+    else if (!strcmp(emission, "elicit,theme,scroll,up,start"))
+    {
+      el->themes.scrolling = 1;
+      esmart_container_scroll_start(el->themes.cont, 1);
+    }
+    else
+    {
+      esmart_container_scroll_stop(el->themes.cont);
+    }
+  }
+  else
+  {
+    if (!strcmp(emission, "elicit,theme,scroll,down"))
+    {
+      esmart_container_scroll(el->themes.cont, -5);
+      _elicit_themes_update_scroll_bar(el);
+    }
+    else if (!strcmp(emission, "elicit,theme,scroll,down,start"))
+    {
+      el->themes.scrolling = 1;
+      esmart_container_scroll_start(el->themes.cont, -1);
+    }
+    else
+    {
+      esmart_container_scroll_stop(el->themes.cont);
+    }
+  }
+}
+
+int
+elicit_themes_scroll_idler(void *data)
+{
+  Elicit *el = data;
+  if (el->themes.scrolling)
+  {
+    _elicit_themes_update_scroll_bar(el);
+  }
+  return 1;
+}
 
+void
+_elicit_themes_update_scroll_bar(Elicit *el)
+{
+    int val= esmart_container_scroll_offset_get(el->themes.cont);
+    Evas_Coord h;
+
+    evas_object_geometry_get(el->themes.cont, NULL, NULL, NULL, &h);
+    edje_object_part_drag_value_set(el->gui, "theme.scroll.bar", 0, -(double)val / 
(el->themes.length - h + 10));
+}
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/elicit/src/themes.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- themes.h    12 May 2004 19:13:30 -0000      1.1
+++ themes.h    12 Aug 2004 22:26:30 -0000      1.2
@@ -1,8 +1,17 @@
 #ifndef ELICIT_THEMES_H
 #define ELICIT_THEMES_H
 
+int elicit_themes_init(Elicit *el);
+void elicit_themes_shutdown(Elicit *el);
+
 void elicit_theme_load_cb(void *data, Evas_Object *o, const char *emission, const 
char *source);
 void elicit_theme_name_show_cb(void *data, Evas_Object *o, const char *emission, 
const char *source);
-int elicit_themes_init(Elicit *el);
+
+Evas_List *elicit_themes_list(void);
+
+void elicit_theme_scroll_cb(void *data, Evas_Object *o, const char *emission, const 
char *source);
+
+int elicit_themes_scroll_idler(void *data);
+
 
 #endif




-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to