~ubuntu-branches/debian/sid/evolution/sid

« back to all changes in this revision

Viewing changes to addressbook/gui/widgets/eab-popup.c

  • Committer: Bazaar Package Importer
  • Author(s): Yves-Alexis Perez
  • Date: 2009-12-15 08:55:42 UTC
  • mfrom: (47.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20091215085542-93ma0xjjz3xjj4tz
Tags: 2.28.2-1
* New upstream release.
* debian/patches:
  - 02_empty-line_signature dropped, included upstream.
  - 03_GNOME-Bug-599792-Anjal-composer-s-Send-button-doesn-t-work too.
  - 04_GNOME-Bug-596027-In-Anjal-although-invalid-mail-address-wa.patch too. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
217
217
        guint32 mask = ~0;
218
218
        const gchar *source_uri;
219
219
        ESource *source;
 
220
        const gchar *delete = NULL;
220
221
 
221
222
        /* TODO: this is duplicated for calendar and tasks too */
222
223
 
235
236
        else
236
237
                mask &= ~EAB_POPUP_SOURCE_USER;
237
238
 
 
239
        
 
240
        /*check for delete_status property here*/
 
241
        delete = e_source_get_property (source, "delete");
 
242
 
 
243
        if (delete && strcmp (delete,"no") == 0) {
 
244
                /*set the menu item to non deletable */
 
245
                mask &= ~EAB_POPUP_SOURCE_NO_DELETE;
 
246
        }
 
247
        else
 
248
                mask &= ~EAB_POPUP_SOURCE_DELETE;
 
249
 
238
250
        t->target.mask = mask;
239
251
 
240
252
        return t;