From 59c245310bf628f39b02a7bf5b1e524e036f5f45 Mon Sep 17 00:00:00 2001 From: Aaron Rainbolt Date: Thu, 2 Mar 2023 17:42:22 -0600 Subject: [PATCH] Put the Lubuntu Manual checkbox where it belongs. --- debian/changelog | 7 ++ debian/patches/add-manual.patch | 163 ++++++++++++++++++++++++++++---- 2 files changed, 154 insertions(+), 16 deletions(-) diff --git a/debian/changelog b/debian/changelog index e09e518..703250e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +pcmanfm-qt (1.2.1-0ubuntu2) lunar; urgency=medium + + * Put the Lubuntu Manual checkbox where it belongs in the Desktop + Preferences window. (LP: #1998528) + + -- Aaron Rainbolt Thu, 02 Mar 2023 17:41:45 -0600 + pcmanfm-qt (1.2.1-0ubuntu1) lunar; urgency=medium * New upstream release. diff --git a/debian/patches/add-manual.patch b/debian/patches/add-manual.patch index c71ce56..e8424f8 100644 --- a/debian/patches/add-manual.patch +++ b/debian/patches/add-manual.patch @@ -3,14 +3,152 @@ Forwarded: eventually Author: Simon Quigley Last-Update: 2022-06-16 --- -diff --git a/pcmanfm/desktop-preferences.ui b/pcmanfm/desktop-preferences.ui -index d73e731..459926a 100644 --- a/pcmanfm/desktop-preferences.ui +++ b/pcmanfm/desktop-preferences.ui -@@ -573,6 +573,17 @@ are left clicked, even when it is not the default file manager. +@@ -6,8 +6,8 @@ + + 0 + 0 +- 534 +- 434 ++ 609 ++ 720 + + + +@@ -17,7 +17,7 @@ + + + +- 0 ++ 3 + + + +@@ -485,27 +485,17 @@ are left clicked, even when it is not th + false + + +- +- +- +- Wallpaper image folder: ++ ++ ++ ++ Wallpaper folder +- +- ++ ++ + +- Browse +- +- +- +- +- +- +- hour(s) +- +- +- 24 ++ Randomize the slide show + + + +@@ -522,6 +512,20 @@ are left clicked, even when it is not th + + + ++ ++ ++ ++ Wallpaper image folder: ++ ++ ++ ++ ++ ++ ++ Browse ++ ++ ++ + + + +@@ -545,46 +549,42 @@ are left clicked, even when it is not th + + + +- +- ++ ++ + + Qt::Horizontal + ++ ++ QSizePolicy::Minimum ++ + + +- 10 ++ 5 + 5 + + + + +- +- +- +- Wallpaper folder +- +- +- +- +- ++ ++ + + Qt::Horizontal + +- +- QSizePolicy::Minimum +- + + +- 5 ++ 10 + 5 + + + + +- +- +- +- Randomize the slide show ++ ++ ++ ++ hour(s) ++ ++ ++ 24 + + + +@@ -663,6 +663,17 @@ are left clicked, even when it is not th + .. + + ++ + + + @@ -21,15 +159,12 @@ index d73e731..459926a 100644 + .. + + -+ + - -diff --git a/pcmanfm/desktoppreferencesdialog.cpp b/pcmanfm/desktoppreferencesdialog.cpp -index 87fcfc2..a691d0c 100644 --- a/pcmanfm/desktoppreferencesdialog.cpp +++ b/pcmanfm/desktoppreferencesdialog.cpp -@@ -204,6 +204,9 @@ void DesktopPreferencesDialog::applySettings() +@@ -208,6 +208,9 @@ void DesktopPreferencesDialog::applySett if(ui.networkBox->isChecked()) { ds << QLatin1String("Network"); } @@ -39,11 +174,9 @@ index 87fcfc2..a691d0c 100644 settings.setDesktopShortcuts(ds); settings.setDesktopCellMargins(QSize(ui.hMargin->value(), ui.vMargin->value())); -diff --git a/pcmanfm/desktopwindow.cpp b/pcmanfm/desktopwindow.cpp -index 78e8d2f..3edb7f0 100644 --- a/pcmanfm/desktopwindow.cpp +++ b/pcmanfm/desktopwindow.cpp -@@ -276,6 +276,16 @@ void DesktopWindow::updateShortcutsFromSettings(Settings& settings) { +@@ -277,6 +277,16 @@ void DesktopWindow::updateShortcutsFromS paths.push_back(Fm::FilePath::fromLocalPath(network.toStdString().c_str())); } } @@ -60,7 +193,7 @@ index 78e8d2f..3edb7f0 100644 // WARNING: QFile::remove() is not compatible with libfm-qt and should not be used. if(!paths.empty()) { -@@ -361,6 +371,20 @@ void DesktopWindow::createNetworkShortcut() { +@@ -362,6 +372,20 @@ void DesktopWindow::createNetworkShortcu g_key_file_free(kf); } @@ -81,7 +214,7 @@ index 78e8d2f..3edb7f0 100644 void DesktopWindow::createTrash() { if(trashMonitor_) { return; -@@ -1260,7 +1284,8 @@ void DesktopWindow::trustOurDesktopShortcut(std::shared_ptr +@@ -1297,7 +1321,8 @@ void DesktopWindow::trustOurDesktopShort const char* execStr = isHome ? homeExec.get() : fileName == QLatin1String("trash-can.desktop") && ds.contains(QLatin1String("Trash")) ? "pcmanfm-qt trash:///" : fileName == QLatin1String("computer.desktop") && ds.contains(QLatin1String("Computer")) ? "pcmanfm-qt computer:///" : @@ -91,11 +224,9 @@ index 78e8d2f..3edb7f0 100644 if(execStr) { GKeyFile* kf = g_key_file_new(); if(g_key_file_load_from_file(kf, file->path().toString().get(), G_KEY_FILE_NONE, nullptr)) { -diff --git a/pcmanfm/desktopwindow.h b/pcmanfm/desktopwindow.h -index 742d964..4a90cb4 100644 --- a/pcmanfm/desktopwindow.h +++ b/pcmanfm/desktopwindow.h -@@ -155,6 +155,7 @@ private: +@@ -158,6 +158,7 @@ private: void createHomeShortcut(); void createComputerShortcut(); void createNetworkShortcut();