Why Gtk::Entry don't fill cells in tables?



Hello.
The problem is that Gtk::Entry widget don't increase its height to fill a table cell. Example source:

class ExampleWindow: public Gtk::Window
{
private:
 Gtk::Table table;
 Gtk::Entry entry;
 Gtk::Button button;
public:
 ExampleWindow()
 {
   add(table);
   button.set_size_request(50, 50);
   table.resize(1, 2);
   table.attach(entry, 0, 1, 0, 1, Gtk::FILL | Gtk::EXPAND, Gtk::FILL);
   table.attach(button, 1, 2, 0, 1, Gtk::SHRINK, Gtk::SHRINK);
show_all();
 }
};

int main(int argc, char *argv[])
{
 Gtk::Main Application(argc, argv);

 ExampleWindow window;
 Gtk::Main::run(window);
}

In this example the height of the entry widget  is less than 50. Why?




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]