diff --git a/gtk2_ardour/ardour2_ui.rc b/gtk2_ardour/ardour2_ui.rc index 90ecf53717..8df3dcca46 100644 --- a/gtk2_ardour/ardour2_ui.rc +++ b/gtk2_ardour/ardour2_ui.rc @@ -126,7 +126,7 @@ style "black_mackie_menu_bar" = "medium_bold_text" bg[NORMAL] = { 0, 0, 0 } } -style "default_buttons_menus" = "small_button" +style "default_buttons_menus" { font_name = "sans 8" fg[ACTIVE] = { 0, 0, 0 } diff --git a/gtk2_ardour/ardour_ui_dialogs.cc b/gtk2_ardour/ardour_ui_dialogs.cc index 84900e702a..fcd8d51599 100644 --- a/gtk2_ardour/ardour_ui_dialogs.cc +++ b/gtk2_ardour/ardour_ui_dialogs.cc @@ -111,7 +111,7 @@ ARDOUR_UI::connect_to_session (Session *s) */ connect_dependents_to_session (s); - + start_clocking (); start_blinking (); diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index ebaab5d755..95a1150894 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -2080,6 +2080,7 @@ Editor::set_state (const XMLNode& node) int x, y, xoff, yoff; Gdk::Geometry g; + if ((geometry = find_named_node (node, "geometry")) == 0) { g.base_width = default_width; @@ -2119,6 +2120,15 @@ Editor::set_state (const XMLNode& node) set_snap_mode ((SnapMode) atoi (prop->value())); } + if ((prop = node.property ("mouse-mode"))) { + MouseMode m = str2mousemode(prop->value()); + mouse_mode = MouseMode ((int) m + 1); /* lie, force mode switch */ + set_mouse_mode (m, true); + } else { + mouse_mode = MouseGain; /* lie, to force the mode switch */ + set_mouse_mode (MouseObject, true); + } + if ((prop = node.property ("show-waveforms"))) { bool yn = (prop->value() == "yes"); _show_waveforms = !yn; @@ -2166,24 +2176,16 @@ Editor::set_state (const XMLNode& node) } } - if ((prop = node.property ("xfades-visible"))) { - bool yn = (prop->value() == "yes"); - _xfade_visibility = !yn; - set_xfade_visibility (yn); - } - + if ((prop = node.property ("region-list-sort-type"))) { region_list_sort_type = (Editing::RegionListSortType) -1; // force change reset_region_list_sort_type(str2regionlistsorttype(prop->value())); } - if ((prop = node.property ("mouse-mode"))) { - MouseMode m = str2mousemode(prop->value()); - mouse_mode = MouseMode ((int) m + 1); /* lie, force mode switch */ - set_mouse_mode (m, true); - } else { - mouse_mode = MouseGain; /* lie, to force the mode switch */ - set_mouse_mode (MouseObject, true); + if ((prop = node.property ("xfades-visible"))) { + bool yn = (prop->value() == "yes"); + _xfade_visibility = !yn; + set_xfade_visibility (yn); } if ((prop = node.property ("show-editor-mixer"))) { diff --git a/gtk2_ardour/editor_mixer.cc b/gtk2_ardour/editor_mixer.cc index a61707f91b..512fe6a957 100644 --- a/gtk2_ardour/editor_mixer.cc +++ b/gtk2_ardour/editor_mixer.cc @@ -95,14 +95,14 @@ Editor::show_editor_mixer (bool yn) } if (current_mixer_strip->get_parent() == 0) { - current_mixer_strip->set_embedded (true); current_mixer_strip->Hiding.connect (mem_fun(*this, &Editor::current_mixer_strip_hidden)); current_mixer_strip->GoingAway.connect (mem_fun(*this, &Editor::current_mixer_strip_removed)); current_mixer_strip->set_width (editor_mixer_strip_width); global_hpacker.pack_start (*current_mixer_strip, Gtk::PACK_SHRINK ); - global_hpacker.reorder_child (*current_mixer_strip, 0); + global_hpacker.reorder_child (*current_mixer_strip, 0); + current_mixer_strip->show_all (); } diff --git a/gtk2_ardour/gain_meter.cc b/gtk2_ardour/gain_meter.cc index a696bbfbb1..df219d3e7e 100644 --- a/gtk2_ardour/gain_meter.cc +++ b/gtk2_ardour/gain_meter.cc @@ -181,8 +181,8 @@ GainMeter::GainMeter (IO& io, Session& s) hbox.pack_start (meter_packer, Gtk::PACK_SHRINK); set_spacing (4); + pack_start (top_table, Gtk::PACK_SHRINK); - /* here's the culprit gain display box*/ pack_start (gain_display_box, Gtk::PACK_SHRINK); pack_start (hbox, Gtk::PACK_SHRINK); diff --git a/libs/gtkmm2ext/fastmeter.cc b/libs/gtkmm2ext/fastmeter.cc index 6cefe182bd..e1b3361f57 100644 --- a/libs/gtkmm2ext/fastmeter.cc +++ b/libs/gtkmm2ext/fastmeter.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2003 Paul Davis + Copyright (C) 2003-2006 Paul Davis This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -71,20 +71,6 @@ FastMeter::~FastMeter () { } -void -FastMeter::on_realize () -{ - DrawingArea::on_realize(); - - RefPtr