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 151863 - Gtk::Screen::get_default() needs to take a reference
Gtk::Screen::get_default() needs to take a reference
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: general
2.4
Other All
: Normal major
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2004-09-04 22:19 UTC by Jonathan Brandmeyer
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to ChangeLog and gdk/src/screen.hg (1.25 KB, patch)
2004-09-04 22:20 UTC, Jonathan Brandmeyer
none Details | Review
Patch to ChangeLog and gdk/src/screen.hg (1.23 KB, patch)
2004-09-04 22:30 UTC, Jonathan Brandmeyer
none Details | Review

Description Jonathan Brandmeyer 2004-09-04 22:19:01 UTC
Since gdk_screen_get_default() returns a reference to a global object (or NULL),
the owning RefPtr must have its reference count must be incremented at
construction time.  

This bug is similar to #147592.
Comment 1 Jonathan Brandmeyer 2004-09-04 22:20:51 UTC
Created attachment 31271 [details] [review]
Patch to ChangeLog and gdk/src/screen.hg

This patch is against CVS HEAD
Comment 2 Jonathan Brandmeyer 2004-09-04 22:30:49 UTC
Created attachment 31273 [details] [review]
Patch to ChangeLog and gdk/src/screen.hg

This patch is against the gtkmm-2-4 branch.
Comment 3 Murray Cumming 2004-09-13 12:21:23 UTC
This looks good. Please commit to all branches, if you have cvs write access.
Thanks.
Comment 4 Jonathan Brandmeyer 2004-09-13 23:20:36 UTC
To the best of my knowledge, I do not have write access.
Comment 5 Murray Cumming 2004-09-19 12:01:26 UTC
Committed to 2.4 branch.
Comment 6 Murray Cumming 2004-10-09 19:47:59 UTC
Committed to HEAD.