From 8623302340b091fd65a5ad2ff5dc25915ea297ca Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 22 Sep 2008 16:54:17 +0000 Subject: [PATCH] Set add route dialog non-resizeable so WMs size it more sensibly (looked ridiculous in ion3). Tab cleanups. git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3787 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/add_route_dialog.cc | 3 ++- gtk2_ardour/editor_mouse.cc | 3 +-- gtk2_ardour/time_axis_view_item.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gtk2_ardour/add_route_dialog.cc b/gtk2_ardour/add_route_dialog.cc index 1b78e01c35..d5e207ad79 100644 --- a/gtk2_ardour/add_route_dialog.cc +++ b/gtk2_ardour/add_route_dialog.cc @@ -93,6 +93,7 @@ AddRouteDialog::AddRouteDialog () set_name ("AddRouteDialog"); set_wmclass (X_("ardour_add_track_bus"), "Ardour"); set_position (Gtk::WIN_POS_MOUSE); + set_resizable (false); name_template_entry.set_name ("AddRouteDialogNameTemplateEntry"); track_button.set_name ("AddRouteDialogRadioButton"); @@ -134,7 +135,7 @@ AddRouteDialog::AddRouteDialog () VBox *dvbox = manage (new VBox); HBox *dhbox = manage (new HBox); - ccframe.set_label (_("Channel Configuration")); + ccframe.set_label (_("Channel Configuration")); ccframe.set_shadow_type (SHADOW_IN); dvbox->pack_start (channel_combo, true, false, 5); diff --git a/gtk2_ardour/editor_mouse.cc b/gtk2_ardour/editor_mouse.cc index ab1f4792eb..1a440a825a 100644 --- a/gtk2_ardour/editor_mouse.cc +++ b/gtk2_ardour/editor_mouse.cc @@ -3082,8 +3082,7 @@ Editor::line_drag_motion_callback (ArdourCanvas::Item* item, GdkEvent* event) cy = max (0.0, cy); cy = min ((double) line->height(), cy); - double fraction; - fraction = 1.0 - (cy / line->height()); + double fraction = 1.0 - (cy / line->height()); bool push; diff --git a/gtk2_ardour/time_axis_view_item.h b/gtk2_ardour/time_axis_view_item.h index 537a50c1ce..c01287c996 100644 --- a/gtk2_ardour/time_axis_view_item.h +++ b/gtk2_ardour/time_axis_view_item.h @@ -38,7 +38,7 @@ class TimeAxisView; class TimeAxisViewItem : public Selectable { public: - virtual ~TimeAxisViewItem() ; + virtual ~TimeAxisViewItem() ; /** * Set the position of this item upon the timeline to the specified value