formatting + space cleanups
authorHannes Janetzek <hannes.janetzek@gmail.com>
Sat, 24 Apr 2010 00:54:12 +0000 (00:54 +0000)
committerHannes Janetzek <hannes.janetzek@gmail.com>
Sat, 24 Apr 2010 00:54:12 +0000 (00:54 +0000)
SVN revision: 48266

14 files changed:
src/modules/everything/Evry.h
src/modules/everything/e_mod_main.c
src/modules/everything/e_mod_main.h
src/modules/everything/evry.c
src/modules/everything/evry_config.c
src/modules/everything/evry_history.c
src/modules/everything/evry_plug_actions.c
src/modules/everything/evry_plug_aggregator.c
src/modules/everything/evry_plug_clipboard.c
src/modules/everything/evry_plug_text.c
src/modules/everything/evry_plug_view_help.c
src/modules/everything/evry_plug_view_thumb.c
src/modules/everything/evry_util.c
src/modules/everything/evry_view_plugin_tabs.c

index 0390f69..9bc4e1d 100644 (file)
@@ -61,7 +61,7 @@ typedef struct _Plugin_Setting  Plugin_Setting;
 #define PLUGIN(_p, _plugin) Plugin *_p = (Plugin*) _plugin
 #define VIEW(_v, _view) View *_v = (View*) _view
 
-#define EVRY_PLUGIN_ITEMS_CLEAR(_p)                    \
+#define EVRY_PLUGIN_ITEMS_CLEAR(_p)                    \
   if (EVRY_PLUGIN(_p)->items)                          \
     eina_list_free(EVRY_PLUGIN(_p)->items);            \
   EVRY_PLUGIN(_p)->items = NULL;
@@ -94,10 +94,10 @@ struct _Evry_Item
 
   /* optional: more information to be shown */
   const char *detail;
-  
+
   /* optional: for 'static' fdo icon name, otherwise use _icon_get */
   const char *icon;
-  
+
   /* item can be browsed, e.g. folders */
   Eina_Bool browseable;
 
@@ -120,7 +120,7 @@ struct _Evry_Item
 
   /* optional */
   const char *subtype;
-  
+
   /* do not set by plugin! */
   Evry_Item   *next;
   Eina_Bool    selected;
@@ -156,13 +156,13 @@ struct _Evry_Plugin
   /* provide default icon */
   const char *icon;
 
-  /* use plugin for first second or third part of an action 
+  /* use plugin for first second or third part of an action
      if actions are no dynamical lists better use Evry_Action */
   enum { type_subject, type_action, type_object } type;
 
   /* plugin provides items of this type */
   const char *type_out;
-  
+
   /* plugin accepts this type in begin function */
   const char *type_in;
 
@@ -184,7 +184,7 @@ struct _Evry_Plugin
 
   /* get an icon for an item. will be freed automatically */
   Evas_Object *(*icon_get) (Evry_Plugin *p, const Evry_Item *it, Evas *e);
-  
+
   /* only used when plugin is of type_action */
   int  (*action) (Evry_Plugin *p, const Evry_Item *item);
 
@@ -198,11 +198,11 @@ struct _Evry_Plugin
 
   /* optional: use this when you extend the plugin struct */
   void (*free) (Evry_Plugin *p);
-  
+
   /* show in aggregator */
   /* default TRUE */
   Eina_Bool aggregate;
-  
+
   /* whether the plugin uses evry_async_update to add new items. */
   /* default FALSE */
   Eina_Bool async_fetch;
@@ -217,7 +217,7 @@ struct _Evry_Plugin
   /* if transient, item is removed from history on shutdown */
   /* default FALSE */
   Eina_Bool transient;
-  
+
   /* not to be set by plugin! */
   Plugin_Config *config;
 
@@ -295,7 +295,7 @@ struct _Evry_Action
 
   /* optional: use this when you keep stuff in 'data' */
   void (*free) (Evry_Action *act);
-  
+
   /* use icon name from theme */
   const char *icon;
 
@@ -315,7 +315,7 @@ struct _Config
   int width, height;
 
   Eina_List *modules;
-  
+
   /* generic plugin config */
   Eina_List *conf_subjects;
   Eina_List *conf_actions;
@@ -337,16 +337,16 @@ struct _Config
   int view_zoom;
 
   int history_sort_mode;
-  
+
   /* use up/down keys for prev/next in thumb view */
   int cycle_mode;
 
   unsigned char first_run;
-  
+
   /* not saved data */
   Eina_List *actions;
   Eina_List *views;
-  
+
   int min_w, min_h;
 };
 
@@ -360,7 +360,7 @@ struct _Plugin_Config
   int trigger_only;
 
   int view_mode;
-  
+
   Evry_Plugin *plugin;
 };
 
index 50a5743..1f01cb0 100644 (file)
@@ -96,14 +96,14 @@ e_modapi_init(E_Module *m)
      EVRY_EVENT_ITEM_SELECT = ecore_event_type_new();
    if (!EVRY_EVENT_ITEM_CHANGED)
      EVRY_EVENT_ITEM_CHANGED = ecore_event_type_new();
-   
+
    e_module_delayed_set(m, 0);
 
    /* make sure module is loaded before others */
    e_module_priority_set(m, -1000);
 
    e_datastore_set("everything_loaded", "");
-   
+
    return m;
 }
 
@@ -113,7 +113,7 @@ e_modapi_shutdown(E_Module *m __UNUSED__)
    E_Config_Dialog *cfd;
    Evry_Plugin *p;
    Evry_Action *a;
-   
+
    evry_shutdown();
 
    /* remove module-supplied menu additions */
@@ -133,12 +133,12 @@ e_modapi_shutdown(E_Module *m __UNUSED__)
    view_help_shutdown();
    evry_plug_clipboard_shutdown();
    evry_plug_text_shutdown();
-   
+
    /* EINA_LIST_FREE(evry_conf->plugins, p)
     *   evry_plugin_free(p, 1);  */
 
    EINA_LIST_FREE(evry_conf->actions, a)
-     evry_action_free(a); 
+     evry_action_free(a);
 
    while ((cfd = e_config_dialog_get("E", "_config_everything_dialog")))
      e_object_del(E_OBJECT(cfd));
@@ -154,7 +154,7 @@ e_modapi_shutdown(E_Module *m __UNUSED__)
    E_CONFIG_DD_FREE(plugin_conf_edd);
    E_CONFIG_DD_FREE(plugin_setting_edd);
    e_datastore_del("everything_loaded");
-   
+
    return 1;
 }
 
@@ -235,7 +235,7 @@ _config_init()
        Plugin_Config *pc;
        Eina_List *conf[3];
        int i;
-       
+
        conf[0] = evry_conf->conf_subjects;
        conf[1] = evry_conf->conf_actions;
        conf[2] = evry_conf->conf_objects;
@@ -252,7 +252,7 @@ _config_init()
        evry_conf->conf_subjects = NULL;
        evry_conf->conf_actions = NULL;
        evry_conf->conf_objects = NULL;
-       
+
        evry_conf->version = CONFIG_VERSION;
      }
 
@@ -261,7 +261,7 @@ _config_init()
        _config_free();
        evry_conf = NULL;
      }
