2009-03-10 19:38:53 +01:00
|
|
|
/*
|
2015-05-29 04:44:58 +02:00
|
|
|
ButtonBar - button bar widget
|
2010-12-17 23:28:49 +01:00
|
|
|
|
2009-03-10 19:38:53 +01:00
|
|
|
Copyright (C) Lumiera.org
|
|
|
|
|
2009, Joel Holdsworth <joel@airwebreathe.org.uk>
|
2010-12-17 23:28:49 +01:00
|
|
|
|
2009-03-10 19:38:53 +01:00
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
|
modify it under the terms of the GNU General Public License as
|
2010-12-17 23:28:49 +01:00
|
|
|
published by the Free Software Foundation; either version 2 of
|
|
|
|
|
the License, or (at your option) any later version.
|
|
|
|
|
|
2009-03-10 19:38:53 +01:00
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
GNU General Public License for more details.
|
2010-12-17 23:28:49 +01:00
|
|
|
|
2009-03-10 19:38:53 +01:00
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
2010-12-17 23:28:49 +01:00
|
|
|
|
2009-03-10 19:38:53 +01:00
|
|
|
* *****************************************************/
|
|
|
|
|
|
|
|
|
|
|
2015-05-29 04:44:58 +02:00
|
|
|
#include "gui/widget/button-bar.hpp"
|
|
|
|
|
#include "include/logging.h"
|
2009-03-10 19:38:53 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace gui {
|
2015-05-29 04:44:58 +02:00
|
|
|
namespace widget {
|
|
|
|
|
|
2012-08-15 07:32:35 +02:00
|
|
|
ButtonBar::ButtonBar()
|
|
|
|
|
{
|
2015-05-29 04:44:58 +02:00
|
|
|
set_orientation (Gtk::ORIENTATION_HORIZONTAL);
|
|
|
|
|
set_has_window (false);
|
2012-08-15 07:32:35 +02:00
|
|
|
}
|
2009-04-16 16:44:40 +02:00
|
|
|
|
2015-05-29 04:44:58 +02:00
|
|
|
|
2012-08-15 07:32:35 +02:00
|
|
|
void
|
2015-05-29 04:44:58 +02:00
|
|
|
ButtonBar::append (Widget& widget)
|
2012-08-15 07:32:35 +02:00
|
|
|
{
|
2015-05-29 04:44:58 +02:00
|
|
|
pack_start(widget, Gtk::PACK_SHRINK);
|
2012-08-15 07:32:35 +02:00
|
|
|
}
|
2015-05-29 04:44:58 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
}}// gui::widget
|