13
0

remove frame from barcontroller

This commit is contained in:
Robin Gareus 2014-08-31 19:36:41 +02:00
parent e3d982a66e
commit 50c3177a5e
2 changed files with 5 additions and 3 deletions

View File

@ -56,7 +56,8 @@ BarController::BarController (Gtk::Adjustment& adj,
layout = darea.create_pango_layout("");
set_shadow_type (SHADOW_NONE);
set (.5, .5, 1.0, 1.0);
set_border_width(2);
initial_value = adjustment.get_value ();
@ -550,7 +551,7 @@ BarController::set_use_parent (bool yn)
void
BarController::set_sensitive (bool yn)
{
Frame::set_sensitive (yn);
Alignment::set_sensitive (yn);
darea.set_sensitive (yn);
}

View File

@ -19,6 +19,7 @@
#ifndef __gtkmm2ext_bar_controller_h__
#define __gtkmm2ext_bar_controller_h__
#include <gtkmm/alignment.h>
#include <gtkmm/frame.h>
#include <gtkmm/drawingarea.h>
#include <cairo.h>
@ -28,7 +29,7 @@
namespace Gtkmm2ext {
class LIBGTKMM2EXT_API BarController : public Gtk::Frame
class LIBGTKMM2EXT_API BarController : public Gtk::Alignment
{
public:
BarController (Gtk::Adjustment& adj, boost::shared_ptr<PBD::Controllable>);