diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2005-12-08 18:53:43 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2005-12-08 18:53:43 +0000 |
commit | cdd680f0b72a2081e05ad981d0467526310150c8 (patch) | |
tree | 6cf70c0e66058f9741025534cde8204814dc0ff9 /gtk2_ardour/editor_tempodisplay.cc | |
parent | 9f91aca7622923ca35f049e69ec292e9f12aefb2 (diff) |
meter/tempo bars show again, fix tempo/meter dialogs, and more
git-svn-id: svn://localhost/trunk/ardour2@183 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_tempodisplay.cc')
-rw-r--r-- | gtk2_ardour/editor_tempodisplay.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gtk2_ardour/editor_tempodisplay.cc b/gtk2_ardour/editor_tempodisplay.cc index 0533792dd9..d7e35caa20 100644 --- a/gtk2_ardour/editor_tempodisplay.cc +++ b/gtk2_ardour/editor_tempodisplay.cc @@ -34,6 +34,7 @@ #include <ardour/session.h> #include <ardour/tempo.h> #include <gtkmm2ext/doi.h> +#include <gtkmm2ext/utils.h> #include "editor.h" #include "marker.h" @@ -48,6 +49,7 @@ using namespace std; using namespace sigc; using namespace ARDOUR; using namespace Gtk; +using namespace Gtkmm2ext; using namespace Editing; void @@ -247,9 +249,7 @@ Editor::mouse_add_new_tempo_event (jack_nframes_t frame) TempoDialog tempo_dialog (map, frame, _("add")); tempo_dialog.set_position (Gtk::WIN_POS_MOUSE); - // GTK2FIX - // tempo_dialog.realize (); - // tempo_dialog.get_window()->set_decorations (Gdk::WMDecoration (Gdk::DECOR_BORDER|Gdk::DECOR_RESIZEH)); + tempo_dialog.signal_realize().connect (bind (sigc::ptr_fun (set_decoration), &tempo_dialog, Gdk::WMDecoration (Gdk::DECOR_BORDER|Gdk::DECOR_RESIZEH))); ensure_float (tempo_dialog); @@ -289,9 +289,7 @@ Editor::mouse_add_new_meter_event (jack_nframes_t frame) MeterDialog meter_dialog (map, frame, _("add")); meter_dialog.set_position (Gtk::WIN_POS_MOUSE); - // GTK2FIX - // meter_dialog.realize (); - // meter_dialog.get_window()->set_decorations (Gdk::WMDecoration (Gdk::DECOR_BORDER|Gdk::DECOR_RESIZEH)); + meter_dialog.signal_realize().connect (bind (sigc::ptr_fun (set_decoration), &meter_dialog, Gdk::WMDecoration (Gdk::DECOR_BORDER|Gdk::DECOR_RESIZEH))); ensure_float (meter_dialog); |