GtkImage with animation: animation stops when all frames are shown

2007-06-01 Thread Alexander Semyonov
Hello. I create GtkImage with animation: GdkPixbufSimpleAnim *anim = gdk_pixbuf_simple_anim_new (w, h, RATE); gdk_pixbuf_simple_anim_add_frame (anim, pixbuf1); gdk_pixbuf_simple_anim_add_frame (anim, pixbuf2); gdk_pixbuf_simple_anim_add_frame (anim, pixbuf3); ... GtkWidget *image =

Virtual list boxes (using GtkTreeView or other)

2007-06-01 Thread Nuno Lucas
Hello, I have been googling for some form of virtual list boxes, but can't seem to find any reference. How people do with very large list boxes? I was hopping I could have some form of just seting up the column headers and say I have 1 rows and let the widget ask me for the data when it

Re: Virtual list boxes (using GtkTreeView or other)

2007-06-01 Thread Andreas Stricker
Nuno Lucas schrieb: How people do with very large list boxes? I was hopping I could have some form of just seting up the column headers and say I have 1 rows and let the widget ask me for the data when it needs it. It seems a bit heavy to add 1 rows one at a time, as it seems I'm

Re: Virtual list boxes (using GtkTreeView or other)

2007-06-01 Thread Miroslav Rajcic
-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list __ NOD32 2304 (20070601) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com ___ gtk-app-devel-list mailing list gtk-app

gdk_pixbuf_save question

2007-06-01 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Is there a way to add a creator tag when saving a jpeg image using gdk_pixbuf_save. For example I would like to put the name of my program in the jpeg image so that I know what created that image. Even setting some if the EXIF data would be ok. Is

Re: gdk_pixbuf_save question

2007-06-01 Thread Dr. Michael J. Chudobiak
Kevin DeKorte wrote: Is there a way to add a creator tag when saving a jpeg image using gdk_pixbuf_save. For example I would like to put the name of my program in the jpeg image so that I know what created that image. Even setting some if the EXIF data would be ok. Is there any way to do

cross compiling and ld auto-import errors

2007-06-01 Thread Bethany Seeger
Hi, I'm cross compiling a linux application to work on Windows using i586-mingw32msvc-gcc. The application is using Gtk and Gdk calls. I'm getting linking errors about glib that I don't know how to resolve. Here's the compile time output. i586-mingw32msvc-gcc demo.o dthread.o

Re: Virtual list boxes (using GtkTreeView or other)

2007-06-01 Thread Nuno Lucas
On 6/1/07, Andreas Stricker [EMAIL PROTECTED] wrote: Nuno Lucas schrieb: How people do with very large list boxes? I was hopping I could have some form of just seting up the column headers and say I have 1 rows and let the widget ask me for the data when it needs it. It seems a bit

Re: Virtual list boxes (using GtkTreeView or other)

2007-06-01 Thread Yeti
On Fri, Jun 01, 2007 at 03:47:36PM +0100, Nuno Lucas wrote: You have to derive your own GtkTreeModel, if the predefined GtkListStore or GtkTreeStore are not sufficient (They simply stores all data at once). I may be missing something, but I don't see a way to set the number of virtual

Re: Virtual list boxes (using GtkTreeView or other)

2007-06-01 Thread Nuno Lucas
On 6/1/07, David Nečas (Yeti) [EMAIL PROTECTED] wrote: On Fri, Jun 01, 2007 at 03:47:36PM +0100, Nuno Lucas wrote: You have to derive your own GtkTreeModel, if the predefined GtkListStore or GtkTreeStore are not sufficient (They simply stores all data at once). I may be missing

Re: cross compiling and ld auto-import errors

2007-06-01 Thread Bethany Seeger
Never mind, I solved it. There were a few g_mutex_lock/unlock calls in the code and that seemed to be the problem. I replaced them with gdk_threads_enter() and gdk_threads_leave() (after ensuring that g_threads_init() and gdk_threads_init() were both called) and the linker was much happier.

Re: Clear A Pixmap

2007-06-01 Thread nahuel9728
Thaxs Yeti for the answer but Sorry I'm not able to do it. I explain a little bit what im doing and i would like to do: main(){ mem_map=gtk_drawing_area_new(); gtk_signal_connect (GTK_OBJECT (mem_map), expose_event,(GtkSignalFunc) expose_event, NULL); gtk_signal_connect

Window resizing

2007-06-01 Thread John Coppens
Hi all... I need a hand. In a program I have a small toolbar separate from the main window. The toolbar is a GtkToolbar inside a GtkWindow. The problem is that I cannot seem to make the GtkWindow resize to adjust to the toolbar size (I want to switch vertical/horizontal). Also, I need to adjust

Re: Window resizing

2007-06-01 Thread John Coppens
On Fri, 1 Jun 2007 22:13:47 -0300 John Coppens [EMAIL PROTECTED] wrote: Hi all... I need a hand. In a program I have a small toolbar separate from the main window. The toolbar is a GtkToolbar inside a GtkWindow. The problem is that I cannot seem to make the GtkWindow resize to adjust to

gtk+ about dialog doesn't close

2007-06-01 Thread John Zoidberg
Hi, I have a problem with the gtk about dialog: When I click on the Close button it doesn't close. There seems to be no event connected to the close button clicked signal. And I can't add one either in Glade (v2 as well as v3). What am I supposed to add to the code so that it works?

Re: gtk+ about dialog doesn't close

2007-06-01 Thread Samuel Cormier-Iijima
Since GtkAboutDialog is a subclass of GtkDialog, it is intended to be used as a modal dialog. Hence, you would do something like: gtk_dialog_run(about_dialog); gtk_widget_hide(about_dialog); Also, see http://developer.gnome.org/doc/API/2.0/gtk/GtkAboutDialog.html#gtk-show-about-dialog Samuel