[gnome-contacts/new-design] Add support for is_modified checks on TypeCombo



commit 87c750089daba6d3231ec3514fd9fa013a500494
Author: Alexander Larsson <alexl redhat com>
Date:   Tue Dec 13 22:27:27 2011 +0100

    Add support for is_modified checks on TypeCombo

 src/contacts-types.vala |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/contacts-types.vala b/src/contacts-types.vala
index e886f23..5ce8d75 100644
--- a/src/contacts-types.vala
+++ b/src/contacts-types.vala
@@ -334,6 +334,7 @@ public class Contacts.TypeCombo : Grid  {
   TreeIter last_active;
   bool custom_mode;
   bool in_manual_change;
+  public bool modified;
 
   public signal void changed ();
 
@@ -419,6 +420,7 @@ public class Contacts.TypeCombo : Grid  {
     if (in_manual_change)
       return;
 
+    modified = true;
     TreeIter iter;
     if (combo.get_active_iter (out iter)) {
       if (type_set.is_custom (iter)) {
@@ -440,6 +442,7 @@ public class Contacts.TypeCombo : Grid  {
     last_active = iter;
     combo.set_active_iter (iter);
     in_manual_change = false;
+    modified = false;
   }
 
   public void update_details (AbstractFieldDetails details) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]