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 577668 - Gtk2::Gdk::Drawable::draw_segments() allow no segments
Gtk2::Gdk::Drawable::draw_segments() allow no segments
Status: RESOLVED FIXED
Product: gnome-perl
Classification: Bindings
Component: Gtk2
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk2-perl-bugs
gtk2-perl-bugs
Depends on:
Blocks:
 
 
Reported: 2009-04-01 23:44 UTC by Kevin Ryde
Modified: 2009-07-19 12:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
let draw_segments() take no segments (1.91 KB, patch)
2009-04-01 23:45 UTC, Kevin Ryde
committed Details | Review

Description Kevin Ryde 2009-04-01 23:44:14 UTC
It'd be good if $drawable->draw_segments accepted an empty list of segments to draw.  This is helpful if you make the list with a map or as a built array and might end up with nothing to draw.

The code can already do this actually, if a first quad is not made mandatory by the xs arglist, per change below.
Comment 1 Kevin Ryde 2009-04-01 23:45:43 UTC
Created attachment 131878 [details] [review]
let draw_segments() take no segments
Comment 2 Torsten Schoenfeld 2009-07-19 12:51:29 UTC
Committed: <http://git.gnome.org/cgit/perl-Gtk2/commit/?id=650e0f49>.  Thanks!