LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-21-2008, 05:34 AM   #1
swift2008
Member
 
Registered: Jul 2008
Posts: 78

Rep: Reputation: 15
how to use animation pixbuf ".gif" in gtk


hi all
i would like to put an animation image in the gtk window.
is it possible.
can you give me an example program for this.
 
Old 08-21-2008, 12:28 PM   #2
redoubtable
LQ Newbie
 
Registered: Aug 2008
Posts: 1

Rep: Reputation: 0
This would do the work:

Code:
GdkPixbufAnimation * animation;
GtkWidget * image;

(...)

animation = gdk_pixbuf_animation_new_from_file ("loading.gif", NULL);
gtk_image_set_from_animation (GTK_IMAGE(image), animation);

(...)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: DreamWorks Animation "Shrek the Third": Linux Feeds an Ogre LXer Syndicated Linux News 0 06-06-2007 08:16 AM
LXer: DreamWorks Animation"Shrek the Third": Linux Feeds an Ogre LXer Syndicated Linux News 0 06-06-2007 07:31 AM
The problem about "cairo" in installing of "GTK" :( zhuqlfeixia Linux - Hardware 1 01-28-2006 03:12 PM
problem "make"ing gtk+ "/usr/bin/env: perl -w" caid Linux - Newbie 8 07-29-2005 04:51 AM
"GIF-LIB error: Wrong record type detected" Megamieuwsel Linux - General 7 04-29-2004 04:38 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration