From: Enlightenment S. <no-...@en...> - 2010-04-18 06:26:58
|
Log: 'everything' fix bug Author: jeffdameth Date: 2010-04-17 23:26:50 -0700 (Sat, 17 Apr 2010) New Revision: 48097 Modified: trunk/e/src/modules/everything/e_mod_main.c trunk/e/src/modules/everything/evry_view_plugin_tabs.c Modified: trunk/e/src/modules/everything/e_mod_main.c =================================================================== --- trunk/e/src/modules/everything/e_mod_main.c 2010-04-18 04:41:08 UTC (rev 48096) +++ trunk/e/src/modules/everything/e_mod_main.c 2010-04-18 06:26:50 UTC (rev 48097) @@ -368,6 +368,9 @@ { const Evry_Plugin *p1 = data1; const Evry_Plugin *p2 = data2; + if (!p1->config) return -1; + if (!p2->config) return 1; + return p1->config->priority - p2->config->priority; } Modified: trunk/e/src/modules/everything/evry_view_plugin_tabs.c =================================================================== --- trunk/e/src/modules/everything/evry_view_plugin_tabs.c 2010-04-18 04:41:08 UTC (rev 48096) +++ trunk/e/src/modules/everything/evry_view_plugin_tabs.c 2010-04-18 06:26:50 UTC (rev 48097) @@ -84,10 +84,6 @@ e_box_align_set(v->o_tabs, 0.0, 0.5); } -static Ecore_Timer *timer = NULL; - - - static int _timer_cb(void *data) { @@ -114,9 +110,13 @@ edje_object_calc_force(v->o_tabs); evas_object_geometry_get(v->o_tabs, &x, NULL, &w, NULL); - if (!w && !timer) - timer = ecore_timer_add(0.1, _timer_cb, v); - + if (!w && !v->timer) + { + v->timer = ecore_timer_add(0.1, _timer_cb, v); + return; + } + printf("width %d\n", w); + /* remove tabs for not active plugins */ e_box_freeze(v->o_tabs); @@ -169,12 +169,13 @@ edje_object_signal_emit(o, "e,state,unselected", "e"); } - if (eina_list_count(s->cur_plugins) == 2) - { - v->align = 0; - e_box_align_set(v->o_tabs, 0.0, 0.5); - } - else if (s->plugin) + /* if (eina_list_count(s->cur_plugins) == 2) + * { + * v->align = 0; + * e_box_align_set(v->o_tabs, 0.0, 0.5); + * } */ + /* else */ + if (s->plugin) _tab_scroll_to(v, s->plugin, 0); e_box_thaw(v->o_tabs); |