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 148012 - gtk_style_new() not wrapped
gtk_style_new() not wrapped
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: general
2.4
Other Linux
: Normal enhancement
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2004-07-20 17:16 UTC by Jonathan Brandmeyer
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
create.patch (1.97 KB, patch)
2004-10-09 19:54 UTC, Murray Cumming
none Details | Review

Description Jonathan Brandmeyer 2004-07-20 17:16:58 UTC
The C function gtk_style_new() returns a GtkStyle* that has been initialized
with the current style.  Please wrap it with a function simmilar to:

namespace Gtk {
class Style
{
  static Glib::RefPtr<Gtk::Style> 
  create()
  {
    GtkStyle* ret = gtk_style_new();
    return Glib::wrap(ret);
  }
};
}

Thanks.
Comment 1 Murray Cumming 2004-07-21 06:45:36 UTC
A patch would be welcome. It probably just needs _CTOR_DEFAULT in the .hg file.
Comment 2 Murray Cumming 2004-10-09 19:54:30 UTC
Created attachment 32432 [details] [review]
create.patch
Comment 3 Murray Cumming 2004-10-09 19:55:12 UTC
Done in HEAD. The patch is attached, to show how it's done.