Browse Source

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 7 months ago
parent
commit
563adb52cb
Signed by: Michele Calgaro <michele.calgaro@yahoo.it> GPG Key ID: 2A75B7CA8ADED5CF

+ 2
- 2
tdeioslave/trash/CMakeLists.txt View File

@@ -26,7 +26,7 @@ link_directories(
##### other data ################################

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) ######################
@@ -51,7 +51,7 @@ tde_add_kpart( ${target} AUTOMOC
set( target kcm_trash )

tde_add_kpart( ${target} AUTOMOC
SOURCES kcm_trash.cpp
SOURCES kcmtrash.cpp
LINK trashcommon-static tdeio-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

+ 3
- 3
tdeioslave/trash/Makefile.am View File

@@ -3,13 +3,13 @@ METASOURCES = AUTO

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_LIBADD = libtrashcommon.la $(LIB_TDEIO)
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_LDFLAGS = $(all_libraries) -module $(KDE_PLUGIN) -no-undefined

@@ -43,4 +43,4 @@ ktrashpropsdlgplugin_la_LIBADD = $(LIB_TDEIO)
services_DATA = ktrashpropsdlgplugin.desktop
servicesdir = $(kde_servicesdir)

xdg_apps_DATA = kcm_trash.desktop
xdg_apps_DATA = kcmtrash.desktop

tdeioslave/trash/kcm_trash.cpp → tdeioslave/trash/kcmtrash.cpp View File

@@ -16,7 +16,7 @@
Boston, MA 02110-1301, USA.
*/

#include "kcm_trash.h"
#include "kcmtrash.h"
#include "ktrashpropswidget.h"

#include <tqlayout.h>
@@ -31,7 +31,7 @@ extern "C"
{
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)
: TDECModule(parent, name)
{
TDEAboutData * about = new TDEAboutData("trash",
TDEAboutData * about = new TDEAboutData("kcmtrash",
I18N_NOOP("Trash"), "1",
I18N_NOOP("Trash Control Panel Module"),
TDEAboutData::License_GPL_V2,
I18N_NOOP("(c) 2019 Michele Calgaro"));
setAboutData( about );
TDEGlobal::locale()->insertCatalogue("trash");
TDEGlobal::locale()->insertCatalogue("tdeio_trash");

tab = new TQTabWidget(this);

@@ -78,4 +78,4 @@ TQString TrashModule::quickHelp() const
"for your Trash Bin size and clean up policy. ");
}

#include "kcm_trash.moc"
#include "kcmtrash.moc"

tdeioslave/trash/kcm_trash.desktop → tdeioslave/trash/kcmtrash.desktop View File

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

tdeioslave/trash/kcm_trash.h → tdeioslave/trash/kcmtrash.h View File


Loading…
Cancel
Save