Hotplug partition manager
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

46 lines
1.2 KiB

  1. /*
  2. * blk_node.cpp
  3. * Copyright (C) 2021 Aitor Cuadrado Zubizarreta <aitor_czr@gnuinos.org>
  4. *
  5. * This program is free software: you can redistribute it and/or modify it
  6. * under the terms of the GNU General Public License as published by the
  7. * Free Software Foundation, either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful, but
  11. * WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. * See the GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License along
  16. * with this program. If not, see <http://www.gnu.org/licenses/>.
  17. *
  18. * See the LICENSE file. *
  19. */
  20. #include "buttonbox.h"
  21. namespace Hopman {
  22. myButtonBox::myButtonBox(bool horizontal, int spacing, Gtk::ButtonBoxStyle layout)
  23. {
  24. if (horizontal)
  25. bbox = new Gtk::HButtonBox;
  26. else
  27. bbox = new Gtk::VButtonBox;
  28. bbox->set_border_width(5);
  29. add(*bbox);
  30. bbox->set_layout(layout);
  31. bbox->set_spacing(spacing);
  32. }
  33. myButtonBox::~myButtonBox()
  34. {
  35. }
  36. } // namespace Hopman