~drbob/+junk/diary-main

« back to all changes in this revision

Viewing changes to src/main-window.c

  • Committer: Philip Withnall
  • Date: 2008-03-27 16:46:24 UTC
  • Revision ID: philip@tecnocode.co.uk-20080327164624-2c1ucigxyprlu1y2
Removed Picasa link type --- use URIs instead.
Made the link list more resilient to bad data.

Show diffs side-by-side

added added

removed removed

Lines of Context:
331
331
        i = 0;
332
332
        while (links[i] != NULL) {
333
333
                link_type = diary_link_get_type (links[i]->type);
334
 
                gtk_list_store_append (diary->links_store, &iter);
335
 
                gtk_list_store_set (diary->links_store, &iter,
336
 
                                    0, links[i]->type,
337
 
                                    1, links[i]->value,
338
 
                                    2, links[i]->value2,
339
 
                                    3, link_type->icon_name,
340
 
                                    -1);
 
334
 
 
335
                if (link_type != NULL) {
 
336
                        gtk_list_store_append (diary->links_store, &iter);
 
337
                        gtk_list_store_set (diary->links_store, &iter,
 
338
                                            0, links[i]->type,
 
339
                                            1, links[i]->value,
 
340
                                            2, links[i]->value2,
 
341
                                            3, link_type->icon_name,
 
342
                                            -1);
 
343
                }
341
344
 
342
345
                g_free (links[i]->type);
343
346
                g_free (links[i]->value);