1 |
/* |
/* |
2 |
Copyright (c) 2014-2017 Christian Schoenebeck |
Copyright (c) 2014-2019 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. |
941 |
} |
} |
942 |
|
|
943 |
m_buttonBox.set_layout(Gtk::BUTTONBOX_END); |
m_buttonBox.set_layout(Gtk::BUTTONBOX_END); |
944 |
#if GTKMM_MAJOR_VERSION > 3 || (GTKMM_MAJOR_VERSION == 3 && GTKMM_MINOR_VERSION > 22) |
#if GTKMM_MAJOR_VERSION > 3 || (GTKMM_MAJOR_VERSION == 3 && GTKMM_MINOR_VERSION > 24) |
945 |
m_buttonBox.set_margin(5); |
m_buttonBox.set_margin(5); |
946 |
#else |
#else |
947 |
m_buttonBox.set_border_width(5); |
m_buttonBox.set_border_width(5); |
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 = _( |
1028 |
const Gtk::SelectionData& selection_data, guint, guint time) |
const Gtk::SelectionData& selection_data, guint, guint time) |
1029 |
{ |
{ |
1030 |
printf("Drag data received\n"); |
printf("Drag data received\n"); |
|
if (&selection_data == NULL) { |
|
|
printf("!selection_data\n"); |
|
|
return; |
|
|
} |
|
1031 |
if (!selection_data.get_data()) { |
if (!selection_data.get_data()) { |
1032 |
printf("selection_data.get_data() == NULL\n"); |
printf("selection_data.get_data() == NULL\n"); |
1033 |
return; |
return; |
1038 |
printf("!src\n"); |
printf("!src\n"); |
1039 |
return; |
return; |
1040 |
} |
} |
1041 |
printf("src=%d\n", src); |
printf("src=%ld\n", (size_t)src); |
1042 |
|
|
1043 |
gig::Instrument* dst = NULL; |
gig::Instrument* dst = NULL; |
1044 |
{ |
{ |
1250 |
} |
} |
1251 |
} |
} |
1252 |
|
|
1253 |
|
void CombineInstrumentsDialog::on_show_tooltips_changed() { |
1254 |
|
const bool b = Settings::singleton()->showTooltips; |
1255 |
|
|
1256 |
|
m_treeView.set_has_tooltip(b); |
1257 |
|
m_iconView.set_has_tooltip(b); |
1258 |
|
|
1259 |
|
set_has_tooltip(b); |
1260 |
|
} |
1261 |
|
|
1262 |
bool CombineInstrumentsDialog::fileWasChanged() const { |
bool CombineInstrumentsDialog::fileWasChanged() const { |
1263 |
return m_fileWasChanged; |
return m_fileWasChanged; |
1264 |
} |
} |