Emmanuele Bassi d735ac4807 model: Let get_n_columns() return a sane value
If you call get_n_columns() during the instance initialization phase but
before set_name()/set_types() have been called, you'll get a (guint) -1.
This is less than ideal.

If columns haven't been initialized we should just return 0, which was
the intent of the API since the beginning.

Based on a patch by: Bastian Winkler <buz@netbuz.org>

Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
2010-03-17 17:14:08 +00:00
..
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2010-03-10 00:13:37 +00:00
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2009-01-20 18:47:50 +00:00
2010-03-02 11:12:32 +00:00
2010-02-25 12:01:03 +00:00
2010-03-03 10:47:42 +00:00
2010-03-02 11:12:32 +00:00
2010-03-02 11:12:32 +00:00
2009-10-14 11:31:26 +01:00
2010-01-20 00:38:07 +00:00
2009-07-10 11:38:42 +01:00
2010-03-02 11:12:32 +00:00
2010-02-04 21:10:02 +00:00
2010-03-02 11:12:32 +00:00
2010-02-12 14:50:11 +00:00
2010-02-03 14:38:13 +00:00
2010-02-01 10:40:34 +00:00
2010-03-02 11:12:32 +00:00
2010-03-01 12:56:10 +00:00
2010-03-01 15:25:45 +00:00