After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 94169 - Gdk-API/Docs lacks methods screen_*()
Gdk-API/Docs lacks methods screen_*()
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: general
2.0
Other Linux
: Normal minor
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2002-09-25 12:32 UTC by Patrick L. Polzer
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Patrick L. Polzer 2002-09-25 12:32:47 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
Comment 1 Murray Cumming 2002-09-27 07:30:23 UTC
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.
Comment 2 Murray Cumming 2002-10-02 09:58:15 UTC
What screen_width and screen_height functions do you mean in GTK+ or
GDK? Please give us the full names.
Comment 3 Patrick L. Polzer 2002-10-02 11:40:47 UTC
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.
Comment 4 Murray Cumming 2002-10-02 19:15:30 UTC
Functions added, and documentation corrected.
Comment 5 Patrick L. Polzer 2002-10-03 06:27:06 UTC
Just as a matter of interest, as all my attempts in providing a 
patch were futile - which files were involved?
Comment 6 Murray Cumming 2002-10-04 19:10:29 UTC
I created new files - gdk/gdkmm/general.[h|cc].