Hi Hans, Are you saying that GTK2_WIN_POS_CENTER_ALWAYS isn't working the way you expect? I found this note in the GTK documentation:
Note that using Gtk::WIN_POS_CENTER_ALWAYS is almost always a bad idea. It won’t necessarily work well with all window managers or on all windowing systems. Do any of the other positioning hints (such as GTK2_WIN_POS_CENTER or GTK2_WIN_POS_MOUSE work as expected? If they do, then I'd guess that the problem is related to GTK and its interaction with the windowing system. Bill January 25, 2018 5:54 AM, "Hans Schueren" <werb...@hans-schueren.de> wrote: > //How to set the positon of window1 to center ?// > window1->set_position(GTK2_WINDOW(window), GTK2_WIN_POS_CENTER_ALWAYS); > > //window1 is a toplevelWindow// > object window1 = GTK2.Window(GTK2.WINDOW_TOPLEVEL); > > Let us assume not to be programmer. Instead a metalworker. > I only want to cut out a metal sheet as main in the right size and center > position! > The main frame of the project. > > -- > Sent from: http://pike.1058338.n5.nabble.com/Pike-Dev-f4605220.html