forked from enlightenment/enlightenment
remove wp2 module
this will be in a separate repository at enlightenment/modules/wallpaper2
This commit is contained in:
parent
283206426c
commit
a19d83d125
2
TODO
2
TODO
|
@ -10,8 +10,6 @@
|
|||
- T1330
|
||||
- T1340
|
||||
|
||||
* split wp2 module to separate repo
|
||||
|
||||
* SAFELY, without rushing, merge+test wl branch
|
||||
- possibly also D817
|
||||
|
||||
|
|
|
@ -56,6 +56,3 @@ src/modules/layout/module.desktop.in
|
|||
src/modules/msgbus_lang/module.desktop.in
|
||||
src/modules/pager/module.desktop.in
|
||||
src/modules/start/module.desktop.in
|
||||
src/modules/conf_wallpaper2/e_int_config_wallpaper.c
|
||||
src/modules/conf_wallpaper2/e_mod_main.c
|
||||
src/modules/conf_wallpaper2/module.desktop.in
|
||||
|
|
|
@ -891,7 +891,6 @@ _e_module_whitelist_check(void)
|
|||
"conf_randr",
|
||||
"conf_shelves",
|
||||
"conf_theme",
|
||||
"conf_wallpaper2",
|
||||
"conf_window_manipulation",
|
||||
"conf_window_remembers",
|
||||
"connman",
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
EXTRA_DIST += src/modules/conf_wallpaper2/module.desktop.in
|
||||
if USE_MODULE_CONF_WALLPAPER2
|
||||
conf_wallpaper2dir = $(MDIR)/conf_wallpaper2
|
||||
conf_wallpaper2_DATA = src/modules/conf_wallpaper2/module.desktop
|
||||
|
||||
|
||||
conf_wallpaper2pkgdir = $(MDIR)/conf_wallpaper2/$(MODULE_ARCH)
|
||||
conf_wallpaper2pkg_LTLIBRARIES = src/modules/conf_wallpaper2/module.la
|
||||
|
||||
src_modules_conf_wallpaper2_module_la_LIBADD = $(MOD_LIBS)
|
||||
src_modules_conf_wallpaper2_module_la_CPPFLAGS = $(MOD_CPPFLAGS)
|
||||
src_modules_conf_wallpaper2_module_la_LDFLAGS = $(MOD_LDFLAGS)
|
||||
src_modules_conf_wallpaper2_module_la_SOURCES = src/modules/conf_wallpaper2/e_mod_main.c \
|
||||
src/modules/conf_wallpaper2/e_mod_main.h \
|
||||
src/modules/conf_wallpaper2/e_int_config_wallpaper.c
|
||||
|
||||
PHONIES += conf_wallpaper2 install-conf_wallpaper2
|
||||
conf_wallpaper2: $(conf_wallpaper2pkg_LTLIBRARIES) $(conf_wallpaper2_DATA)
|
||||
install-conf_wallpaper2: install-conf_wallpaper2DATA install-conf_wallpaper2pkgLTLIBRARIES
|
||||
endif
|
File diff suppressed because it is too large
Load Diff
|
@ -1,94 +0,0 @@
|
|||
#include "e.h"
|
||||
#include "e_mod_main.h"
|
||||
|
||||
/* actual module specifics */
|
||||
static void _e_mod_run_cb(void *data, E_Menu *m, E_Menu_Item *mi);
|
||||
static void _e_mod_menu_add(void *data, E_Menu *m);
|
||||
|
||||
static E_Module *conf_module = NULL;
|
||||
static E_Int_Menu_Augmentation *maug = NULL;
|
||||
//static E_Fm2_Mime_Handler *import_hdl = NULL;
|
||||
|
||||
/* module setup */
|
||||
EAPI E_Module_Api e_modapi =
|
||||
{
|
||||
E_MODULE_API_VERSION,
|
||||
"Settings - Wallpaper 2"
|
||||
};
|
||||
|
||||
EAPI void *
|
||||
e_modapi_init(E_Module *m)
|
||||
{
|
||||
e_configure_registry_category_add("appearance", 10, _("Look"), NULL, "preferences-look");
|
||||
e_configure_registry_item_add("appearance/wallpaper2", 10, _("Wallpaper 2"), NULL, "preferences-desktop-wallpaper", wp_conf_show);
|
||||
e_configure_registry_category_add("internal", -1, _("Internal"), NULL, "enlightenment/internal");
|
||||
// e_configure_registry_item_add("internal/wallpaper_desk", -1, _("Wallpaper 2"), NULL, "preferences-system-windows", e_int_config_wallpaper_desk);
|
||||
maug = e_int_menus_menu_augmentation_add_sorted
|
||||
("config/1", _("Wallpaper 2"), _e_mod_menu_add, NULL, NULL, NULL);
|
||||
|
||||
// import_hdl = e_fm2_mime_handler_new(_("Set As Background 2"), "preferences-desktop-wallpaper",
|
||||
// e_int_config_wallpaper_handler_set, NULL,
|
||||
// e_int_config_wallpaper_handler_test, NULL);
|
||||
// if (import_hdl)
|
||||
// {
|
||||
// e_fm2_mime_handler_mime_add(import_hdl, "image/png");
|
||||
// e_fm2_mime_handler_mime_add(import_hdl, "image/jpeg");
|
||||
// }
|
||||
|
||||
conf_module = m;
|
||||
e_module_delayed_set(m, 1);
|
||||
return m;
|
||||
}
|
||||
|
||||
EAPI int
|
||||
e_modapi_shutdown(E_Module *m __UNUSED__)
|
||||
{
|
||||
// E_Config_Dialog *cfd;
|
||||
/* remove module-supplied menu additions */
|
||||
if (maug)
|
||||
{
|
||||
e_int_menus_menu_augmentation_del("config/1", maug);
|
||||
maug = NULL;
|
||||
}
|
||||
// while ((cfd = e_config_dialog_get("E", "appearance/wallpaper2")))
|
||||
// e_object_del(E_OBJECT(cfd));
|
||||
// e_configure_registry_item_del("internal/wallpaper_desk");
|
||||
e_configure_registry_category_del("internal");
|
||||
e_configure_registry_item_del("appearance/wallpaper2");
|
||||
e_configure_registry_category_del("appearance");
|
||||
|
||||
// if (import_hdl)
|
||||
// {
|
||||
// e_fm2_mime_handler_mime_del(import_hdl, "image/png");
|
||||
// e_fm2_mime_handler_mime_del(import_hdl, "image/jpeg");
|
||||
// e_fm2_mime_handler_free(import_hdl);
|
||||
// }
|
||||
|
||||
conf_module = NULL;
|
||||
return 1;
|
||||
}
|
||||
|
||||
EAPI int
|
||||
e_modapi_save(E_Module *m __UNUSED__)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* menu item callback(s) */
|
||||
static void
|
||||
_e_mod_run_cb(void *data __UNUSED__, E_Menu *m, E_Menu_Item *mi __UNUSED__)
|
||||
{
|
||||
e_configure_registry_call("appearance/wallpaper2", m->zone->comp, NULL);
|
||||
}
|
||||
|
||||
/* menu item add hook */
|
||||
static void
|
||||
_e_mod_menu_add(void *data __UNUSED__, E_Menu *m)
|
||||
{
|
||||
E_Menu_Item *mi;
|
||||
|
||||
mi = e_menu_item_new(m);
|
||||
e_menu_item_label_set(mi, _("Wallpaper 2"));
|
||||
e_util_menu_item_theme_icon_set(mi, "preferences-desktop-wallpaper");
|
||||
e_menu_item_callback_set(mi, _e_mod_run_cb, NULL);
|
||||
}
|
|
@ -1,21 +0,0 @@
|
|||
#ifndef E_MOD_MAIN_H
|
||||
#define E_MOD_MAIN_H
|
||||
|
||||
E_Config_Dialog *wp_conf_show(E_Comp *comp, const char *params);
|
||||
void wp_conf_hide(void);
|
||||
|
||||
/**
|
||||
* @addtogroup Optional_Conf
|
||||
* @{
|
||||
*
|
||||
* @defgroup Module_Conf_Wallpaper2 Wallpaper2 (Alternative Selector)
|
||||
*
|
||||
* More graphically appealing wallpaper selector. It is targeted at
|
||||
* mobile devices.
|
||||
*
|
||||
* @note under development and not recommended for use yet.
|
||||
*
|
||||
* @see Module_Conf_Theme
|
||||
* @}
|
||||
*/
|
||||
#endif
|
|
@ -1,33 +0,0 @@
|
|||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Type=Link
|
||||
Name=Wallpaper 2
|
||||
Name[ca]=Fons d'escriptori
|
||||
Name[cs]=Pozadí plochy
|
||||
Name[eo]=Tapeto
|
||||
Name[es]=Fondo de pantalla
|
||||
Name[fr]=Fond d'écran 2
|
||||
Name[gl]=Fondo de escritorio 2
|
||||
Name[hu]=Háttérkép
|
||||
Name[it]=Sfondo 2
|
||||
Name[ms]=Kertas Dinding 2
|
||||
Name[pt]=Papel de parede 2
|
||||
Name[ru]=Обои 2
|
||||
Name[sr]=Позадина површи 2
|
||||
Name[tr]=Duvarkağıdı 2
|
||||
Comment=Used to pick a wallpaper.
|
||||
Comment[ca]=Permet seleccionar el fons d'escriptori.
|
||||
Comment[cs]=Použit k volbě pozadí.
|
||||
Comment[eo]=Elekti tapeton.
|
||||
Comment[es]=Para elegir un fondo de pantalla.
|
||||
Comment[fr]=Sélection du fond d'écran.
|
||||
Comment[gl]=Usado para escoller un fondo de pantalla.
|
||||
Comment[hu]=Háttérkép beállító modul.
|
||||
Comment[it]=Usato per selezionare uno sfondo.
|
||||
Comment[ms]=Digunakan untuk mendapatkan kertas dinding.
|
||||
Comment[pt]=Permite-lhe escolher o papel de parede
|
||||
Comment[ru]=Используется для выбора обоев.
|
||||
Comment[sr]=Користи се за одабир слике радне површи.
|
||||
Comment[tr]=Duvarkağıdı seçiminde kullanılır.
|
||||
Icon=preferences-desktop-wallpaper
|
||||
X-Enlightenment-ModuleType=settings
|
Loading…
Reference in New Issue