GNOME Bugzilla – Bug 94169
Gdk-API/Docs lacks methods screen_*()
Last modified: 2004-12-22 21:47:04 UTC
The Gdk-Wrapper lacks the methods screen_width() and screen_height() - they have to be used as plain GTK-Functions. Sorry I cannot provide a patch, but I know nothing about GTKMMs source structure and this thing should be easy to fix anyway. And a doc-thing related to this: The Gtk::Window class reference says in the move()-part (http://gtkmm.sourceforge.net/gtkmm2/reference/html/classGtk_1_1Window.html#a78): "So, to place a window in the bottom right corner you would first set gravity to south east, then write: gtk_window_move (window, gdk_screen_width() - window_width, gdk_screen_height() - window_height)." - Same thing as above, but even worse with "gtk_window_move(window ...)" - this should be: "this->move(...)" or simply "move(...)" Thank you for your time, Leslie
I would like you to try to provide a patch. That would make it more likely that this gets fixed. You probably need to edit the .hg and .ccg files.
What screen_width and screen_height functions do you mean in GTK+ or GDK? Please give us the full names.
As mentioned in the subject, these function belong to the GDK-stuff. Explicitly: gdk_screen_width() and gdk_screen_height() - I use the return values to center my application window.
Functions added, and documentation corrected.
Just as a matter of interest, as all my attempts in providing a patch were futile - which files were involved?
I created new files - gdk/gdkmm/general.[h|cc].