Permalink
Browse files

A little clean up for checkboxes and spinbuttons.

  • Loading branch information...
1 parent ea0e977 commit 07e7de71f3ba0b98a5d7081c853d738e7a9f631e Scott Mattocks committed Sep 14, 2006
Showing with 5 additions and 4 deletions.
  1. +5 −1 Element/Gtk2/CheckBox.php
  2. +0 −3 Element/Gtk2/SpinButton.php
@@ -248,12 +248,16 @@ public function setLabel($label)
/**
* Returns the GtkLabel that identifies the element.
*
+ * Because of the way checkboxes are set up, this method returns ' '. If
+ * it doesn't the checkbox will have two labels, one to the left and one to
+ * the right.
+ *
* @access public
* @return string
*/
public function getLabel()
{
- return $this->get_label();
+ return ' ';
}
/**
@@ -64,9 +64,6 @@ public function __construct(Structures_Form $form, $label, $min = 0,
// Set the value.
$this->set_value($value);
- // Set the precision.
- $this->set_digits($digits);
-
// Set the form object.
$this->form = $form;

0 comments on commit 07e7de7

Please sign in to comment.