~ubuntu-branches/ubuntu/feisty/gossip-telepathy/feisty

« back to all changes in this revision

Viewing changes to src/gossip-vcard-dialog.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2006-12-12 18:09:55 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20061212180955-bm4b8t920xw53cqq
Tags: 0.21~cvs20061212-0ubuntu1
* New CVS checkout:
  - fix a couple of crashers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
432
432
 
433
433
        avatar = gossip_vcard_get_avatar (vcard);
434
434
 
435
 
        gossip_image_chooser_set_image_data (GOSSIP_IMAGE_CHOOSER (dialog->avatar_chooser),
436
 
                                             (gchar*) avatar->data, avatar->len);
437
 
 
 
435
        if (avatar) {
 
436
                gossip_image_chooser_set_image_data (GOSSIP_IMAGE_CHOOSER (dialog->avatar_chooser),
 
437
                                                     (gchar*) avatar->data, avatar->len);
 
438
        } else {
 
439
                gossip_image_chooser_set_image_data (GOSSIP_IMAGE_CHOOSER (dialog->avatar_chooser),
 
440
                                                     NULL, 0);
 
441
        }
 
442
        
438
443
        /* Save position incase the next lookup fails. */
439
444
        combo_box = GTK_COMBO_BOX (dialog->account_chooser);
440
445
        dialog->last_account_selected = gtk_combo_box_get_active (combo_box);