I am creating a GTK Window which, for various reasons, I wish to make non-resizable by the user. But invoking the set_resizable method on the window causes it to display with a size of 1 pixel by 1 pixel. (jn the code below, the window displays the expected size if the set-resizable line is commented out. It makes no difference which order the resize and set-resizable are invoked.) the Is there anything else that needs to be done?
Here is the code...
#include <iostream>
#include "myarea.hpp"
#include <gtkmm/main.h>
#include <gtkmm/window.h>
int main(int argc, char** argv)
{
Gtk::Main kit(argc, argv);
Gtk::Window win;
win.set_title("DrawingArea");
win.resize (600, 600);
//win.set_resizable (false);
MyArea area;
win.add(area);
area.show();
Gtk::Main::run(win);
return 0;
}