~pimvullers/dexter-contacts/fix-bug-952206

« back to all changes in this revision

Viewing changes to src/contacts-app.vala

  • Committer: Mario Guerriero
  • Date: 2012-02-09 21:26:50 UTC
  • Revision ID: mefrio.g@gmail.com-20120209212650-xspt5cnb7bl62khh
fixed all issues with the action_button label

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
  public Button action_button;
34
34
  private Gtk.MenuItem add_remove_menu_item;
35
35
  
 
36
  public bool editing = false;
 
37
  
36
38
  construct {
37
39
    program_name = "Dexter";
38
40
    exec_name = "dexter";
302
304
  }
303
305
  
304
306
  public void action_add () {
 
307
    editing = true;
305
308
    list_pane.create_new ();
306
309
    action_button.set_label (_("Done"));
307
310
  }
308
311
  
309
312
  public void action_modify () {
 
313
    editing = true;
310
314
    contacts_pane.display_edit (contacts_pane.selected_contact, null);
311
315
    action_button.set_label (_("Done"));
312
316
  }
315
319
    contacts_pane.save_data (); // Ensure all edit data saved
316
320
    contacts_pane.display_contact (contacts_pane.selected_contact);
317
321
    action_button.set_label (_("Edit"));
 
322
    editing = false;
318
323
  }
319
324
  
320
325
  public void action_delete () {