/[svn]/gigedit/trunk/src/gigedit/mainwindow.cpp
ViewVC logotype

Diff of /gigedit/trunk/src/gigedit/mainwindow.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3476 by persson, Sat Feb 16 19:56:56 2019 UTC revision 3477 by persson, Thu Feb 21 05:52:02 2019 UTC
# Line 2205  void MainWindow::on_action_file_open() Line 2205  void MainWindow::on_action_file_open()
2205          dialog.set_current_folder(current_gig_dir);          dialog.set_current_folder(current_gig_dir);
2206      }      }
2207      if (dialog.run() == Gtk::RESPONSE_OK) {      if (dialog.run() == Gtk::RESPONSE_OK) {
2208            dialog.hide();
2209          std::string filename = dialog.get_filename();          std::string filename = dialog.get_filename();
2210          printf("filename=%s\n", filename.c_str());          printf("filename=%s\n", filename.c_str());
2211  #ifdef GLIB_THREADS  #ifdef GLIB_THREADS
# Line 2473  bool MainWindow::file_save_as() Line 2474  bool MainWindow::file_save_as()
2474  #endif  #endif
2475    
2476      if (dialog.run() == Gtk::RESPONSE_OK) {      if (dialog.run() == Gtk::RESPONSE_OK) {
2477            dialog.hide();
2478          std::string filename = dialog.get_filename();          std::string filename = dialog.get_filename();
2479          if (!Glib::str_has_suffix(filename, ".gig")) {          if (!Glib::str_has_suffix(filename, ".gig")) {
2480              filename += ".gig";              filename += ".gig";
# Line 4109  void MainWindow::add_or_replace_sample(b Line 4111  void MainWindow::add_or_replace_sample(b
4111          dialog.set_current_folder(current_sample_dir);          dialog.set_current_folder(current_sample_dir);
4112      }      }
4113      if (dialog.run() == Gtk::RESPONSE_OK) {      if (dialog.run() == Gtk::RESPONSE_OK) {
4114            dialog.hide();
4115          current_sample_dir = dialog.get_current_folder();          current_sample_dir = dialog.get_current_folder();
4116          Glib::ustring error_files;          Glib::ustring error_files;
4117          std::vector<std::string> filenames = dialog.get_filenames();          std::vector<std::string> filenames = dialog.get_filenames();
# Line 4289  void MainWindow::on_action_replace_all_s Line 4292  void MainWindow::on_action_replace_all_s
4292      }      }
4293      if (dialog.run() == Gtk::RESPONSE_OK)      if (dialog.run() == Gtk::RESPONSE_OK)
4294      {      {
4295            dialog.hide();
4296          current_sample_dir = dialog.get_current_folder();          current_sample_dir = dialog.get_current_folder();
4297          Glib::ustring error_files;          Glib::ustring error_files;
4298          std::string folder = dialog.get_filename();          std::string folder = dialog.get_filename();
# Line 5017  void MainWindow::on_action_merge_files() Line 5021  void MainWindow::on_action_merge_files()
5021  #endif  #endif
5022    
5023      if (dialog.run() == Gtk::RESPONSE_OK) {      if (dialog.run() == Gtk::RESPONSE_OK) {
5024            dialog.hide();
5025  #ifdef GLIB_THREADS  #ifdef GLIB_THREADS
5026          printf("on_action_merge_files self=%p\n",          printf("on_action_merge_files self=%p\n",
5027                 static_cast<void*>(Glib::Threads::Thread::self()));                 static_cast<void*>(Glib::Threads::Thread::self()));

Legend:
Removed from v.3476  
changed lines
  Added in v.3477

  ViewVC Help
Powered by ViewVC