Gtkmm-forge Digest, Vol 1, Issue 1142



Send Gtkmm-forge mailing list submissions to
	gtkmm-forge lists sourceforge net

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.sourceforge.net/lists/listinfo/gtkmm-forge
or, via email, send a message with subject or body 'help' to
	gtkmm-forge-request lists sourceforge net

You can reach the person managing the list at
	gtkmm-forge-owner lists sourceforge net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Gtkmm-forge digest..."


gtkmm-forge is the mailing list that receives gtkmm bug reports from bugzilla.  A daily digest is sent to gtkmm-main, to encourage people to help fixing the bugs. Do not try to unsubscribe gtkmm-forge from gtkmm-list.


Today's Topics:

   1. [Bug 343741] New: Gdk::Window missing	'create_cairo_context'
      in "drawingarea/simple" tutorial example code
      (gtkmm (bugzilla.gnome.org))


----------------------------------------------------------------------

Message: 1
Date: Sat,  3 Jun 2006 01:11:44 -0400 (EDT)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 343741] New: Gdk::Window missing
	'create_cairo_context' in "drawingarea/simple" tutorial example code
To: gtkmm-forge lists sourceforge net
Message-ID: <bug-343741-5595 http bugzilla gnome org/>
Content-Type: text/plain; charset=utf-8

Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=343741
 gtkmm | general | Ver: 2.6.x

           Summary: Gdk::Window missing 'create_cairo_context' in
                    "drawingarea/simple" tutorial example code
           Product: gtkmm
           Version: 2.6.x
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: general
        AssignedTo: gtkmm-forge lists sourceforge net
        ReportedBy: braney bugzilla4gnome mailnull com
         QAContact: gtkmm-forge lists sourceforge net
                CC: braney bugzilla4gnome mailnull com
     GNOME version: 2.9/2.10
   GNOME milestone: Unspecified


Overview Description:

While trying to compile the example from "Drawing Straight Lines" in Chapter 15
of the gtkmm-2.4 tutorial, the compiler gave me this error message:

myarea.cc: In member function 'virtual bool
MyArea::on_expose_event(GdkEventExpose*)':
myarea.cc:45: error: 'class Gdk::Window' has no member named
'create_cairo_context'

The example in question is presented at 

http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ch15s02.html

and the code comes from

http://www.gtkmm.org/docs/gtkmm-2.4/examples/book/drawingarea/simple

.

Steps to Reproduce:

1) Install latest gtkmm RPMs from Fedora Core 4 "Extras" repository:

libsigc++20.i386 2.0.11-1
libsigc++20-devel.i386 2.0.11-1
glibmm24.i386 2.6.1-1
glibmm24-devel.i386 2.6.1-1
gtkmm24.i386 2.6.2-2
gtkmm24-devel.i386 2.6.2-2
gtkmm24-docs.i386 2.6.2-2
gtkglext.i386 1.0.6-2
gtkglext-devel.i386 1.0.6-2

2) Install latest cairo (1.0.4) and cairomm (0.6.0) from source tarballs.

(I could not find cairomm available as an RPM.)

3) Download example code from
http://www.gtkmm.org/docs/gtkmm-2.4/examples/book/drawingarea/simple/*

(The files are: myarea.h myarea.cc main.cc)

4) Compile with command: 

g++ main.cc myarea.cc -o drawingarea `pkg-config cairo cairomm-1.0 gtkmm-2.4
--cflags --libs`

(The pkg-config part expands to:

-DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/local/include/cairo
-I/usr/local/include/cairomm-1.0 -I/usr/include/gtkmm-2.4
-I/usr/lib/gtkmm-2.4/include -I/usr/include/glibmm-2.4
-I/usr/lib/glibmm-2.4/include -I/usr/include/gdkmm-2.4
-I/usr/lib/gdkmm-2.4/include -I/usr/include/pangomm-1.4
-I/usr/include/atkmm-1.6 -I/usr/include/gtk-2.0 -I/usr/include/sigc++-2.0
-I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include
-I/usr/include/pango-1.0 -I/usr/include/freetype2
-I/usr/include/freetype2/config -I/usr/include/atk-1.0  -L/usr/local/lib
-lcairomm-1.0 -lcairo -lgtkmm-2.4 -lgdkmm-2.4 -latkmm-1.6 -lgtk-x11-2.0
-lpangomm-1.4 -lglibmm-2.4 -lsigc-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0
-lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl
-lglib-2.0

)

5) Notice error.

Actual Results:

Compiler complains:

myarea.cc: In member function 'virtual bool
MyArea::on_expose_event(GdkEventExpose*)':
myarea.cc:45: error: 'class Gdk::Window' has no member named
'create_cairo_context'

(This is the entire output of the compiler.)

Expected Results:

Program compiles and learning continues.

Build Date & Platform:

Platform: Fedora Core 4 (all packages kept up to date)

Compiler: g++ (GCC) 4.0.2 20051125 (Red Hat 4.0.2-8)

Build dates:
libsigc++20.i386 2.0.11-1       Thu 05 May 2005 04:12:26 AM CDT
libsigc++20-devel.i386 2.0.11-1 Thu 05 May 2005 04:12:26 AM CDT
glibmm24.i386 2.6.1-1           Thu 05 May 2005 04:24:00 AM CDT
glibmm24-devel.i386 2.6.1-1     Thu 05 May 2005 04:24:00 AM CDT
gtkmm24.i386 2.6.2-2            Thu 05 May 2005 04:47:40 AM CDT
gtkmm24-devel.i386 2.6.2-2      Thu 05 May 2005 04:47:40 AM CDT
gtkmm24-docs.i386 2.6.2-2       Thu 05 May 2005 04:47:40 AM CDT
gtkglext.i386 1.0.6-2           Thu 07 Apr 2005 01:19:56 PM CDT
gtkglext-devel.i386 1.0.6-2     Thu 07 Apr 2005 01:19:56 PM CDT

Additional Builds and Platforms:

Unknown.

Additional Information:

Before installing cairomm, there were many more errors, as apparently the Cairo
related classes/libraries could not be found.  This error seems to be with
gtkmm or the tutorial example, not with cairo/cairomm.


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



------------------------------



------------------------------

_______________________________________________
Gtkmm-forge mailing list
Gtkmm-forge lists sourceforge net
https://lists.sourceforge.net/lists/listinfo/gtkmm-forge


End of Gtkmm-forge Digest, Vol 1, Issue 1142
********************************************



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]