Ejemplo n.º 1
0
 /**
  * Class Constructor
  * @param $name Form Name
  */
 public function __construct($name = NULL)
 {
     parent::__construct();
     parent::set_shadow_type(Gtk::SHADOW_NONE);
     // register this form
     self::$forms[$name] = $this;
     if ($name) {
         $this->setName($name);
     }
 }
Ejemplo n.º 2
0
 function __create_box()
 {
     $vbox = new GtkVBox(false, 5);
     $vbox->set_border_width(8);
     //Create the color swatch area
     $frame = new GtkFrame();
     $frame->set_shadow_type(Gtk::SHADOW_IN);
     $vbox->pack_start($frame, true, true, 8);
     $this->d_area = new GtkDrawingArea();
     $this->d_area->set_size_request(200, 200);
     //		$this->d_area->modify_bg(Gtk::STATE_NORMAL, $this->color);
     $frame->add($this->d_area);
     $alignment = new GtkAlignment(1.0, 0.5, 0.0, 0.0);
     $button = new GtkButton('_Change the above color');
     $alignment->add($button);
     $vbox->pack_start($alignment, true, true);
     $button->connect('clicked', array($this, 'on_change_color_clicked'));
     $button->set_flags(Gtk::CAN_DEFAULT);
     return $vbox;
 }
Ejemplo n.º 3
0
 /**
  * Class Constructor
  */
 public function __construct()
 {
     parent::__construct();
     parent::set_shadow_type(Gtk::SHADOW_NONE);
     $this->constructed = TRUE;
 }
Ejemplo n.º 4
0
 /**
  * Class Constructor
  */
 public function __construct()
 {
     parent::__construct();
     parent::set_shadow_type(Gtk::SHADOW_NONE);
 }