-   
+
    if (!evry_conf)
      {
        evry_conf = E_NEW(Evry_Config, 1);
@@ -353,7 +353,7 @@ _e_mod_action_cb(E_Object *obj, const char *params)
      evry_show(zone, params);
    else
      evry_show(zone, NULL);
-   
+
    /* FIXME popup flickers sometimes when deferes*/
    /* if (params && params[0])
     *   evry_show(zone, params);
@@ -396,7 +396,7 @@ _evry_cb_plugin_sort(const void *data1, const void *data2)
 {
    const Plugin_Config *pc1 = data1;
    const Plugin_Config *pc2 = data2;
-   
+
    return pc1->priority - pc2->priority;
 }
 
@@ -431,7 +431,7 @@ evry_plugin_new(Evry_Plugin *base, const char *name, const char *label, int type
 
    p->history = EINA_TRUE;
    p->view_mode = VIEW_MODE_NONE;
-   
+
    return p;
 }
 
@@ -469,7 +469,7 @@ evry_action_new(const char *name, const char *label, const char *type_in1, const
    act->action = action;
    act->check_item = check_item;
    act->icon = (icon ? eina_stringshare_add(icon) : NULL);
-   
+
    return act;
 }
 
@@ -499,7 +499,7 @@ evry_plugin_register(Evry_Plugin *p, int priority)
    Plugin_Config *pc;
    Eina_List *conf[3];
    int i = 0;
-   
+
    conf[0] = evry_conf->conf_subjects;
    conf[1] = evry_conf->conf_actions;
    conf[2] = evry_conf->conf_objects;
@@ -517,20 +517,20 @@ evry_plugin_register(Evry_Plugin *p, int priority)
        pc->view_mode = p->view_mode;
        if (p->trigger)
          {
-           pc->trigger = eina_stringshare_add(p->trigger); 
+           pc->trigger = eina_stringshare_add(p->trigger);
            pc->trigger_only = 1;
          }
        conf[p->type] = eina_list_append(conf[p->type], pc);
      }
-   
+
    p->config = pc;
    pc->plugin = p;
-   
+
    conf[p->type] = eina_list_sort(conf[p->type], -1, _evry_cb_plugin_sort);
 
    EINA_LIST_FOREACH(conf[p->type], l, pc)
      pc->priority = i++;
-   
+
    evry_conf->conf_subjects = conf[0];
    evry_conf->conf_actions = conf[1];
    evry_conf->conf_objects = conf[2];
@@ -549,7 +549,7 @@ void
 evry_plugin_unregister(Evry_Plugin *p)
 {
    DBG("%s", p->name);
-   
+
    /* evry_conf->plugins = eina_list_remove(evry_conf->plugins, p); */
 
    if (p->type == type_subject)
@@ -604,5 +604,3 @@ evry_view_unregister(Evry_View *view)
 {
    evry_conf->views = eina_list_remove(evry_conf->views, view);
 }
-
-
index 0acb3ef..3c2b190 100644 (file)
@@ -51,7 +51,7 @@ struct _Tab_View
   void (*update) (Tab_View *tv);
   void (*clear) (Tab_View *tv);
   int (*key_down) (Tab_View *tv, const Ecore_Event_Key *ev);
-  
+
   double align;
   double align_to;
   Ecore_Animator *animator;
index b376bbd..6716cd2 100644 (file)
@@ -145,13 +145,13 @@ _cb_show_timer(void *data)
 
        if (evry_conf->first_run)
          {
-            _evry_view_toggle(s, "?"); 
+            _evry_view_toggle(s, "?");
             evry_conf->first_run = EINA_FALSE;
          }
        else
          {
             s->view = view->create(view, s, list->o_main);
-            
+
             _evry_view_show(s->view);
          }
      }
@@ -159,7 +159,7 @@ _cb_show_timer(void *data)
      {
        return 0;
      }
-   
+
    _evry_list_win_show();
 
    return 0;
@@ -218,7 +218,7 @@ evry_show(E_Zone *zone, const char *params)
    _evry_selector_subjects_get(params);
    _evry_selector_update(selectors[0]);
    _evry_selector_activate(selectors[0]);
-   
+
    if (!evry_conf->hide_input)
      {
        edje_object_part_text_set(win->o_main, "e.text.label", "Search:");
@@ -459,7 +459,7 @@ evry_plugin_async_update(Evry_Plugin *p, int action)
             if (!eina_list_data_find(s->cur_plugins, p)) return;
 
             s->cur_plugins = eina_list_remove(s->cur_plugins, p);
-            
+
             if (s->plugin == p)
               _evry_plugin_select(s, NULL);
          }
@@ -502,7 +502,7 @@ evry_plugin_async_update(Evry_Plugin *p, int action)
          {
             _evry_selector_update(sel);
          }
-       
+
        _evry_view_update(s, NULL);
      }
    else if (action == EVRY_ASYNC_UPDATE_REFRESH)
@@ -635,7 +635,7 @@ _evry_window_new(E_Zone *zone)
    Evas_Object *o;
    const char *tmp;
    int offset_s = 0;
-   
+
    popup = e_popup_new(zone, 0, 0, 1, 1);
    if (!popup) return NULL;
 
@@ -668,7 +668,7 @@ _evry_window_new(E_Zone *zone)
    if (evry_conf->width > mw)
      mw = evry_conf->width;
    evry_conf->width = mw;
-   
+
    mw += offset_s*2;
    mh += offset_s*2;
    x = (zone->w * evry_conf->rel_x) - (mw / 2);
@@ -711,7 +711,7 @@ _evry_selector_new(int type)
    evas_object_show(o);
 
    sel->aggregator = evry_plug_aggregator_new(sel, type);
-   
+
    if (type == type_subject)
      {
        sel->history = evry_hist->subjects;
@@ -758,13 +758,13 @@ _evry_selector_free(Evry_Selector *sel)
 
    if (list->visible && (sel == selector))
      _evry_view_clear(sel->state);
-   
+
    while (sel->states)
      _evry_state_pop(sel);
 
    EVRY_PLUGIN_FREE(sel->aggregator);
    EVRY_PLUGIN_FREE(sel->actions);
-   
+
    if (sel->plugins) eina_list_free(sel->plugins);
 
    if (sel->update_timer)
@@ -823,7 +823,7 @@ _evry_selector_thumb_gen(void *data, Evas_Object *obj, void *event_info)
        evas_object_del(sel->o_icon);
        sel->o_icon = NULL;
      }
-   
+
    e_icon_size_get(sel->o_thumb, &w, &h);
    edje_extern_object_aspect_set(sel->o_thumb, EDJE_ASPECT_CONTROL_BOTH, w, h);
    edje_object_part_swallow(sel->o_main, "e.swallow.thumb", sel->o_thumb);
