[gtk-server] Re: Automatic numerical sorting in ListStores

  • From: Erik Winkels <euqirea@xxxxxxxxx>
  • To: gtk-server@xxxxxxxxxxxxx
  • Date: Thu, 4 Sep 2008 09:48:45 +0200

Hi Peter,

> Date: Tue, 02 Sep 2008 17:14:43 +0200
> From: Peter van Eerten <administrator@xxxxxxxxxxxxxx>
> Subject: [gtk-server] Re: Automatic numerical sorting in ListStores
> Yes, you have to keep in mind that every function you use must be  
> carefully defined in advance. By default, the GTK-server defines  
> 'gtk_list_store_set' as follows:
> FUNCTION_NAME = gtk_list_store_set, NONE, NONE, 5, WIDGET, WIDGET,  
> Now, if you want to set an INTEGER value in your list, first redefine  
> this function as follows:
> gtk_server_redefine (gtk_list_store_set NONE NONE 5 WIDGET WIDGET INT INT INT)

That did the trick, thanks.

It's silly because I had used gtk_server_redefine before for other things
and I now notice it even says to use it in the config file for

I blame it on old age.

Anyway, thanks again.  Everything's working fine now.


Other related posts: