/[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 3162 by schoenebeck, Tue May 9 14:35:23 2017 UTC revision 3179 by schoenebeck, Sat May 13 18:56:36 2017 UTC
# Line 914  void MainWindow::updateMacroMenu() { Line 914  void MainWindow::updateMacroMenu() {
914          );          );
915          menuMacro->append(*item);          menuMacro->append(*item);
916          item->set_accel_path("<Macros>/macro_" + ToString(iMacro));          item->set_accel_path("<Macros>/macro_" + ToString(iMacro));
917            Glib::ustring comment = macro.comment();
918            if (!comment.empty())
919                item->set_tooltip_text(comment);
920      }      }
921      // if there are no macros configured at all, then show a dummy entry instead      // if there are no macros configured at all, then show a dummy entry instead
922      if (m_macros.empty()) {      if (m_macros.empty()) {
# Line 1201  void Saver::thread_function() Line 1204  void Saver::thread_function()
1204                  // save the file as separate temporary file first,                  // save the file as separate temporary file first,
1205                  // then move the saved file over the old file                  // then move the saved file over the old file
1206                  // (may result in performance speedup during save)                  // (may result in performance speedup during save)
1207                  String tmpname = filename + ".TMP";                  gig::String tmpname = filename + ".TMP";
1208                  gig->Save(tmpname, &progress);                  gig->Save(tmpname, &progress);
1209                  #if defined(WIN32)                  #if defined(WIN32)
1210                  if (!DeleteFile(filename.c_str())) {                  if (!DeleteFile(filename.c_str())) {
# Line 3920  void MainWindow::applyMacro(Serializatio Line 3923  void MainWindow::applyMacro(Serializatio
3923           itDimReg != dimreg_edit.dimregs.end(); ++itDimReg)           itDimReg != dimreg_edit.dimregs.end(); ++itDimReg)
3924      {      {
3925          gig::DimensionRegion* pDimRgn = *itDimReg;          gig::DimensionRegion* pDimRgn = *itDimReg;
3926          dimreg_to_be_changed_signal.emit(pDimRgn);          DimRegionChangeGuard(this, pDimRgn);
3927          macro.deserialize(pDimRgn);          macro.deserialize(pDimRgn);
         dimreg_changed_signal.emit(pDimRgn);  
3928      }      }
3929      //region_changed()      //region_changed()
3930      file_changed();      file_changed();

Legend:
Removed from v.3162  
changed lines
  Added in v.3179

  ViewVC Help
Powered by ViewVC