@@ -1060,7 +1060,7 @@ _evry_selector_actions_get(Evry_Item *it)
 
    EINA_LIST_FOREACH(sel->plugins, l, plugin)
      {
-       if ((plugin == sel->actions) || 
+       if ((plugin == sel->actions) ||
            (plugin->type_in && type_out && plugin->type_in == type_out))
          {
             if (plugin->begin)
@@ -1132,7 +1132,7 @@ _evry_state_new(Evry_Selector *sel, Eina_List *plugins)
    s->inp = malloc(INPUTLEN);
    s->inp[0] = 0;
    s->input = s->inp;
-   
+
    s->plugins = plugins;
 
    sel->states = eina_list_prepend(sel->states, s);
@@ -1337,7 +1337,7 @@ _evry_cb_key_down(void *data __UNUSED__, int type __UNUSED__, void *event)
        evry_hide();
        return 1;
      }
-   
+
    if (!selector || !selector->state)
      return 1;
    s = selector->state;
@@ -1415,7 +1415,7 @@ _evry_cb_key_down(void *data __UNUSED__, int type __UNUSED__, void *event)
        evry_item_ref(it);
 
        s->item_auto_selected = EINA_FALSE;
-       
+
        if (it->plugin->complete)
          action = it->plugin->complete(it->plugin, it, &input);
        else
@@ -1430,7 +1430,7 @@ _evry_cb_key_down(void *data __UNUSED__, int type __UNUSED__, void *event)
          }
 
        E_FREE(input);
-       
+
        evry_item_free(it);
      }
    else if ((ev->modifiers & ECORE_EVENT_MODIFIER_CTRL) &&
@@ -1438,18 +1438,18 @@ _evry_cb_key_down(void *data __UNUSED__, int type __UNUSED__, void *event)
      {
        if (!s || !s->cur_item)
          goto end;
-         
+
        int delete = (!strcmp(key, "Delete") && (ev->modifiers & ECORE_EVENT_MODIFIER_SHIFT));
        int promote = (!strcmp(key, "Insert"));
        History_Entry *he;
        History_Item *hi;
        Eina_List *l, *ll;
        Evry_Item *it = s->cur_item;
-            
+
        if (!(he = eina_hash_find
              (selector->history, (it->id ? it->id : it->label))))
          goto end;
-            
+
        EINA_LIST_FOREACH_SAFE(he->items, l, ll, hi)
          {
             if (hi->plugin != it->plugin->name)
@@ -1539,7 +1539,7 @@ _evry_cb_key_down(void *data __UNUSED__, int type __UNUSED__, void *event)
      goto end;
    else if ((ev->compose && !(ev->modifiers & ECORE_EVENT_MODIFIER_ALT)))
      {
-       int len = strlen(s->inp);       
+       int len = strlen(s->inp);
 
        if (len == 0 && (_evry_view_toggle(s, ev->compose)))
          goto end;
@@ -1547,7 +1547,7 @@ _evry_cb_key_down(void *data __UNUSED__, int type __UNUSED__, void *event)
        if (len < (INPUTLEN - strlen(ev->compose)))
          {
             strcat(s->inp, ev->compose);
-            
+
             /* if (isspace(*ev->compose))
              *   {
              *           /\* do not update matches on space *\/
@@ -1656,7 +1656,7 @@ _evry_clear(Evry_Selector *sel)
      {
        s->inp[0] = 0;
        s->input = s->inp;
-       
+
        _evry_update(sel, 1);
        if (!list->visible && evry_conf->hide_input)
          edje_object_signal_emit(list->o_main, "e,state,entry_hide", "e");
@@ -1768,7 +1768,7 @@ _evry_view_hide(Evry_View *v, int slide)
    if (!v) return;
 
    v->clear(v, slide);
-   
+
    if (v->o_list)
      {
        edje_object_part_unswallow(list->o_main, v->o_list);
@@ -1820,7 +1820,7 @@ _evry_view_toggle(Evry_State *s, const char *trigger)
    Evry_View *view, *v = NULL;
    Eina_List *l, *ll;
    Eina_Bool triggered = FALSE;
-   
+
    if (trigger)
      {
        EINA_LIST_FOREACH(evry_conf->views, ll, view)
@@ -1891,15 +1891,15 @@ _evry_matches_update(Evry_Selector *sel, int async)
    Evry_Plugin *p;
    Eina_List *l;
    const char *input;
-   s->changed = 1;   
-   
+   s->changed = 1;
+
    if (s->inp[0])
      input = s->inp;
    else
      input = NULL;
 
    if (!input || !s->trigger_active)
-     { 
+     {
        EINA_LIST_FREE(s->cur_plugins, p);
        s->trigger_active = EINA_FALSE;
      }
@@ -1913,7 +1913,7 @@ _evry_matches_update(Evry_Selector *sel, int async)
      {
        int len_trigger = 0;
        int len_inp = strlen(s->inp);
-       
+
        EINA_LIST_FOREACH(s->plugins, l, p)
          {
             /* input matches plugin trigger? */
@@ -1943,15 +1943,15 @@ _evry_matches_update(Evry_Selector *sel, int async)
                  s->inp[0] = '>';
                  s->inp[1] = '\0';
               }
-            s->input = s->inp + 1;          
-            _evry_update_text_label(s); 
+            s->input = s->inp + 1;
+            _evry_update_text_label(s);
          }
      }
-   
+
    if (!s->cur_plugins)
      {
        s->input = s->inp;
-       
+
        EINA_LIST_FOREACH(s->plugins, l, p)
          {
             if (!(win->plugin_dedicated) &&
@@ -1976,14 +1976,14 @@ _evry_matches_update(Evry_Selector *sel, int async)
      }
 
    if (sel->aggregator->fetch(sel->aggregator, input))
-     _evry_plugin_list_insert(s, sel->aggregator);     
+     _evry_plugin_list_insert(s, sel->aggregator);
 
    if (s->plugin_auto_selected ||
        (s->plugin && (!eina_list_data_find(s->cur_plugins, s->plugin))))
      _evry_plugin_select(s, NULL);
    else
-     _evry_plugin_select(s, s->plugin);     
-   
+     _evry_plugin_select(s, s->plugin);
+
    if (sel->update_timer)
      ecore_timer_del(sel->update_timer);
    sel->update_timer = NULL;
@@ -2041,12 +2041,12 @@ void
 evry_plugin_select(const Evry_State *s, Evry_Plugin *p)
 {
    Evry_Selector *sel;
-   
+
    _evry_plugin_select((Evry_State *) s, p);
 
    sel = _evry_selector_for_plugin_get(p);
-   
-   if (sel)  
+
+   if (sel)
      _evry_selector_update(sel);
 }
 
@@ -2085,17 +2085,16 @@ _evry_cb_selection_notify(void *data, int type, void *event)
    if ((ev->selection == ECORE_X_SELECTION_CLIPBOARD) ||
        (ev->selection == ECORE_X_SELECTION_PRIMARY))
      {
-        if (strcmp(ev->target, ECORE_X_SELECTION_TARGET_UTF8_STRING) == 0)
-          {
-             Ecore_X_Selection_Data_Text *text_data;
+       if (strcmp(ev->target, ECORE_X_SELECTION_TARGET_UTF8_STRING) == 0)
+         {
+            Ecore_X_Selection_Data_Text *text_data;
 
-             text_data = ev->data;
+            text_data = ev->data;
 
             strncat(s->input, text_data->text, (INPUTLEN - strlen(s->input)) - 1);
             _evry_update(selector, 1);
-          }
+         }
      }
 
    return 1;
 }
-
index 6d4c585..4944a62 100644 (file)
@@ -17,9 +17,9 @@ struct _Plugin_Page
   Evas_Object *o_view_list;
   Evas_Object *o_view_detail;
   Evas_Object *o_view_thumb;
-  
+
   Eina_List *configs;
-  
+
   char *trigger;
   int trigger_only;
   int view_mode;
@@ -38,7 +38,7 @@ struct _E_Config_Dialog_Data
   double rel_x, rel_y;
   int scroll_animate;
   double scroll_speed;
-  
+
   char *cmd_terminal;
   char *cmd_sudo;
 
@@ -93,15 +93,15 @@ _fill_data(E_Config_Dialog_Data *cfdata)
    C(scroll_speed);
 #undef C
 
-   cfdata->page[0].configs = eina_list_clone(evry_conf->conf_subjects); 
-   cfdata->page[1].configs = eina_list_clone(evry_conf->conf_actions); 
-   cfdata->page[2].configs = eina_list_clone(evry_conf->conf_objects); 
-   
+   cfdata->page[0].configs = eina_list_clone(evry_conf->conf_subjects);
+   cfdata->page[1].configs = eina_list_clone(evry_conf->conf_actions);
+   cfdata->page[2].configs = eina_list_clone(evry_conf->conf_objects);
+
    if (evry_conf->cmd_terminal)
-     cfdata->cmd_terminal = strdup(evry_conf->cmd_terminal);   
+     cfdata->cmd_terminal = strdup(evry_conf->cmd_terminal);
 
    if (evry_conf->cmd_sudo)
-     cfdata->cmd_sudo = strdup(evry_conf->cmd_sudo);   
+     cfdata->cmd_sudo = strdup(evry_conf->cmd_sudo);
 }
 
 static void *
@@ -130,7 +130,7 @@ static int
 _basic_apply_data(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata)
 {
    int i;
-   
+
 #define C(_name) evry_conf->_name = cfdata->_name
    C(height);
    C(width);
@@ -150,7 +150,7 @@ _basic_apply_data(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata)
    if (evry_conf->conf_subjects) eina_list_free(evry_conf->conf_subjects);
    if (evry_conf->conf_actions) eina_list_free(evry_conf->conf_actions);
    if (evry_conf->conf_objects) eina_list_free(evry_conf->conf_objects);
-  
+
    evry_conf->conf_subjects = eina_list_clone(cfdata->page[0].configs);
    evry_conf->conf_actions = eina_list_clone(cfdata->page[1].configs);
    evry_conf->conf_objects = eina_list_clone(cfdata->page[2].configs);
@@ -166,20 +166,20 @@ _basic_apply_data(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata)
               cfdata->page[i].cur->trigger = eina_stringshare_add(cfdata->page[i].trigger);
             else
               cfdata->page[i].cur->trigger = NULL;
-       
+
             cfdata->page[i].cur->trigger_only = cfdata->page[i].trigger_only;
 
             cfdata->page[i].cur->view_mode = cfdata->page[i].view_mode;
          }
      }
-   
+
    if (evry_conf->cmd_terminal)
      eina_stringshare_del(evry_conf->cmd_terminal);
    evry_conf->cmd_terminal = eina_stringshare_add(cfdata->cmd_terminal);
    if (evry_conf->cmd_sudo)
      eina_stringshare_del(evry_conf->cmd_sudo);
    evry_conf->cmd_sudo = eina_stringshare_add(cfdata->cmd_sudo);
-   
+
    e_config_save_queue();
    return 1;
 }
@@ -198,10 +198,10 @@ _fill_list(Eina_List *plugins, Evas_Object *obj, int enabled __UNUSED__)
    edje_freeze();
    e_widget_ilist_freeze(obj);
    e_widget_ilist_clear(obj);
-   
+
    EINA_LIST_FOREACH(plugins, l, pc)
      e_widget_ilist_append(obj, NULL, pc->name, NULL, pc, NULL);
