[gtkmm] fixed positioning of a Gtk::Window



Title: fixed positioning of a Gtk::Window

Hello,

Does anybody know how this works?

I want to set a default position for the Main window of my program to the left top Corner of the screen. I tried this:

class my_window: public Gtk::window{
  public:
    my_window()
}

my_window::my_window()::Gtk::Window(GTH_WINDOW_TOPLEVEL)
{
   gdk_window_move(get_window(), x, y)
}

The Window is placed anywhere on the screen



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