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 87560 - Wrong return type for Gtk::Style::create()
Wrong return type for Gtk::Style::create()
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: general
2.0
Other All
: Normal major
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2002-07-07 10:51 UTC by Morten Brix Pedersen
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
cellrendererdocs.patch (3.46 KB, patch)
2002-07-07 11:26 UTC, Murray Cumming
none Details | Review

Description Morten Brix Pedersen 2002-07-07 10:51:07 UTC
Gtk::Style::create() now returns a Glib::RefPtr<Glib::Object> (inherited
member from Glib::Object).

This looks like a bug, it should actually return Glib::RefPtr<Gtk::Style>.
Comment 1 Murray Cumming 2002-07-07 11:26:57 UTC
Created attachment 9689 [details] [review]
cellrendererdocs.patch
Comment 2 Morten Brix Pedersen 2002-07-07 11:37:34 UTC
Murray, wrong bug :-)
Comment 3 Murray Cumming 2002-07-07 12:20:18 UTC
But the correct person at least.

I don't think that you are meant to instantiate a Gtk::Style object
directly anyway. You probably get it from a widget.

2002-07-07  Murray Cumming  <murrayc@usa.net>

	* Removed Glib::Object::create(). It was meant as an example for
	derived classes, but it is inherited publically so it just
	confuses the API of derived classes, such as Gtk::Style, that have
	no create() method, because they can not be instantiated. Problem
	found by Morten Brix Pedersen.