summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/Patchage.cpp17
-rw-r--r--src/Patchage.hpp1
-rw-r--r--src/patchage.glade5
3 files changed, 3 insertions, 20 deletions
diff --git a/src/Patchage.cpp b/src/Patchage.cpp
index 8a0a3ed..504c471 100644
--- a/src/Patchage.cpp
+++ b/src/Patchage.cpp
@@ -153,11 +153,6 @@ Patchage::Patchage(int argc, char** argv)
_canvas->scroll_to(static_cast<int>(_canvas->width()/2 - 320),
static_cast<int>(_canvas->height()/2 - 240)); // FIXME: hardcoded
- //m_canvas_scrolledwindow->signal_event().connect(
- // sigc::mem_fun(_canvas, &FlowCanvas::scroll_event_handler));
- //_zoom_slider->signal_value_changed().connect(
- // sigc::mem_fun(this, &Patchage::zoom_changed));
-
_buffer_size_combo->signal_changed().connect(
sigc::mem_fun(this, &Patchage::buffer_size_changed));
_rewind_but->signal_clicked().connect(
@@ -386,18 +381,6 @@ Patchage::zoom(double z)
void
-Patchage::zoom_changed()
-{
- static bool enable_signal = true;
- if (enable_signal) {
- enable_signal = false;
- //zoom(_zoom_slider->get_value());
- enable_signal = true;
- }
-}
-
-
-void
Patchage::refresh()
{
assert(_canvas);
diff --git a/src/Patchage.hpp b/src/Patchage.hpp
index 7548aec..30ba925 100644
--- a/src/Patchage.hpp
+++ b/src/Patchage.hpp
@@ -77,7 +77,6 @@ protected:
void on_view_toolbar();
void zoom(double z);
- void zoom_changed();
bool idle_callback();
bool update_load();
void update_toolbar();
diff --git a/src/patchage.glade b/src/patchage.glade
index 8ab3068..5afad35 100644
--- a/src/patchage.glade
+++ b/src/patchage.glade
@@ -5,8 +5,6 @@
<widget class="GtkWindow" id="main_win">
<property name="border_width">1</property>
<property name="title" translatable="yes">Patchage</property>
- <property name="default_width">640</property>
- <property name="default_height">480</property>
<property name="icon">patchage.svg</property>
<child>
<widget class="GtkVBox" id="main_vbox">
@@ -523,6 +521,7 @@ The bar represents the maximum processing delay as a fraction of the time availa
</widget>
<packing>
<property name="expand">False</property>
+ <property name="homogeneous">False</property>
</packing>
</child>
<child>
@@ -700,6 +699,8 @@ The bar represents the maximum processing delay as a fraction of the time availa
<property name="has_focus">True</property>
<property name="can_default">True</property>
<property name="has_default">True</property>
+ <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
+ <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
<property name="shadow_type">GTK_SHADOW_IN</property>
<child>
<placeholder/>