Gtkmm-forge digest, Vol 1 #991 - 1 msg



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-admin 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 320502] New: Method "Gnome::Canvas::Bpath::set_bpath" seems partially broken... (gnomemm (bugzilla.gnome.org))

--__--__--

Message: 1
From: "gnomemm (bugzilla.gnome.org)" <bugzilla-daemon bugzilla gnome org>
To: gtkmm-forge lists sourceforge net
Date: Wed,  2 Nov 2005 08:11:39 -0500 (EST)
Subject: [gtkmm bugzilla] [Bug 320502] New: Method "Gnome::Canvas::Bpath::set_bpath" seems partially broken...

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=3D320502
 gnomemm | libgnomecanvasmm | Ver: 2.6

           Summary: Method "Gnome::Canvas::Bpath::set_bpath" seems partia=
lly
                    broken...
           Product: gnomemm
           Version: 2.6
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: libgnomecanvasmm
        AssignedTo: gtkmm-forge lists sourceforge net
        ReportedBy: pau duran gmail com
                CC: all-bugs bugzilla gnome org


Please describe the problem:
When recompiling code with the new version of the library (which worked w=
ith the
last version), a message appears every time the program does a "set_bpath=
":

(main:XXXX): GLib-GObject-WARNING **: unable to set property `bpath' of t=
ype
`GnomeCanvasPathDef' from value of type `gpointer'

Also, due to this, no output is drawn for the objects involved... ;)

Steps to reproduce:
Supposedly simply using "set_bpath" in a Bpath object from a parameter of=
 type:

Glib::RefPtr<Gnome::Canvas::PathDef>

The piece of code in my case is:

Glib::RefPtr<Gnome::Canvas::PathDef> pathdef =3D Gnome::Canvas::PathDef::=
create();
...
pathdef->moveto(p.x,p.y);
for (uint n=3D0;n<=3DSAMPLES;n++) {
  ...
  pathdef->lineto(p.x,p.y);
}
_segments[k]->set_bpath(pathdef);


Actual results:


Expected results:
Nothing is said, and the objects are drawn

Does this happen every time?
Yes.

Other information:
The issue can be resolved (in quite a dirty way, actually) putting code l=
ike
this, which actually uses directly the C API of libgnomecanvas:

GnomeCanvasPathDef* pathdef =3D gnome_canvas_path_def_new();
...
gnome_canvas_path_def_moveto(pathdef, p.x, p.y);
for (uint n=3D0;n<=3DSAMPLES;n++) {
  ...
  gnome_canvas_path_def_lineto(pathdef, p.x, p.y);
}
...
GnomeCanvasBpath* c_obj =3D _segments[k]->gobj();
gnome_canvas_item_set(GNOME_CANVAS_ITEM(c_obj), "bpath", pathdef, NULL);


I took this code from om-synth (CVS), since the matter arose in a compila=
tion of
their code (found searching google: "unable bpath GnomeCanvasPathDef").

------- You are receiving this mail because: -------
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



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