Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
gdk-pixbuf
gdk-pixbuf
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 73
    • Issues 73
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 7
    • Merge Requests 7
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • GNOME
  • gdk-pixbufgdk-pixbuf
  • Issues
  • #9

Closed
Open
Opened Sep 28, 2006 by bugzilla-migration@bugzilla-migrationReporter

Provide more info for animation players

Submitted by Francesco Montorsi

Link to original bug (#358109)

Description

For a number of different uses of GdkPixbufAnimation API, it's fundamental to know the number of frames available inside an animation object and also the frame associated with an animation iter.

The attached patch adds the following functions:

gint gdk_pixbuf_animation_get_frame_count(GdkPixbufAnimation *animation);
gint gdk_pixbuf_animation_iter_get_current_frame(GdkPixbufAnimationIter *iter);

SOME NOTES ABOUT THE PATCH:

  1. I've seen that sometimes "int" is used and other times "gint" is used. I've used "int" but maybe it would be more correct to use "gint" ?
  2. inside gdk_pixbuf_animation_iter_get_current_frame() the g_return_val_if_fail returns -1 in case it fails. Maybe it should return zero?
  3. I've not used tabs in my patch, sorry; however I think there should be some tool to "tabify" the patch before applying it, isn't it ?

Version: git master

Edited Jun 29, 2018 by Emmanuele Bassi
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: GNOME/gdk-pixbuf#9