-   
+
    e_widget_ilist_go(obj);
    e_widget_size_min_get(obj, &w, NULL);
    e_widget_size_min_set(obj, w > 180 ? w : 180, 200);
@@ -217,7 +217,7 @@ _plugin_move(Eina_List *plugins, Evas_Object *list, int dir)
    Eina_List *l1, *l2;
 
    sel = e_widget_ilist_selected_get(list);
-  
+
    if ((sel >= 1 && dir > 0) || (sel >= 2 && dir < 0))
      {
        Plugin_Config *pc;
@@ -257,15 +257,15 @@ _list_select_cb (void *data, Evas_Object *obj)
    int sel = e_widget_ilist_selected_get(obj);
    Plugin_Config *pc;
    Plugin_Page *page = data;
-   
+
    if (sel >= 0)
      {
        pc = eina_list_nth(page->configs, sel);
        e_widget_entry_text_set(page->o_trigger, pc->trigger);
-       e_widget_disabled_set(page->o_trigger, 0); 
+       e_widget_disabled_set(page->o_trigger, 0);
 
-       e_widget_check_checked_set(page->o_trigger_only, pc->trigger_only); 
-       e_widget_disabled_set(page->o_trigger_only, 0); 
+       e_widget_check_checked_set(page->o_trigger_only, pc->trigger_only);
+       e_widget_disabled_set(page->o_trigger_only, 0);
 
        e_widget_disabled_set(page->o_view_default, 0);
        e_widget_disabled_set(page->o_view_detail, 0);
@@ -273,26 +273,26 @@ _list_select_cb (void *data, Evas_Object *obj)
        e_widget_disabled_set(page->o_view_thumb, 0);
 
        if (pc->view_mode == -1)
-         e_widget_radio_toggle_set(page->o_view_default, 1); 
+         e_widget_radio_toggle_set(page->o_view_default, 1);
        else if (pc->view_mode == 0)
          e_widget_radio_toggle_set(page->o_view_list, 1);
        else if (pc->view_mode == 1)
          e_widget_radio_toggle_set(page->o_view_detail, 1);
        else if (pc->view_mode == 2)
          e_widget_radio_toggle_set(page->o_view_thumb, 1);
-       
+
        page->cur = pc;
      }
    else
      {
        e_widget_entry_text_set(page->o_trigger, "");
-       e_widget_disabled_set(page->o_trigger, 1); 
+       e_widget_disabled_set(page->o_trigger, 1);
        e_widget_disabled_set(page->o_trigger_only, 1);
        e_widget_disabled_set(page->o_view_default, 1);
        e_widget_disabled_set(page->o_view_detail, 1);
        e_widget_disabled_set(page->o_view_list, 1);
        e_widget_disabled_set(page->o_view_thumb, 1);
-       
+
        page->cur = NULL;
      }
 }
@@ -308,7 +308,7 @@ _create_plugin_page(E_Config_Dialog_Data *cfdata, Evas *e, Plugin_Page *page)
    Evas_Object *ot, *o, *of, *ob;
    E_Radio_Group *rg;
    Evas_Object *list;
-   
+
    of = e_widget_framelist_add(e, _("Active Plugins"), 0);
    page->list = e_widget_ilist_add(e, 24, 24, NULL);
    e_widget_on_change_hook_set(page->list, _list_select_cb, page);
@@ -368,7 +368,7 @@ _create_plugin_page(E_Config_Dialog_Data *cfdata, Evas *e, Plugin_Page *page)
     *                     cfdata->p_subject);
     * e_widget_framelist_object_append(of, o); */
    /* e_widget_table_object_append(ob, of, 1, 2, 1, 1, 1, 0, 1, 0); */
-   
+
    return ob;
 }
 
