EVRY_PLUGIN_NEW(EVRY_PLUGIN(p1), N_("Applications"), type_subject, "", "APPLICATION",
_begin, _cleanup, _fetch, _icon_get, NULL);
EVRY_PLUGIN(p1)->complete = &_complete;
+ EVRY_PLUGIN(p1)->config_path = "extensions/everything-apps";
p2 = E_NEW(Plugin, 1);
EVRY_PLUGIN_NEW(EVRY_PLUGIN(p2), N_("Open With..."), type_action, "FILE", "",
_icon_get, NULL);
EVRY_PLUGIN(p2)->action = &_open_with_action;
-
+ EVRY_PLUGIN(p2)->config_path = "extensions/everything-apps";
+
evry_plugin_register(EVRY_PLUGIN(p1), 1);
evry_plugin_register(EVRY_PLUGIN(p2), 1);
p1 = EVRY_PLUGIN_NEW(NULL, N_("Files"), type_subject, "FILE", "FILE",
_begin, _cleanup, _fetch, _icon_get, NULL);
-
+ EVRY_PLUGIN(p1)->config_path = "extensions/everything-files";
+ evry_plugin_register(p1, 3);
+
p2 = EVRY_PLUGIN_NEW(NULL, N_("Files"), type_object, "FILE", "FILE",
_begin, _cleanup, _fetch, _icon_get, NULL);
-
- evry_plugin_register(p1, 3);
+ EVRY_PLUGIN(p2)->config_path = "extensions/everything-files";
evry_plugin_register(p2, 1);
act1 = EVRY_ACTION_NEW(N_("Open Folder (EFM)"), "FILE", NULL, "folder-open",
Evas_Object *o_view_detail;
Evas_Object *o_view_thumb;
Evas_Object *o_enabled;
+ Evas_Object *o_cfg_btn;
Eina_List *configs;
e_widget_check_checked_set(page->o_enabled, pc->enabled);
e_widget_disabled_set(page->o_enabled, 0);
+
+ if (pc->plugin && pc->plugin->config_path)
+ {
+ e_widget_disabled_set(page->o_cfg_btn, 0);
+ }
+ else
+ {
+ e_widget_disabled_set(page->o_cfg_btn, 1);
+ }
page->cur = pc;
}
e_widget_disabled_set(page->o_view_list, 1);
e_widget_disabled_set(page->o_view_thumb, 1);
e_widget_disabled_set(page->o_enabled, 1);
+ e_widget_disabled_set(page->o_cfg_btn, 1);
page->cur = NULL;
}
static void
_plugin_config_cb(void *data, void *data2)
{
+ Plugin_Page *page = data;
+ if (!page->cur->plugin)
+ return;
+
+ e_configure_registry_call(page->cur->plugin->config_path,
+ e_container_current_get(e_manager_current_get()),
+ NULL);
}
static Evas_Object *
ob = e_widget_table_add(e, 1);
e_widget_table_object_append(ob, of, 0, 0, 1, 3, 1, 1, 1, 1);
-
+ e_widget_disabled_set(o, 1);
of = e_widget_framelist_add(e, _("General"), 0);
o = e_widget_button_add(e, _("Configure"), NULL,
_plugin_config_cb,
- page->list, page->configs);
+ page, NULL);
+ e_widget_disabled_set(o, 1);
+ page->o_cfg_btn = o;
e_widget_framelist_object_append(of, o);
o = e_widget_check_add(e, _("Enabled"),
&(page->enabled));