Re: what do i get if a cell is empty?

2010-04-24 Thread Arthur 1989
Thank you so much. On Sun, Apr 25, 2010 at 1:14 AM, Tadej Borovšak wrote: > Hello. > > You get NULL pointer. To test for it, you should do something like: > > if( s == NULL ) > { >/* Handle empty string */ > } > > Tadej > > -- > Tadej Borovšak > tadeboro.blogspot.com > tadeb...@gmail.com > t

Re: what do i get if a cell is empty?

2010-04-24 Thread Tadej Borovšak
Hello. You get NULL pointer. To test for it, you should do something like: if( s == NULL ) { /* Handle empty string */ } Tadej -- Tadej Borovšak tadeboro.blogspot.com tadeb...@gmail.com tadej.borov...@gmail.com ___ gtk-app-devel-list mailing list

what do i get if a cell is empty?

2010-04-24 Thread Arthur 1989
Hi, I met this question: I use gtk_tree_model_get(model, &iter, i, &s, -1) to get a cell's content. but when the cell is empty,i am not sure what i really get. i print s out with g_print ("s = %s\n", s) , then i get "s = (null)",so i want to test what's in s, i run this, if (s == EXP) print("s ==

RE: Default values for spin buttons in Glade

2010-04-24 Thread dfg dfg
Thanks for your reply Nicola. It's very helpful :) I would rather not edit the glade file itself, incase it introduces compatibility problems with glade itself. Is there a way to set the default value without an adjustment? The only other solution I can think of is to create the adjustme

Re: Default values for spin buttons in Glade

2010-04-24 Thread Nicola Fontana
Il giorno Sat, 24 Apr 2010 06:26:03 + dfg dfg ha scritto: > Can someone tell me how to set up a default value for a spin button in Glade? The adjustment generated by glade has the following properties: ... ... ... I manually moved the "value" property *after* the limits and the default val