summaryrefslogtreecommitdiff
path: root/gtk2_ardour/utils.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2005-11-26 00:06:46 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2005-11-26 00:06:46 +0000
commitf69abbff90ac8b8426bb0c6e02a7f4d4a3fd5e6d (patch)
tree3f694b5bb3cdee16813e224eb183a2435605fe78 /gtk2_ardour/utils.cc
parent026f506bc6912f1374d21ccccf42542f749a6cb7 (diff)
compiles and runs, but crashes ... duh
git-svn-id: svn://localhost/trunk/ardour2@113 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/utils.cc')
-rw-r--r--gtk2_ardour/utils.cc10
1 files changed, 3 insertions, 7 deletions
diff --git a/gtk2_ardour/utils.cc b/gtk2_ardour/utils.cc
index 2798e0e29e..a25067c35e 100644
--- a/gtk2_ardour/utils.cc
+++ b/gtk2_ardour/utils.cc
@@ -30,6 +30,7 @@
#include <gtkmm2ext/utils.h>
#include "ardour_ui.h"
+#include "keyboard.h"
#include "utils.h"
#include "i18n.h"
#include "rgb_macros.h"
@@ -315,9 +316,9 @@ get_canvas_points (string who, uint32_t npoints)
}
int
-channel_combo_get_channel_count (Gtk::Combo& combo)
+channel_combo_get_channel_count (Gtk::ComboBoxText& combo)
{
- string str = combo.get_entry()->get_text();
+ string str = combo.get_active_text();
int chns;
if (str == _("mono")) {
@@ -501,8 +502,3 @@ rgba_from_style (string style, uint32_t r, uint32_t g, uint32_t b, uint32_t a)
return (uint32_t) RGBA_TO_UINT(r,g,b,a);
}
-void
-decorate (Gtk::Window& w, Gdk::WMDecoration d)
-{
- w.get_window()->set_decorations (d);
-}