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 465961 - mistake on gtkmm tutorail Chapter 15 Page 6
mistake on gtkmm tutorail Chapter 15 Page 6
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: documentation
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtkmm-forge
: 450739 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-08-12 14:29 UTC by Jonathon Jongsma
Modified: 2007-08-31 09:44 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jonathon Jongsma 2007-08-12 14:29:24 UTC
I found a small mistake in your example on the page
http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ch15s06.html

bool myarea::on_expose_event(GdkEventExpose* ev)
{
Glib::RefPtr<Gdk::PixBuf> image =
Gdk::PixBuf::create_from_file("myimage.png");
image->render_to_drawable(get_window(),
get_style()->get_black_gc(),
0, 0, 100, 80, image->get_width(),
image->get_height(), // draw the whole image (from 0,0
to the full width,height) at 100,80 in the window
Gdk::RGB_DITHER_NONE, 0, 0);
return true;
}

The name of the class is Pixbuf not PixBuf. Being used
to CamelCaps, it took mea while to figure out what
went wrong ;-)
Comment 1 Murray Cumming 2007-08-31 09:40:16 UTC
Fixed in svn. Thanks.
Comment 2 Murray Cumming 2007-08-31 09:44:20 UTC
*** Bug 450739 has been marked as a duplicate of this bug. ***