more merging of modules that are needlessly split
authorCarsten Haitzler <raster@rasterman.com>
Sat, 30 Apr 2011 13:35:25 +0000 (13:35 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Sat, 30 Apr 2011 13:35:25 +0000 (13:35 +0000)
SVN revision: 59053

18 files changed:
config/minimalist/e.src
config/netbook/e.src
config/scaleable/e.src
config/standard/e.src
configure.ac
po/POTFILES.in
src/modules/Makefile.am
src/modules/conf_winlist/.cvsignore [deleted file]
src/modules/conf_winlist/Makefile.am [deleted file]
src/modules/conf_winlist/e-module-conf_winlist.edj [deleted file]
src/modules/conf_winlist/e_mod_main.c [deleted file]
src/modules/conf_winlist/e_mod_main.h [deleted file]
src/modules/conf_winlist/module.desktop.in [deleted file]
src/modules/winlist/Makefile.am
src/modules/winlist/e_int_config_winlist.c [moved from src/modules/conf_winlist/e_int_config_winlist.c with 99% similarity]
src/modules/winlist/e_int_config_winlist.h [moved from src/modules/conf_winlist/e_int_config_winlist.h with 100% similarity]
src/modules/winlist/e_mod_main.c
src/modules/winlist/e_mod_main.h

index d9deaf0..7d3c020 100644 (file)
@@ -259,14 +259,6 @@ group "E_Config" struct {
   }
   group "modules" list {
     group "E_Config_Module" struct {
-      value "name" string: "conf_winlist";
-      value "enabled" uchar: 1;
-      value "delayed" uchar: 1;
-      value "priority" int: 0;
-    }
-  }
-  group "modules" list {
-    group "E_Config_Module" struct {
       value "name" string: "conf_engine";
       value "enabled" uchar: 1;
       value "delayed" uchar: 1;
index 807c811..e7c3105 100644 (file)
@@ -291,14 +291,6 @@ group "E_Config" struct {
   }
   group "modules" list {
     group "E_Config_Module" struct {
-      value "name" string: "conf_winlist";
-      value "enabled" uchar: 1;
-      value "delayed" uchar: 1;
-      value "priority" int: 0;
-    }
-  }
-  group "modules" list {
-    group "E_Config_Module" struct {
       value "name" string: "conf_engine";
       value "enabled" uchar: 1;
       value "delayed" uchar: 1;
index 7e124fd..368c8d6 100644 (file)
@@ -82,14 +82,6 @@ group "E_Config" struct {
   }
   group "modules" list {
     group "E_Config_Module" struct {
-      value "name" string: "conf_winlist";
-      value "enabled" uchar: 1;
-      value "delayed" uchar: 1;
-      value "priority" int: 0;
-    }
-  }
-  group "modules" list {
-    group "E_Config_Module" struct {
       value "name" string: "conf_window_manipulation";
       value "enabled" uchar: 1;
       value "delayed" uchar: 1;
index 57b63f2..889227f 100644 (file)
@@ -82,14 +82,6 @@ group "E_Config" struct {
   }
   group "modules" list {
     group "E_Config_Module" struct {
-      value "name" string: "conf_winlist";
-      value "enabled" uchar: 1;
-      value "delayed" uchar: 1;
-      value "priority" int: 0;
-    }
-  }
-  group "modules" list {
-    group "E_Config_Module" struct {
       value "name" string: "conf_window_manipulation";
       value "enabled" uchar: 1;
       value "delayed" uchar: 1;
index 9b0b7c2..6d1da69 100644 (file)
@@ -701,7 +701,6 @@ AC_E_OPTIONAL_MODULE([conf_window_manipulation], true)
 AC_E_OPTIONAL_MODULE([conf_menus], true)
 AC_E_OPTIONAL_MODULE([conf_dialogs], true)
 AC_E_OPTIONAL_MODULE([conf_performance], true)
-AC_E_OPTIONAL_MODULE([conf_winlist], true)
 AC_E_OPTIONAL_MODULE([conf_paths], true)
 AC_E_OPTIONAL_MODULE([conf_mime], true)
 AC_E_OPTIONAL_MODULE([conf_interaction], true)
@@ -832,8 +831,6 @@ src/modules/conf_dialogs/Makefile
 src/modules/conf_dialogs/module.desktop
 src/modules/conf_performance/Makefile
 src/modules/conf_performance/module.desktop
-src/modules/conf_winlist/Makefile
-src/modules/conf_winlist/module.desktop
 src/modules/conf_paths/Makefile
 src/modules/conf_paths/module.desktop
 src/modules/conf_mime/Makefile
index c65bf69..31cc9b6 100644 (file)
@@ -204,8 +204,6 @@ src/modules/conf_window_manipulation/e_int_config_window_stacking.c
 src/modules/conf_window_manipulation/e_mod_main.c
 src/modules/conf_window_remembers/e_int_config_remembers.c
 src/modules/conf_window_remembers/e_mod_main.c
-src/modules/conf_winlist/e_int_config_winlist.c
-src/modules/conf_winlist/e_mod_main.c
 src/modules/cpufreq/e_mod_main.c
 src/modules/cpufreq/freqset.c
 src/modules/dropshadow/e_mod_config.c
@@ -230,6 +228,7 @@ src/modules/fileman_opinfo/e_mod_main.c
 src/modules/gadman/e_mod_config.c
 src/modules/gadman/e_mod_gadman.c
 src/modules/gadman/e_mod_main.c
+src/modules/winlist/e_int_config_winlist.c
 src/modules/winlist/e_mod_main.c
 src/modules/winlist/e_winlist.c
 src/modules/ibar/e_mod_config.c
index 9f977af..1d2cdb8 100644 (file)
@@ -158,10 +158,6 @@ if USE_MODULE_CONF_PERFORMANCE
 SUBDIRS += conf_performance
 endif
 
-if USE_MODULE_CONF_WINLIST
-SUBDIRS += conf_winlist
-endif
-
 if USE_MODULE_CONF_PATHS
 SUBDIRS += conf_paths
 endif
diff --git a/src/modules/conf_winlist/.cvsignore b/src/modules/conf_winlist/.cvsignore
deleted file mode 100644 (file)
index 06d064a..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-.deps
-.libs
-Makefile
-Makefile.in
-*.lo
-module.la
-module.desktop
diff --git a/src/modules/conf_winlist/Makefile.am b/src/modules/conf_winlist/Makefile.am
deleted file mode 100644 (file)
index 3811a22..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-MAINTAINERCLEANFILES = Makefile.in
-MODULE = conf_winlist
-
-# data files for the module
-filesdir = $(libdir)/enlightenment/modules/$(MODULE)
-files_DATA = \
-e-module-$(MODULE).edj module.desktop
-
-EXTRA_DIST = $(files_DATA)
-
-# the module .so file
-INCLUDES               = -I. \
-                         -I$(top_srcdir) \
-                         -I$(top_srcdir)/src/modules/$(MODULE) \
-                         -I$(top_srcdir)/src/bin \
-                         -I$(top_builddir)/src/bin \
-                         -I$(top_srcdir)/src/modules \
-                         @e_cflags@
-pkgdir                 = $(libdir)/enlightenment/modules/$(MODULE)/$(MODULE_ARCH)
-pkg_LTLIBRARIES        = module.la
-module_la_SOURCES      = e_mod_main.c \
-                         e_mod_main.h \
-                        e_int_config_winlist.c \
-                         e_int_config_winlist.h
-
-module_la_LIBADD       = @e_libs@ @dlopen_libs@
-module_la_LDFLAGS      = -module -avoid-version
-module_la_DEPENDENCIES = $(top_builddir)/config.h
-
-uninstall:
-       rm -rf $(DESTDIR)$(libdir)/enlightenment/modules/$(MODULE)
diff --git a/src/modules/conf_winlist/e-module-conf_winlist.edj b/src/modules/conf_winlist/e-module-conf_winlist.edj
deleted file mode 100644 (file)
index 25fba8a..0000000
Binary files a/src/modules/conf_winlist/e-module-conf_winlist.edj and /dev/null differ
diff --git a/src/modules/conf_winlist/e_mod_main.c b/src/modules/conf_winlist/e_mod_main.c
deleted file mode 100644 (file)
index d023594..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-#include "e.h"
-#include "e_mod_main.h"
-
-/* actual module specifics */
-static E_Module *conf_module = NULL;
-
-/* module setup */
-EAPI E_Module_Api e_modapi =
-{
-   E_MODULE_API_VERSION,
-     "Settings - Window List"
-};
-
-EAPI void *
-e_modapi_init(E_Module *m)
-{
-   e_configure_registry_category_add("windows", 50, _("Windows"), NULL, 
-                                     "preferences-system-windows");
-   e_configure_registry_item_add("windows/window_list", 30, _("Window List"), 
-                                 NULL, "preferences-winlist", 
-                                 e_int_config_winlist);
-   conf_module = m;
-   e_module_delayed_set(m, 1);
-   return m;
-}
-
-EAPI int
-e_modapi_shutdown(E_Module *m __UNUSED__)
-{
-   E_Config_Dialog *cfd;
-
-   while ((cfd = e_config_dialog_get("E", "advanced/window_list"))) 
-     e_object_del(E_OBJECT(cfd));
-   e_configure_registry_item_del("advanced/window_list");
-   e_configure_registry_category_del("advanced");
-   conf_module = NULL;
-   return 1;
-}
-
-EAPI int
-e_modapi_save(E_Module *m __UNUSED__)
-{
-   return 1;
-}
diff --git a/src/modules/conf_winlist/e_mod_main.h b/src/modules/conf_winlist/e_mod_main.h
deleted file mode 100644 (file)
index d506da5..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-#ifndef E_MOD_MAIN_H
-#define E_MOD_MAIN_H
-
-#define E_TYPEDEFS 1
-#include "e_int_config_winlist.h"
-
-#undef E_TYPEDEFS
-#include "e_int_config_winlist.h"
-
-EAPI extern E_Module_Api e_modapi;
-
-EAPI void *e_modapi_init     (E_Module *m);
-EAPI int   e_modapi_shutdown (E_Module *m);
-EAPI int   e_modapi_save     (E_Module *m);
-
-#endif
diff --git a/src/modules/conf_winlist/module.desktop.in b/src/modules/conf_winlist/module.desktop.in
deleted file mode 100644 (file)
index ca07c66..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-[Desktop Entry]
-Type=Link
-Name=Window List
-Name[ru]=Список окон
-Name[cs]=Seznam oken
-Name[de]=
-Name[eo]=Fenestrolisto
-Name[es]=Lista de ventanas
-Name[fr]=Liste des fenêtres
-Name[hu]=Ablak lista
-Name[it]=Lista finestre
-Name[ja]=
-Name[pt]=Lista de janelas
-Name[pt_BR]=
-Name[tr]=Pencere Listesi
-Name[zh_CN]=
-Name[zh_TW]=
-Icon=e-module-conf_winlist
-Comment=Configure your window list properties.
-Comment[ru]=Позволяет конфигурацию списка окон.
-Comment[cs]=Změna vlastností seznamu oken.
-Comment[de]=
-Comment[eo]=Agordi la ecojn de la fenestrolisto.
-Comment[es]=Configura las propiedades de su lista de ventanas.
-Comment[fr]=Configure les propriétés de la liste des fenêtres.
-Comment[hu]=Az ablak lista beállításait teszi lehetõvé ez a modul.
-Comment[it]=Configura le proprietà della lista delle finestre.
-Comment[ja]=
-Comment[pt]=Permite-lhe configurar as propriedades da lista de janelas
-Comment[pt_BR]=
-Comment[tr]=Pencere listesi özelliklerini yapılandırır.
-Comment[zh_CN]=
-Comment[zh_TW]=
-X-Enlightenment-ModuleType=settings
index 58da0eb..b5c9c18 100644 (file)
@@ -21,7 +21,9 @@ pkg_LTLIBRARIES        = module.la
 module_la_SOURCES      = e_mod_main.c \
                          e_mod_main.h \
                         e_winlist.c \
-                         e_winlist.h
+                         e_winlist.h \
+                         e_int_config_winlist.c \
+                         e_int_config_winlist.h
                         
 module_la_LIBADD       = @e_libs@ @dlopen_libs@
 module_la_LDFLAGS      = -module -avoid-version
similarity index 99%
rename from src/modules/conf_winlist/e_int_config_winlist.c
rename to src/modules/winlist/e_int_config_winlist.c
index 407f062..df442b1 100644 (file)
@@ -46,7 +46,7 @@ e_int_config_winlist(E_Container *con, const char *params __UNUSED__)
    E_Config_Dialog *cfd;
    E_Config_Dialog_View *v;
 
-   if (e_config_dialog_find("E", "advanced/window_list")) return NULL;
+   if (e_config_dialog_find("E", "windows/window_list")) return NULL;
    v = E_NEW(E_Config_Dialog_View, 1);
 
    v->create_cfdata = _create_data;
@@ -56,7 +56,7 @@ e_int_config_winlist(E_Container *con, const char *params __UNUSED__)
    v->basic.check_changed = _basic_check_changed;
 
    cfd = e_config_dialog_new(con, _("Window List Settings"),
-                            "E", "advanced/window_list",
+                            "E", "windows/window_list",
                             "preferences-winlist", 0, v, NULL);
    return cfd;
 }
index daaa0c2..3831237 100644 (file)
@@ -22,6 +22,8 @@ EAPI void *
 e_modapi_init(E_Module *m)
 {
    conf_module = m;
+   e_configure_registry_category_add("windows", 50, _("Windows"), NULL, "preferences-system-windows");
+   e_configure_registry_item_add("windows/window_list", 70, _("Window List"), NULL, "preferences-winlist", e_int_config_winlist);
    e_winlist_init();
    /* add module supplied action */
    act = e_action_add("winlist");
@@ -62,6 +64,8 @@ e_modapi_init(E_Module *m)
 EAPI int
 e_modapi_shutdown(E_Module *m __UNUSED__)
 {
+   E_Config_Dialog *cfd;
+   
    /* remove module-supplied action */
    if (act)
      {
@@ -79,6 +83,10 @@ e_modapi_shutdown(E_Module *m __UNUSED__)
        act = NULL;
      }
    e_winlist_shutdown();
+   
+   while ((cfd = e_config_dialog_get("E", "windows/window_list"))) e_object_del(E_OBJECT(cfd));
+   e_configure_registry_item_del("windows/window_list");
+   e_configure_registry_category_del("windows");
    conf_module = NULL;
    return 1;
 }
index a4c2a7d..aab2472 100644 (file)
@@ -3,10 +3,11 @@
 
 #define E_TYPEDEFS 1
 #include "e_winlist.h"
+#include "e_int_config_winlist.h"
 
 #undef E_TYPEDEFS
 #include "e_winlist.h"
-
+#include "e_int_config_winlist.h"
 
 EAPI extern E_Module_Api e_modapi;