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

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

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

revision 3364 by schoenebeck, Tue Nov 14 18:07:25 2017 UTC revision 3409 by schoenebeck, Tue Jan 23 16:30:56 2018 UTC
# Line 1  Line 1 
1  /*  /*
2      Copyright (c) 2014-2017 Christian Schoenebeck      Copyright (c) 2014-2018 Christian Schoenebeck
3            
4      This file is part of "gigedit" and released under the terms of the      This file is part of "gigedit" and released under the terms of the
5      GNU General Public License version 2.      GNU General Public License version 2.
# Line 966  CombineInstrumentsDialog::CombineInstrum Line 966  CombineInstrumentsDialog::CombineInstrum
966      show_all_children();      show_all_children();
967  #endif  #endif
968    
969        Settings::singleton()->showTooltips.get_proxy().signal_changed().connect(
970            sigc::mem_fun(*this, &CombineInstrumentsDialog::on_show_tooltips_changed)
971        );
972        on_show_tooltips_changed();
973    
974      // show a warning to user if he uses a .gig in v2 format      // show a warning to user if he uses a .gig in v2 format
975      if (gig->pVersion->major < 3) {      if (gig->pVersion->major < 3) {
976          Glib::ustring txt = _(          Glib::ustring txt = _(
# Line 1249  void CombineInstrumentsDialog::onSelecti Line 1254  void CombineInstrumentsDialog::onSelecti
1254      }      }
1255  }  }
1256    
1257    void CombineInstrumentsDialog::on_show_tooltips_changed() {
1258        const bool b = Settings::singleton()->showTooltips;
1259    
1260        m_treeView.set_has_tooltip(b);
1261        m_iconView.set_has_tooltip(b);
1262    
1263        set_has_tooltip(b);
1264    }
1265    
1266  bool CombineInstrumentsDialog::fileWasChanged() const {  bool CombineInstrumentsDialog::fileWasChanged() const {
1267      return m_fileWasChanged;      return m_fileWasChanged;
1268  }  }

Legend:
Removed from v.3364  
changed lines
  Added in v.3409

  ViewVC Help
Powered by ViewVC