Merge with 'Beep6581/dev'

This commit is contained in:
Pandagrapher
2023-09-05 09:48:43 +02:00
91 changed files with 1524 additions and 1157 deletions

View File

@@ -96,7 +96,7 @@ DirBrowser::DirBrowser () : dirTreeModel(),
iremovable("device-usb"),
expandSuccess(false)
#ifdef WIN32
#ifdef _WIN32
, volumes(0)
#endif
{
@@ -160,7 +160,7 @@ void DirBrowser::fillDirTree ()
dirTreeModel->signal_sort_column_changed().connect(sigc::mem_fun(*this, &DirBrowser::on_sort_column_changed));
}
#ifdef WIN32
#ifdef _WIN32
void DirBrowser::addRoot (char letter)
{
@@ -246,7 +246,7 @@ int updateVolumesUI (void* br)
void DirBrowser::fillRoot ()
{
#ifdef WIN32
#ifdef _WIN32
volumes = GetLogicalDrives ();
for (int i = 0; i < 32; i++)
@@ -403,7 +403,7 @@ Gtk::TreePath DirBrowser::expandToDir (const Glib::ustring& absDirPath)
int count = 0;
expandSuccess = true;
#ifndef WIN32
#ifndef _WIN32
Gtk::TreeModel::iterator j = dirTreeModel->get_iter (path);
path.up ();
path.push_back (0);
@@ -413,7 +413,7 @@ Gtk::TreePath DirBrowser::expandToDir (const Glib::ustring& absDirPath)
while (dir) {
Glib::ustring dirstr = dir;
#ifdef WIN32
#ifdef _WIN32
if (count == 0) {
dirstr = dirstr + "\\";
@@ -426,7 +426,7 @@ Gtk::TreePath DirBrowser::expandToDir (const Glib::ustring& absDirPath)
while (i && expandSuccess) {
Gtk::TreeModel::Row crow = *i;
Glib::ustring str = crow[dtColumns.filename];
#ifdef WIN32
#ifdef _WIN32
if (str.casefold() == dirstr.casefold()) {
#else