@@ -377,7 +377,7 @@ _basic_create_widgets(E_Config_Dialog *cfd, Evas *e, E_Config_Dialog_Data *cfdat
 {
    Evas_Object *ot, *o, *of, *ob, *otb, *otb2;
    E_Radio_Group *rg;
-   
+
    otb = e_widget_toolbook_add(e, 48 * e_scale, 48 * e_scale);
 
    o = e_widget_table_add(e, 0);
@@ -395,7 +395,7 @@ _basic_create_widgets(E_Config_Dialog *cfd, Evas *e, E_Config_Dialog_Data *cfdat
 
    ob = e_widget_label_add(e, _("Quick Navigation"));
    e_widget_framelist_object_append(of, ob);
-    
+
    rg = e_widget_radio_group_new(&cfdata->quick_nav);
    ob = e_widget_radio_add(e, _("Off"), 0, rg);
    e_widget_framelist_object_append(of, ob);
@@ -404,10 +404,10 @@ _basic_create_widgets(E_Config_Dialog *cfd, Evas *e, E_Config_Dialog_Data *cfdat
    ob = e_widget_radio_add(e, _("Vi style (ALT + h,j,k,l,n,p,m,i)"), 1, rg);
    e_widget_framelist_object_append(of, ob);
 
-   e_widget_table_object_append(o, of, 0, 0, 1, 1, 0, 0, 0, 0); 
+   e_widget_table_object_append(o, of, 0, 0, 1, 1, 0, 0, 0, 0);
 
    of = e_widget_framelist_add(e, _("Default View"), 0);
-   rg = e_widget_radio_group_new(&cfdata->view_mode); 
+   rg = e_widget_radio_group_new(&cfdata->view_mode);
    ob = e_widget_radio_add(e, _("List"), 0, rg);
    e_widget_framelist_object_append(of, ob);
    ob = e_widget_radio_add(e, _("Detailed"), 1, rg);
@@ -421,14 +421,14 @@ _basic_create_widgets(E_Config_Dialog *cfd, Evas *e, E_Config_Dialog_Data *cfdat
    /* ob = e_widget_slider_add(e, 1, 0, _("%1.1f"),
     *                      5, 20, 0.1, 0, &(cfdata->scroll_speed), NULL, 10);
     * e_widget_framelist_object_append(of, ob); */
-   
+
    ob = e_widget_check_add(e, _("Up/Down select next item in icon view"),
                           &(cfdata->cycle_mode));
    e_widget_framelist_object_append(of, ob);
-   e_widget_table_object_append(o, of, 1, 0, 1, 1, 0, 1, 0, 0); 
+   e_widget_table_object_append(o, of, 1, 0, 1, 1, 0, 1, 0, 0);
 
    of = e_widget_framelist_add(e, _("Sorting"), 0);
-   rg = e_widget_radio_group_new(&cfdata->history_sort_mode); 
+   rg = e_widget_radio_group_new(&cfdata->history_sort_mode);
    ob = e_widget_radio_add(e, _("By usage"), 0, rg);
    e_widget_radio_toggle_set(ob, (cfdata->history_sort_mode == 0));
    e_widget_framelist_object_append(of, ob);
@@ -440,7 +440,7 @@ _basic_create_widgets(E_Config_Dialog *cfd, Evas *e, E_Config_Dialog_Data *cfdat
    e_widget_framelist_object_append(of, ob);
 
    e_widget_table_object_append(o, of, 0, 1, 2, 1, 1, 0, 0, 0);
-   
+
    of = e_widget_framelist_add(e, _("Commands"), 0);
    ob = e_widget_label_add(e, _("Terminal Command"));
    e_widget_framelist_object_append(of, ob);
@@ -453,7 +453,7 @@ _basic_create_widgets(E_Config_Dialog *cfd, Evas *e, E_Config_Dialog_Data *cfdat
    e_widget_framelist_object_append(of, ob);
 
    e_widget_table_object_append(o, of, 0, 2, 2, 1, 1, 0, 0, 0);
-   
+
    e_widget_toolbook_page_append(otb, NULL, _("General Settings"),
                                 o, 1, 0, 1, 0, 0.5, 0.0);
 
@@ -471,7 +471,7 @@ _basic_create_widgets(E_Config_Dialog *cfd, Evas *e, E_Config_Dialog_Data *cfdat
    ob = _create_plugin_page(cfdata, e, &cfdata->page[2]);
    e_widget_toolbook_page_append(otb2, NULL, _("Object Plugins"),
                                 ob, 1, 0, 1, 0, 0.5, 0.0);
-   
+
    e_widget_toolbook_page_append(otb, NULL, _("Plugins"),
                                 otb2, 1, 0, 1, 0, 0.5, 0.0);
 
@@ -486,7 +486,7 @@ _basic_create_widgets(E_Config_Dialog *cfd, Evas *e, E_Config_Dialog_Data *cfdat
                            evry_conf->min_w, 800, 5, 0, NULL,
                            &(cfdata->width), 200);
    e_widget_framelist_object_append(of, ob);
-   
+
    ob = e_widget_label_add(e, _("Popup Height"));
    e_widget_framelist_object_append(of, ob);
    ob = e_widget_slider_add(e, 1, 0, _("%1.0f"),
@@ -502,7 +502,7 @@ _basic_create_widgets(E_Config_Dialog *cfd, Evas *e, E_Config_Dialog_Data *cfdat
                            0.0, 1.0, 0.01, 0,
                            &(cfdata->rel_y), NULL, 200);
    e_widget_framelist_object_append(of, ob);
-   
+
    ob = e_widget_label_add(e, _("Horizontal"));
    e_widget_framelist_object_append(of, ob);
    ob = e_widget_slider_add(e, 1, 0, _("%1.2f"),
@@ -514,7 +514,7 @@ _basic_create_widgets(E_Config_Dialog *cfd, Evas *e, E_Config_Dialog_Data *cfdat
    e_widget_toolbook_page_append(otb, NULL, _("Geometry"),
                                 o, 1, 0, 1, 0, 0.5, 0.0);
 
-   
+
    e_widget_toolbook_page_show(otb, 0);
 
    return otb;
index f401f49..44330dd 100644 (file)
@@ -105,7 +105,7 @@ _hist_cleanup_cb(const Eina_Hash *hash, const void *key, void *data, void *fdata
             hi->count--;
             hi->last_used = d->time - SEVEN_DAYS/2;
          }
-       
+
        /* item is transient or too old */
        if (!hi->count || hi->transient)
          {
@@ -173,7 +173,7 @@ EAPI void
 evry_history_load(void)
 {
    evry_hist = e_config_domain_load("module.everything.history", hist_edd);
-     
+
    if (evry_hist && evry_hist->version != HISTORY_VERSION)
      {
        eina_hash_foreach(evry_hist->subjects, _hist_free_cb, NULL);
@@ -209,7 +209,7 @@ evry_history_unload(void)
    eina_hash_foreach(evry_hist->actions,  _hist_free_cb, NULL);
    eina_hash_free(evry_hist->subjects);
    eina_hash_free(evry_hist->actions);
-   
+
    E_FREE(evry_hist);
    evry_hist = NULL;
 }
@@ -221,7 +221,7 @@ evry_history_add(Eina_Hash *hist, Evry_Item *it, const char *ctxt, const char *i
    History_Item  *hi = NULL;
    Eina_List *l;
    const char *id;
-   
+
    if (!it || !it->plugin->history) return NULL;
 
    id = (it->id ? it->id : it->label);
@@ -285,11 +285,11 @@ evry_history_item_usage_set(Eina_Hash *hist, Evry_Item *it, const char *input, c
 
    if (!it->plugin->history)
      return 0;
-   
+
    it->usage = 0.0;
    if (!(he = eina_hash_find(hist, (it->id ? it->id : it->label))))
      return 0;
-   
+
    EINA_LIST_FOREACH(he->items, l, hi)
      {
        if (hi->plugin != it->plugin->name)
@@ -303,10 +303,10 @@ evry_history_item_usage_set(Eina_Hash *hist, Evry_Item *it, const char *input, c
         *      if (hi->last_used > it->usage)
         *        it->usage = hi->last_used;
         *   } */
-       
+
        if (evry_conf->history_sort_mode == 0)
          {
-            
+
             if (!input || !hi->input)
               {
                  it->usage += hi->usage * hi->count;
@@ -331,7 +331,7 @@ evry_history_item_usage_set(Eina_Hash *hist, Evry_Item *it, const char *input, c
        else if (evry_conf->history_sort_mode == 1)
          {
             it->usage = hi->count * (hi->last_used / 10000000000.0);
-            
+
          }
        else if (evry_conf->history_sort_mode == 2)
          {
@@ -339,10 +339,9 @@ evry_history_item_usage_set(Eina_Hash *hist, Evry_Item *it, const char *input, c
               it->usage = hi->last_used;
          }
      }
-   
+
    if (it->usage > 0.0)
      return 1;
 
    return 0;
 }
-
index b72db8c..8ec14dc 100644 (file)
@@ -9,7 +9,7 @@ _cleanup(Evry_Plugin *p)
 {
    Evry_Action *act;
    Evry_Selector *sel;
-   
+
    if (p->type == type_subject)
      sel = selectors[0];
    else
@@ -26,9 +26,9 @@ _begin(Evry_Plugin *p, const Evry_Item *it)
 {
    Evry_Action *act;
    Eina_List *l;
-   const char *type;   
+   const char *type;
    Evry_Selector *sel;
-   
+
    if (p->type == type_subject)
      sel = selectors[0];
    else
@@ -42,7 +42,7 @@ _begin(Evry_Plugin *p, const Evry_Item *it)
        type = it->plugin->type_out;
        if (!type) return NULL;
      }
-   
+
    EINA_LIST_FOREACH(evry_conf->actions, l, act)
      {
        if ((!act->type_in1) ||
@@ -59,7 +59,7 @@ _begin(Evry_Plugin *p, const Evry_Item *it)
      }
 
    if (!sel->cur_actions) return NULL;
-   
+
    return p;
 }
 
@@ -119,7 +119,7 @@ _fetch(Evry_Plugin *p, const char *input)
      }
 
    if (!p->items) return 0;
-   
+
    if (input)
      EVRY_PLUGIN_ITEMS_SORT(p, _cb_sort);
 
index ed231e7..84b65da 100644 (file)
@@ -45,7 +45,7 @@ _cb_sort_recent(const void *data1, const void *data2)
      return (it1->priority - it2->priority);
 
    return strcmp(it1->label, it2->label);
-   
+
   return 1;
 }
 
@@ -54,7 +54,7 @@ _cb_sort(const void *data1, const void *data2)
 {
    const Evry_Item *it1 = data1;
    const Evry_Item *it2 = data2;
-   
+
    if (it1->usage && it2->usage)
      return (it1->usage > it2->usage ? -1 : 1);
    if (it1->usage && !it2->usage)
@@ -77,7 +77,7 @@ _cb_sort(const void *data1, const void *data2)
    if ((it1->plugin == it2->plugin) &&
        (it1->priority - it2->priority))
      return (it1->priority - it2->priority);
-   
+
    if (it1->fuzzy_match > 0 || it2->fuzzy_match > 0)
      {
        if (it2->fuzzy_match <= 0)
@@ -121,13 +121,13 @@ _fetch(Evry_Plugin *plugin, const char *input)
    plugin->changed = 1;
 
    s = p->selector->state;
-   
+
    if (!s || !s->cur_plugins || !s->cur_plugins->next)
      return 0;
 
    /* first is aggregator itself */
    lp = s->cur_plugins;
-   
+
    EVRY_PLUGIN_ITEMS_FREE(p);
 
    /* get current 'context' ... */
@@ -138,7 +138,7 @@ _fetch(Evry_Plugin *plugin, const char *input)
          {
             item = selectors[i-1]->state->cur_item;
             context = item->context;
-         }     
+         }
      }
 
    if (input)
@@ -146,7 +146,7 @@ _fetch(Evry_Plugin *plugin, const char *input)
        EINA_LIST_FOREACH(lp, l, pp)
          {
             if (!pp->aggregate) continue;
-            
+
             EINA_LIST_FOREACH(pp->items, ll, it)
               {
                  if (it->fuzzy_match == 0)
@@ -167,11 +167,11 @@ _fetch(Evry_Plugin *plugin, const char *input)
          {
             if (!pp->aggregate) continue;
             cnt = 0;
-            
+
             EINA_LIST_FOREACH(pp->items, ll, it)
               {
                  if (cnt++ == MAX_ITEMS) break;
-                   
+
                  if (!eina_list_data_find_list(items, it))
                    {
                       it->fuzzy_match = 0;
@@ -184,7 +184,7 @@ _fetch(Evry_Plugin *plugin, const char *input)
    EINA_LIST_FOREACH(lp, l, pp)
      {
        if (!pp->aggregate) continue;
-       
+
        EINA_LIST_FOREACH(pp->items, ll, it)
          {
             if (evry_history_item_usage_set(p->selector->history, it, input, context) &&
@@ -228,7 +228,7 @@ _fetch(Evry_Plugin *plugin, const char *input)
    EINA_LIST_FOREACH_SAFE(p->base.items, l, ll, it)
      {
        if (cnt++ < MAX_ITEMS) continue;
-       evry_item_free(it); 
+       evry_item_free(it);
        p->base.items = eina_list_remove_list(p->base.items, l);
      }
 
@@ -289,7 +289,7 @@ Evry_Plugin *
 evry_plug_aggregator_new(Evry_Selector *sel, int type)
 {
    Plugin *p;
-      
+
    p = E_NEW(Plugin, 1);
    EVRY_PLUGIN_NEW(EVRY_PLUGIN(p), N_("All"), type, "", "",
                   NULL, _cleanup, _fetch, _icon_get, NULL);
index 050eedb..efed943 100644 (file)
@@ -8,7 +8,7 @@ static int
 _action(Evry_Action *act)
 {
    const Evry_Item *it = act->item1;
-   
+
    ecore_x_selection_primary_set(clipboard_win, it->label, strlen(it->label));
    ecore_x_selection_clipboard_set(clipboard_win, it->label, strlen(it->label));
 
@@ -47,4 +47,3 @@ evry_plug_clipboard_shutdown(void)
    ecore_x_window_free(clipboard_win);
    evry_action_free(act);
 }
-
index 8a2440b..1577243 100644 (file)
@@ -23,7 +23,7 @@ static int
 _fetch(Evry_Plugin *p, const char *input)
 {
    Evry_Item *it;
-   
+
    EVRY_PLUGIN_ITEMS_FREE(p);
 
    if (input)
@@ -34,14 +34,14 @@ _fetch(Evry_Plugin *p, const char *input)
 
        return 1;
      }
-   
+
    return 0;
 }
 
 Eina_Bool
 evry_plug_text_init(void)
 {
-  p1 = EVRY_PLUGIN_NEW(NULL, N_("Text"), type_subject, NULL, "TEXT", 
+  p1 = EVRY_PLUGIN_NEW(NULL, N_("Text"), type_subject, NULL, "TEXT",
                       NULL, _cleanup, _fetch, NULL, NULL);
 
   p2 = EVRY_PLUGIN_NEW(NULL, N_("Text"), type_object,  NULL, "TEXT",
@@ -51,7 +51,7 @@ evry_plug_text_init(void)
   p2->icon = "accessories-text-editor";
   p1->trigger = ".";
   p2->trigger = ".";
-  
+
   evry_plugin_register(p1, 999);
   evry_plugin_register(p2, 999);
 
@@ -64,5 +64,3 @@ evry_plug_text_shutdown(void)
    EVRY_PLUGIN_FREE(p1);
    EVRY_PLUGIN_FREE(p2);
 }
-
-
index 4e3b204..2402983 100644 (file)
@@ -69,10 +69,10 @@ _view_create(Evry_View *v, const Evry_State *s, const Evas_Object *swallow)
        " an action, then press  <hilight>&lt;return&gt;</hilight>.<br>"
        /* "You might want to know <br>some mo keybinding to ease your experience though.<br>" */
        "    <hilight>&lt;?&gt;</hilight> show this page<br>"
-       "    <hilight>&lt;return&gt;</hilight> run action<br>"       
-       "    <hilight>&lt;ctrl+return&gt;</hilight> run action and continue<br>"       
-       "    <hilight>&lt;tab&gt;</hilight> toggle between selectors<br>"       
-       "    <hilight>&lt;ctrl+tab&gt;</hilight> complete input (depends on plugin)<br>"       
+       "    <hilight>&lt;return&gt;</hilight> run action<br>"
+       "    <hilight>&lt;ctrl+return&gt;</hilight> run action and continue<br>"
+       "    <hilight>&lt;tab&gt;</hilight> toggle between selectors<br>"
+       "    <hilight>&lt;ctrl+tab&gt;</hilight> complete input (depends on plugin)<br>"
        "    <hilight>&lt;ctrl+'x'&gt;</hilight> jump to plugin beginning with 'x'<br>"
        "    <hilight>&lt;ctrl+left/right&gt;</hilight> cycle through plugins<br>"
        "    <hilight>&lt;ctrl+1&gt;</hilight> toggle view modes (exit this page ;)<br>"
@@ -137,4 +137,3 @@ view_help_shutdown(void)
    evry_view_unregister(view);
    E_FREE(view);
 }
-
index 7a34c69..8d1f804 100644 (file)
@@ -52,8 +52,8 @@ struct _Smart_Data
   Ecore_Animator *animator;
 
   int slide_offset;
-  double slide;  
-  double slide_to;  
+  double slide;
+  double slide_to;
 
   int    sliding;
   int    clearing;
@@ -139,7 +139,7 @@ _thumb_idler(void *data)
                  evas_object_show(it->image);
               }
             else it->have_thumb = EINA_TRUE;
-            
+
             /* dirbrowse fetches the mimetype for icon_get */
             if (!it->get_thumb && _check_item(it->item))
               it->get_thumb = EINA_TRUE;
@@ -241,20 +241,20 @@ _e_smart_reconfigure_do(void *data)
    mw = mh = 0;
    EINA_LIST_FOREACH(sd->items, l, it)
      {
-        if (x > (sd->w - ww))
-          {
-             x = 0;
-             y += hh;
-          }
-
-        it->x = x;
-        it->y = y;
-        it->w = ww;
-        it->h = hh;
-
-        if ((x + ww) > mw) mw = x + ww;
-        if ((y + hh) > mh) mh = y + hh;
-        x += ww;
+       if (x > (sd->w - ww))
+         {
+            x = 0;
+            y += hh;
+         }
+
+       it->x = x;
+       it->y = y;
+       it->w = ww;
+       it->h = hh;
+
+       if ((x + ww) > mw) mw = x + ww;
+       if ((y + hh) > mh) mh = y + hh;
+       x += ww;
      }
 
    if (sd->view->mode == VIEW_MODE_LIST ||
@@ -263,36 +263,36 @@ _e_smart_reconfigure_do(void *data)
 
    if ((mw != sd->cw) || (mh != sd->ch))
      {
-        sd->cw = mw;
-        sd->ch = mh;
-
-        if (sd->cx > (sd->cw - sd->w))
-          {
-             sd->cx = sd->cw - sd->w;
-             redo = 1;
-          }
-        if (sd->cy > (sd->ch - sd->h))
-          {
-             sd->cy = sd->ch - sd->h;
-             redo = 1;
-          }
-        if (sd->cx < 0)
-          {
-             sd->cx = 0;
-             redo = 1;
-          }
-        if (sd->cy < 0)
-          {
-             sd->cy = 0;
-             redo = 1;
-          }
-        /* if (redo)
+       sd->cw = mw;
+       sd->ch = mh;
+
+       if (sd->cx > (sd->cw - sd->w))
+         {
+            sd->cx = sd->cw - sd->w;
+            redo = 1;
+         }
+       if (sd->cy > (sd->ch - sd->h))
+         {
+            sd->cy = sd->ch - sd->h;
+            redo = 1;
+         }
+       if (sd->cx < 0)
+         {
+            sd->cx = 0;
+            redo = 1;
+         }
+       if (sd->cy < 0)
+         {
+            sd->cy = 0;
+            redo = 1;
+         }
+       /* if (redo)
         *   {
         *      recursion = 1;
         *      _e_smart_reconfigure_do(obj);
         *      recursion = 0;
         *   } */
-        changed = 1;
+       changed = 1;
      }
 
    if (sd->view->mode == VIEW_MODE_THUMB)
@@ -327,12 +327,12 @@ _e_smart_reconfigure_do(void *data)
 
    EINA_LIST_FOREACH(sd->items, l, it)
      {
-        xx = sd->x - sd->cx + it->x + ox;
-        yy = sd->y - sd->cy + it->y + oy;
+       xx = sd->x - sd->cx + it->x + ox;
+       yy = sd->y - sd->cy + it->y + oy;
 
-        if (E_INTERSECTS(xx, yy, it->w, it->h, 0, sd->y - (it->h*4),
+       if (E_INTERSECTS(xx, yy, it->w, it->h, 0, sd->y - (it->h*4),
                         sd->x + sd->w, sd->y + sd->h + it->h*8))
-          {
+         {
             if (!it->visible)
               {
                  if (!it->frame)
@@ -374,14 +374,14 @@ _e_smart_reconfigure_do(void *data)
                  it->visible = EINA_TRUE;
               }
 
-            /* fixme */ 
+            /* fixme */
             if (!eina_list_data_find(sd->queue, it))
               sd->queue = eina_list_append(sd->queue, it);
 
             evas_object_move(it->frame, xx, yy);
             evas_object_resize(it->frame, it->w, it->h);
-          }
-        else if (it->visible)
+         }
+       else if (it->visible)
          {
             sd->queue = eina_list_remove(sd->queue, it);
             if (it->do_thumb) e_thumb_icon_end(it->thumb);
@@ -451,11 +451,11 @@ _e_smart_del(Evas_Object *obj)
    EINA_LIST_FREE(sd->items, it)
      {
        if (it->do_thumb) e_thumb_icon_end(it->thumb);
-        if (it->thumb) evas_object_del(it->thumb);
-        if (it->frame) evas_object_del(it->frame);
-        if (it->image) evas_object_del(it->image);
+       if (it->thumb) evas_object_del(it->thumb);
+       if (it->frame) evas_object_del(it->frame);
+       if (it->image) evas_object_del(it->image);
        evry_item_free(it->item);
-        free(it);
+       free(it);
      }
    free(sd);
    evas_object_smart_data_set(obj, NULL);
@@ -551,13 +551,13 @@ _pan_max_get(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y)
    Smart_Data *sd = evas_object_smart_data_get(obj);
    if (x)
      {
-        if (sd->w < sd->cw) *x = sd->cw - sd->w;
-        else *x = 0;
+       if (sd->w < sd->cw) *x = sd->cw - sd->w;
+       else *x = 0;
      }
    if (y)
      {
-        if (sd->h < sd->ch) *y = sd->ch - sd->h;
-        else *y = 0;
+       if (sd->h < sd->ch) *y = sd->ch - sd->h;
+       else *y = 0;
      }
 }
 
@@ -627,7 +627,7 @@ _animator(void *data)
    double spd = (25.0/(double)e_config->framerate) / (double) (1 + sd->view->zoom);
    /* if (sd->sliding) spd *= 1.5; */
    if (spd > 0.9) spd = 0.9;
-   
+
    int wait = 0;
 
    if (sd->sel_pos != sd->sel_pos_to)
@@ -661,7 +661,7 @@ _animator(void *data)
    if (sd->sliding)
      {
        sd->slide = (sd->slide * (1.0 - spd)) + (sd->slide_to * spd);
-   
+
        da = sd->slide - sd->slide_to;
        if (da < 0.0) da = -da;
        if (da < 0.02)
@@ -671,7 +671,7 @@ _animator(void *data)
 
             if (sd->clearing)
               {
-                 _view_clear(EVRY_VIEW(sd->view), 0); 
+                 _view_clear(EVRY_VIEW(sd->view), 0);
                  sd->animator = NULL;
                  return 0;
               }
@@ -681,7 +681,7 @@ _animator(void *data)
 
        evas_object_move(sd->view->span, sd->slide, sd->y);
      }
-   
+
    if (wait) return 1;
 
    sd->animator = NULL;
@@ -802,7 +802,7 @@ _pan_item_select(Evas_Object *obj, Item *it, int scroll)
             sd->sel_pos = align_to * it->h;
             sd->sel_pos_to = sd->sel_pos;
          }
-       
+
        if (align >= 0)
          {
             sd->scroll_align = align;
@@ -875,7 +875,7 @@ _view_clear(Evry_View *view, int slide)
        if (slide)
          {
             if (sd->items && !sd->animator)
-              sd->animator = ecore_animator_add(_animator, v->span); 
+              sd->animator = ecore_animator_add(_animator, v->span);
             sd->sliding = 1;
             sd->slide = sd->x;
             sd->slide_to = sd->x + sd->w * -slide;
@@ -885,11 +885,11 @@ _view_clear(Evry_View *view, int slide)
          }
 
        if (sd->animator)
-         ecore_animator_del(sd->animator); 
+         ecore_animator_del(sd->animator);
      }
 
    sd->clearing = EINA_FALSE;
-   
+
    _clear_items(v->span);
 
    EINA_LIST_FREE(sd->items, it)
@@ -953,7 +953,7 @@ _view_update(Evry_View *view, int slide)
    int pos, last_pos, last_vis = 0, first_vis = 0;
    Eina_Bool update = EINA_FALSE;
    Evry_Plugin *p = v->state->plugin;
-   
+
    sd->cur_item = NULL;
 
    if (!p)
@@ -963,12 +963,12 @@ _view_update(Evry_View *view, int slide)
      }
 
    if (p != v->plugin)
-     { 
+     {
        if (p->config->view_mode >= 0)
          {
             if (p->config->view_mode != v->mode)
               _clear_items(v->span);
-            
+
             v->mode = p->config->view_mode;
          }
        else
@@ -979,7 +979,7 @@ _view_update(Evry_View *view, int slide)
             v->mode = v->mode_prev;
          }
      }
-   
+
    /* go through current view items */
    EINA_LIST_FOREACH(sd->items, l, v_it)
      {
@@ -1072,7 +1072,7 @@ _view_update(Evry_View *view, int slide)
 
    sd->items = eina_list_sort(sd->items, eina_list_count(sd->items), _sort_cb);
    if (!sd->cur_item && sd->items) sd->cur_item = sd->items->data;
-   
+
    if (update || !last_vis || v->plugin != p)
      {
        v->plugin = p;
@@ -1091,7 +1091,7 @@ _view_update(Evry_View *view, int slide)
        if (slide)
          {
             if (sd->items && !sd->animator)
-              sd->animator = ecore_animator_add(_animator, v->span); 
+              sd->animator = ecore_animator_add(_animator, v->span);
             sd->sliding = 1;
             sd->slide_to = sd->x;
             sd->slide = sd->x + sd->w * -slide;
@@ -1099,10 +1099,10 @@ _view_update(Evry_View *view, int slide)
        else if (sd->sliding)
          {
             if (!sd->animator)
-              sd->animator = ecore_animator_add(_animator, v->span); 
+              sd->animator = ecore_animator_add(_animator, v->span);
          }
      }
-   
+
    return 0;
 }
 
@@ -1115,7 +1115,7 @@ _cb_key_down(Evry_View *view, const Ecore_Event_Key *ev)
    Item *it = NULL;
    const Evry_State *s = v->state;
    int slide;
-   
+
    if (!s->plugin)
      return 0;
 
@@ -1155,7 +1155,7 @@ _cb_key_down(Evry_View *view, const Ecore_Event_Key *ev)
             goto end;
          }
      }
-   
+
    if ((slide = v->tabs->key_down(v->tabs, ev)))
      {
        /* _view_update(view, -slide); */
@@ -1188,7 +1188,7 @@ _cb_key_down(Evry_View *view, const Ecore_Event_Key *ev)
      l = eina_list_data_find_list(sd->items, sd->cur_item);
    if (!l)
      l = sd->items;
-     
+
    if (v->mode == VIEW_MODE_THUMB && !evry_conf->cycle_mode)
      {
        if (!strcmp(ev->key, "Right"))
@@ -1343,12 +1343,12 @@ _view_create(Evry_View *view, const Evry_State *s, const Evas_Object *swallow)
      v->mode = parent->mode;
 
    v->mode_prev = v->mode;
-   
+
    v->zoom = parent->zoom;
 
    v->bg = edje_object_add(v->evas);
    e_theme_edje_object_set(v->bg, "base/theme/widgets",
-                           "e/modules/everything/thumbview/main/window");
+                          "e/modules/everything/thumbview/main/window");
    // scrolled thumbs
    v->span = _pan_add(v->evas);
    _pan_view_set(v->span, v);
@@ -1356,15 +1356,15 @@ _view_create(Evry_View *view, const Evry_State *s, const Evas_Object *swallow)
    // the scrollframe holding the scrolled thumbs
    v->sframe = e_scrollframe_add(v->evas);
    e_scrollframe_custom_theme_set(v->sframe, "base/theme/widgets",
-                                  "e/modules/everything/thumbview/main/scrollframe");
+                                 "e/modules/everything/thumbview/main/scrollframe");
    e_scrollframe_extern_pan_set(v->sframe, v->span,
-                                _pan_set, _pan_get, _pan_max_get,
-                                _pan_child_size_get);
+                               _pan_set, _pan_get, _pan_max_get,
+                               _pan_child_size_get);
    edje_object_part_swallow(v->bg, "e.swallow.list", v->sframe);
-   
+
    evas_object_show(v->sframe);
    evas_object_show(v->span);
-   
+
    v->tabs = evry_tab_view_new(s, v->evas);
 
    EVRY_VIEW(v)->o_list = v->bg;
@@ -1428,4 +1428,3 @@ view_thumb_shutdown(void)
    evry_view_unregister(EVRY_VIEW(view));
    E_FREE(view);
 }
-
index 5240a53..2105fc5 100644 (file)
@@ -14,28 +14,28 @@ evry_util_file_detail_set(Evry_Item_File *file)
 
    if (EVRY_ITEM(file)->detail)
      return;
-   
+
    if (!home_dir)
      {
        home_dir = e_user_homedir_get();
        home_dir_len = strlen(home_dir);
      }
-   
+
    path = ecore_file_dir_get(file->path);
-         
+
    if (path && !strncmp(path, home_dir, home_dir_len))
      {
        if (*(path + home_dir_len) == '\0')
          snprintf(dir_buf, sizeof(dir_buf), "~%s", path + home_dir_len);
        else
          snprintf(dir_buf, sizeof(dir_buf), "~%s/", path + home_dir_len);
-       
+
        EVRY_ITEM(file)->detail = eina_stringshare_add(dir_buf);
      }
    else
      {
        if (!strncmp(path, "//", 2)) path++;
-       
+
        EVRY_ITEM(file)->detail = eina_stringshare_add(path);
      }
 }
@@ -204,7 +204,7 @@ evry_fuzzy_match(const char *str, const char *match)
        if (strlen(str) != m_len)
          sum += 10;
      }
-   
+
    return sum;
 }
 
@@ -237,7 +237,7 @@ evry_fuzzy_match_sort(Eina_List *items)
 {
    return eina_list_sort(items, eina_list_count(items), _evry_fuzzy_match_sort_cb);
 }
+
 
 /* taken from e_utils. just changed 48 to 72.. we need
    evry_icon_theme_set(Evas_Object *obj, const char *icon,
@@ -302,7 +302,7 @@ static Evas_Object *
 _evry_icon_mime_theme_get(const char *mime, Evas *e)
 {
    Evas_Object *o = NULL;
-   
+
    char buf[1024];
    const char *file;
 
@@ -335,7 +335,7 @@ evry_icon_mime_get(const char *mime, Evas *e)
      o = _evry_icon_mime_theme_get(mime, e);
 
    if (o) return o;
-   
+
    icon = efreet_mime_type_icon_get(mime, e_config->icon_theme, 128);
    if (icon)
      {
@@ -343,7 +343,7 @@ evry_icon_mime_get(const char *mime, Evas *e)
        free(icon);
      }
    if (o) return o;
-   
+
    return _evry_icon_mime_theme_get(mime, e);
 }
 
@@ -356,7 +356,7 @@ evry_util_exec_app(const Evry_Item *it_app, const Evry_Item *it_file)
 
    if (!it_app) return 0;
    ITEM_APP(app, it_app);
-   
+
    zone = e_util_zone_current_get(e_manager_current_get());
 
    if (app->desktop)
@@ -421,9 +421,9 @@ evry_util_exec_app(const Evry_Item *it_app, const Evry_Item *it_file)
             ITEM_FILE(file, it_file);
 
             /* files = eina_list_append(files, file->path);
-             * 
+             *
              * e_exec(zone, NULL, app->file, files, NULL);
-             * 
+             *
              * if (files)
              *   eina_list_free(files); */
 
@@ -454,11 +454,11 @@ _conf_timer(void *data)
   e_util_dialog_internal(_("Configuration Updated"), data);
   return 0;
 }
-  
+
 EAPI Eina_Bool
 evry_util_module_config_check(const char *module_name, int conf, int epoch, int version)
 {
-  if ((conf >> 16) < epoch) 
+  if ((conf >> 16) < epoch)
     {
       char *too_old =
        _("%s Configuration data needed "
@@ -479,7 +479,7 @@ evry_util_module_config_check(const char *module_name, int conf, int epoch, int
       ecore_timer_add(1.0, _conf_timer, buf);
       return EINA_FALSE;
     }
-  else if (conf > version) 
+  else if (conf > version)
     {
       char *too_new =
        _("Your %s Module configuration is NEWER "
@@ -603,15 +603,15 @@ evry_util_url_escape(const char *string, int inlength)
       /* encode it */
       newlen += 2; /* the size grows with two, since this'll become a %XX */
       if(newlen > alloc) {
-        alloc *= 2;
-        testing_ptr = realloc(ns, alloc);
-        if(!testing_ptr) {
-          free( ns );
-          return NULL;
-        }
-        else {
-          ns = testing_ptr;
-        }
+       alloc *= 2;
+       testing_ptr = realloc(ns, alloc);
+       if(!testing_ptr) {
+         free( ns );
+         return NULL;
+       }
+       else {
+         ns = testing_ptr;
+       }
       }
 
       snprintf(&ns[strindex], 4, "%%%02X", in);
@@ -623,5 +623,3 @@ evry_util_url_escape(const char *string, int inlength)
   ns[strindex]=0; /* terminate it */
   return ns;
 }
-
-
index 36a6375..ce73abc 100644 (file)
@@ -18,7 +18,7 @@ static int
 _animator(void *data)
 {
    Tab_View *v = data;
-   
+
    double da;
    double spd = (5.0 / (double)e_config->framerate);
    if (spd > 0.9) spd = 0.9;
@@ -60,7 +60,7 @@ _tab_scroll_to(Tab_View *v, Evry_Plugin *p, int animate)
 
    e_box_size_min_get(v->o_tabs, &mw, NULL);
    evas_object_geometry_get(v->o_tabs, NULL, NULL, &w, NULL);
-   
+
    if (mw < w)
      {
        e_box_align_set(v->o_tabs, 0.0, 0.5);
@@ -88,12 +88,12 @@ static int
 _timer_cb(void *data)
 {
    Tab_View *v = data;
-   
+
    _tabs_update(v);
 
    v->timer = NULL;
    return 0;
-   
+
 }
 
 static void
@@ -107,15 +107,15 @@ _tabs_update(Tab_View *v)
    Evas_Coord w, x;
    Evas_Object *o;
 
-   edje_object_calc_force(v->o_tabs); 
+   edje_object_calc_force(v->o_tabs);
    evas_object_geometry_get(v->o_tabs, &x, NULL, &w, NULL);
 
    if (!w && !v->timer)
      {
-       v->timer = ecore_timer_add(0.1, _timer_cb, v); 
+       v->timer = ecore_timer_add(0.1, _timer_cb, v);
        return;
      }
-   
+
    /* remove tabs for not active plugins */
    e_box_freeze(v->o_tabs);
 
@@ -171,7 +171,7 @@ _tabs_update(Tab_View *v)
    /* if (eina_list_count(s->cur_plugins) == 2)
     *   {
     *  v->align = 0;
-    *  e_box_align_set(v->o_tabs, 0.0, 0.5);       
+    *  e_box_align_set(v->o_tabs, 0.0, 0.5);
     *   } */
    /* else */
    if (s->plugin)
@@ -287,7 +287,7 @@ _tabs_key_down(Tab_View *v, const Ecore_Event_Key *ev)
    const char *key = ev->key;
 
    if (!v->state || !v->state->cur_plugins) return 0;
-   
+
    if (!strcmp(key, "Next"))
      {
        _plugin_next(v);
@@ -310,7 +310,7 @@ _tabs_key_down(Tab_View *v, const Ecore_Event_Key *ev)
             _plugin_next(v);
             return 1;
          }
-       
+
      }
    else if (ev->modifiers & ECORE_EVENT_MODIFIER_CTRL)
      {
@@ -346,7 +346,7 @@ evry_tab_view_new(const Evry_State *s, Evas *e)
    v->clear    = &_tabs_clear;
    v->key_down = &_tabs_key_down;
    v->state = s;
-   
+
    v->evas = e;
    o = e_box_add(e);
    e_box_orientation_set(o, 1);
@@ -360,7 +360,7 @@ EAPI void
 evry_tab_view_free(Tab_View *v)
 {
    Tab *tab;
-   
+
    EINA_LIST_FREE(v->tabs, tab)
      {
        e_box_unpack(tab->o_tab);
@@ -368,13 +368,13 @@ evry_tab_view_free(Tab_View *v)
        E_FREE(tab);
      }
 
-   evas_object_del(v->o_tabs);   
+   evas_object_del(v->o_tabs);
 
    if (v->animator)
      ecore_animator_del(v->animator);
 
    if (v->timer)
      ecore_timer_del(v->timer);
-   
+
    E_FREE(v);
 }