Renamed kcm_trash to kcmtrash and minor fixup to previous commits.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/34/head
Michele Calgaro 5 years ago
parent 85e0371c0e
commit 563adb52cb
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -26,7 +26,7 @@ link_directories(
##### other data ################################ ##### other data ################################
install( FILES ktrashpropsdlgplugin.desktop trash.protocol DESTINATION ${SERVICES_INSTALL_DIR} ) install( FILES ktrashpropsdlgplugin.desktop trash.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES kcm_trash.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) install( FILES kcmtrash.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
##### trashcommon (static) ###################### ##### trashcommon (static) ######################
@ -51,7 +51,7 @@ tde_add_kpart( ${target} AUTOMOC
set( target kcm_trash ) set( target kcm_trash )
tde_add_kpart( ${target} AUTOMOC tde_add_kpart( ${target} AUTOMOC
SOURCES kcm_trash.cpp SOURCES kcmtrash.cpp
LINK trashcommon-static tdeio-shared LINK trashcommon-static tdeio-shared
DESTINATION ${PLUGIN_INSTALL_DIR} DESTINATION ${PLUGIN_INSTALL_DIR}
) )

@ -3,13 +3,13 @@ METASOURCES = AUTO
SUBDIRS = . tdefile-plugin SUBDIRS = . tdefile-plugin
kde_module_LTLIBRARIES = tdeio_trash.la kcm_trash ktrashpropsdlgplugin.la kde_module_LTLIBRARIES = tdeio_trash.la kcm_trash.la ktrashpropsdlgplugin.la
tdeio_trash_la_SOURCES = tdeio_trash.cpp tdeio_trash_la_SOURCES = tdeio_trash.cpp
tdeio_trash_la_LIBADD = libtrashcommon.la $(LIB_TDEIO) tdeio_trash_la_LIBADD = libtrashcommon.la $(LIB_TDEIO)
tdeio_trash_la_LDFLAGS = $(all_libraries) -module $(KDE_PLUGIN) -no-undefined tdeio_trash_la_LDFLAGS = $(all_libraries) -module $(KDE_PLUGIN) -no-undefined
kcm_trash_la_SOURCES = kcm_trash.cpp kcm_trash_la_SOURCES = kcmtrash.cpp
kcm_trash_la_LIBADD = libtrashcommon.la $(LIB_TDEIO) kcm_trash_la_LIBADD = libtrashcommon.la $(LIB_TDEIO)
kcm_trash_la_LDFLAGS = $(all_libraries) -module $(KDE_PLUGIN) -no-undefined kcm_trash_la_LDFLAGS = $(all_libraries) -module $(KDE_PLUGIN) -no-undefined
@ -43,4 +43,4 @@ ktrashpropsdlgplugin_la_LIBADD = $(LIB_TDEIO)
services_DATA = ktrashpropsdlgplugin.desktop services_DATA = ktrashpropsdlgplugin.desktop
servicesdir = $(kde_servicesdir) servicesdir = $(kde_servicesdir)
xdg_apps_DATA = kcm_trash.desktop xdg_apps_DATA = kcmtrash.desktop

@ -16,7 +16,7 @@
Boston, MA 02110-1301, USA. Boston, MA 02110-1301, USA.
*/ */
#include "kcm_trash.h" #include "kcmtrash.h"
#include "ktrashpropswidget.h" #include "ktrashpropswidget.h"
#include <tqlayout.h> #include <tqlayout.h>
@ -31,7 +31,7 @@ extern "C"
{ {
KDE_EXPORT TDECModule *create_trash(TQWidget *parent, const char *) KDE_EXPORT TDECModule *create_trash(TQWidget *parent, const char *)
{ {
return new TrashModule(parent, "trash"); return new TrashModule(parent, "kcmtrash");
} }
} }
@ -39,13 +39,13 @@ extern "C"
TrashModule::TrashModule(TQWidget *parent, const char *name) TrashModule::TrashModule(TQWidget *parent, const char *name)
: TDECModule(parent, name) : TDECModule(parent, name)
{ {
TDEAboutData * about = new TDEAboutData("trash", TDEAboutData * about = new TDEAboutData("kcmtrash",
I18N_NOOP("Trash"), "1", I18N_NOOP("Trash"), "1",
I18N_NOOP("Trash Control Panel Module"), I18N_NOOP("Trash Control Panel Module"),
TDEAboutData::License_GPL_V2, TDEAboutData::License_GPL_V2,
I18N_NOOP("(c) 2019 Michele Calgaro")); I18N_NOOP("(c) 2019 Michele Calgaro"));
setAboutData( about ); setAboutData( about );
TDEGlobal::locale()->insertCatalogue("trash"); TDEGlobal::locale()->insertCatalogue("tdeio_trash");
tab = new TQTabWidget(this); tab = new TQTabWidget(this);
@ -78,4 +78,4 @@ TQString TrashModule::quickHelp() const
"for your Trash Bin size and clean up policy. "); "for your Trash Bin size and clean up policy. ");
} }
#include "kcm_trash.moc" #include "kcmtrash.moc"

@ -1,5 +1,5 @@
[Desktop Entry] [Desktop Entry]
Exec=tdecmshell kcm_trash Exec=tdecmshell kcmtrash
Icon=trashcan_empty Icon=trashcan_empty
Type=Application Type=Application
#X-DocPath=kcontrol/kcmcgi/index.html #X-DocPath=kcontrol/kcmcgi/index.html
Loading…
Cancel
Save