Special character handling patch from Oduis backported from Defloat
This commit is contained in:
@@ -43,10 +43,6 @@
|
||||
|
||||
extern Options options;
|
||||
|
||||
//#ifdef WIN32
|
||||
//#include <windows.h> // included for WinMain
|
||||
//#endif
|
||||
|
||||
// stores path to data files
|
||||
Glib::ustring argv0;
|
||||
Glib::ustring argv1;
|
||||
@@ -103,8 +99,8 @@ int main(int argc, char **argv)
|
||||
|
||||
#ifndef _WIN32
|
||||
// Move the old path to the new one if the new does not exist
|
||||
if (Glib::file_test(Glib::build_filename(options.rtdir,"cache"), Glib::FILE_TEST_IS_DIR) && !Glib::file_test(options.cacheBaseDir, Glib::FILE_TEST_IS_DIR))
|
||||
::g_rename(Glib::build_filename(options.rtdir,"cache").c_str(), options.cacheBaseDir.c_str());
|
||||
if (safe_file_test(Glib::build_filename(options.rtdir,"cache"), Glib::FILE_TEST_IS_DIR) && !safe_file_test(options.cacheBaseDir, Glib::FILE_TEST_IS_DIR))
|
||||
safe_g_rename(Glib::build_filename(options.rtdir,"cache"), options.cacheBaseDir);
|
||||
#endif
|
||||
|
||||
// Gtk::RC::add_default_file (argv0+"/themes/"+options.theme);
|
||||
@@ -118,7 +114,7 @@ int main(int argc, char **argv)
|
||||
Gtk::RC::set_default_files (rcfiles);
|
||||
}
|
||||
Gtk::Main m(&argc, &argv);
|
||||
// MainWindow *MainWindow = new class MainWindow();
|
||||
|
||||
RTWindow *rtWindow = new class RTWindow();
|
||||
gdk_threads_enter ();
|
||||
m.run(*rtWindow);
|
||||
|
Reference in New Issue
Block a user