[gnome-contacts] misc: fixed minor warnings and FIXME instructions



commit be9759a720bb6e94f33c423b287e7c805de6e737
Author: Erick Pérez Castellanos <erick red gmail com>
Date:   Wed May 28 23:44:41 2014 -0400

    misc: fixed minor warnings and FIXME instructions

 src/contacts-accounts-list.vala |    3 ++-
 src/contacts-window.ui          |    3 +--
 src/contacts-window.vala        |   11 +++++------
 3 files changed, 8 insertions(+), 9 deletions(-)
---
diff --git a/src/contacts-accounts-list.vala b/src/contacts-accounts-list.vala
index 284b520..6dbe5f2 100644
--- a/src/contacts-accounts-list.vala
+++ b/src/contacts-accounts-list.vala
@@ -90,7 +90,8 @@ public class Contacts.AccountsList : Grid {
 
     if (last_selected_row != null) {
       var last_row_data = (last_selected_row as Bin).get_child () as Grid;
-      last_row_data.get_child_at (2, 0).destroy ();
+      if (last_row_data != null)
+        last_row_data.get_child_at (2, 0).destroy ();
     }
 
     last_selected_row = row;
diff --git a/src/contacts-window.ui b/src/contacts-window.ui
index 5ab843e..9316c72 100644
--- a/src/contacts-window.ui
+++ b/src/contacts-window.ui
@@ -262,7 +262,6 @@
             <property name="valign">center</property>
             <style>
               <class name="text-button"/>
-              <class name="suggested-action"/>
             </style>
           </object>
           <packing>
@@ -334,4 +333,4 @@
       <widget name="setup_accounts_list"/>
     </widgets>
   </object>
-</interface>
\ No newline at end of file
+</interface>
diff --git a/src/contacts-window.vala b/src/contacts-window.vala
index 1ab0cc9..f03ffa2 100644
--- a/src/contacts-window.vala
+++ b/src/contacts-window.vala
@@ -60,11 +60,7 @@ public class Contacts.Window : Gtk.ApplicationWindow {
 
   private ListPane list_pane;
 
-  /* FIXME: remove from public what it is not needed */
-  [GtkChild]
-  public Button add_button;
-
-  public string left_title {
+  private string left_title {
     get {
       return left_toolbar.get_title ();
     }
@@ -73,7 +69,7 @@ public class Contacts.Window : Gtk.ApplicationWindow {
     }
   }
 
-  public string right_title {
+  private string right_title {
     get {
       return right_toolbar.get_title ();
     }
@@ -82,6 +78,9 @@ public class Contacts.Window : Gtk.ApplicationWindow {
     }
   }
 
+  [GtkChild]
+  public Button add_button;
+
   public Store store {
     get; construct set;
   }


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