Cell Renderer Combo Callback

2007-09-12 Thread dhk
I have a combo render in a treeview and I can't get the callback to set the value once it's selected. I want the combo to default to "Stock" but be able to be changed to any of the other values in the itemtype array. Below is the way the item type combo is being created and added to the tree view

Re: Cell Renderer Combo Callback

2007-09-12 Thread Damien Caliste
Hello, Le 12/09/2007, dhk <[EMAIL PROTECTED]> a écrit : > I have a combo render in a treeview and I can't get the callback to > set the value once it's selected. I didn't test the code you gave, so can't be sure, but I suggest to remove the « "text", "Stock", » property from the combo rendrer. >

Re: Cell Renderer Combo Callback

2007-09-12 Thread dhk
Thanks, but it still doesn't work. I think the problem is in getting the iter for the list store which is used in the combo render or it might be working and just not getting rendered to be visible. I'm fairly sure the problem is in the callback. On Wed, 2007-09-12 at 13:47 +0200, Damien Caliste

Animation with GTK+

2007-09-12 Thread Prokopenko, Konstantyn
Hello, I'm totally new to the GUI application development in Linux X11. I was mostly involved in embedded non-graphical development. Now I need to create GUI interface application using GTK+. Could you advise me the best way to create animation of a rotating object in GTK window? This object is g

Re: Cell Renderer Combo Callback

2007-09-12 Thread Damien Caliste
Hello, Le 12/09/2007, dhk <[EMAIL PROTECTED]> a écrit : > Thanks, but it still doesn't work. I think the problem is in getting > the iter for the list store which is used in the combo render or it > might be working and just not getting rendered to be visible. I'm > fairly sure the problem is in

Re: Animation with GTK+

2007-09-12 Thread Lance Dillon
If you have an animated gif, you can use GtkImage. If you need to actually sync it with something external, you can use GdkPixbufAnimation and GdkPixbufAnimationIter: http://library.gnome.org/devel/gtk/unstable/GtkImage.html http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-animatio

Changing a previously created GtkImage

2007-09-12 Thread tsaud
I have created an image from a file using image1 = gtk_image_new_from_file("pictures/Empty.gif"); gtk_widget_set_name (image1, "image1"); and displalyed it using: gtk_widget_show(image1); gtk_box_pack_start(GTK_BOX (hbox1), image1, TRUE, TRUE, 0); and that works fine. The image is correctly di

Re: Changing a previously created GtkImage

2007-09-12 Thread Yeti
On Wed, Sep 12, 2007 at 01:52:43PM -0700, tsaud wrote: > > I have created an image from a file using > image1 = gtk_image_new_from_file("pictures/Empty.gif"); > gtk_widget_set_name (image1, "image1"); > > and displalyed it using: > gtk_widget_show(image1); > gtk_box_pack_start(GTK_BOX (hbox1), i

Re: Cell Renderer Combo Callback

2007-09-12 Thread dhk
O'm going to have to try another approach. I know this isn't wrong, but the combo doesn't work correctly. I'm going to stuff this in a smaller program and try to narrow down what's going on. Thanks, --dhk On Wed, 2007-09-12 at 15:51 +0200, Damien Caliste wrote: > Hello, > > Le 12/09/2007, dhk