{
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;
}
e_box_align_set(v->o_tabs, 0.0, 0.5);
}
-static Ecore_Timer *timer = NULL;
-
-
-
static int
_timer_cb(void *data)
{
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);
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);