Chapter 15. Setting Widget Attributes

This describes the functions used to operate on widgets. These can be used to set style, padding, size, etc.

(Maybe I should make a whole section on accelerators.)

Gtk2::Widget->activate($widget);

Gtk2::Widget->set_name($widget, $name);

$name = Gtk2::Widget->get_name($widget);

Gtk2::Widget->set_sensitive($widget);

Gtk2::Widget->set_style($widget, $style);

$style = Gtk2::Widget->get_style($widget);

Gtk2::Widget->set_size_request($widget, $width, $height);

Gtk2::Widget->grab_focus($widget);

Gtk2::Widget->show($widget);

Gtk2::Widget->hide($widget);