[gnome-contacts/new-design] Don't take string for pack_text (not used)



commit 23fa13301f92cc2ee5323d459104eac0d8b6a046
Author: Alexander Larsson <alexl redhat com>
Date:   Tue Dec 13 12:29:21 2011 +0100

    Don't take string for pack_text (not used)

 src/contacts-contact-pane.vala |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index 5a1b205..1416a1c 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -476,8 +476,8 @@ public class Contacts.FieldRow : Contacts.Row {
     pack (l);
   }
 
-  public Label pack_text (string s = "", bool wrap = false) {
-    var l = new Label (s);
+  public Label pack_text (bool wrap = false) {
+    var l = new Label ("");
     if (wrap) {
       l.set_line_wrap (true);
       l.set_line_wrap_mode (Pango.WrapMode.WORD_CHAR);
@@ -850,7 +850,7 @@ class Contacts.NoteFieldRow : DataFieldRow {
     base (field_set);
     this.details = details;
 
-    text_label = this.pack_text ("", true);
+    text_label = this.pack_text (true);
   }
 
   public override void update () {
@@ -887,7 +887,7 @@ class Contacts.AddressFieldRow : DataFieldRow {
     this.details = details;
     this.pack_text_detail (out text_label[0], out detail_label);
     for (int i = 1; i < text_label.length; i++) {
-      text_label[i] = this.pack_text ("", true);
+      text_label[i] = this.pack_text (true);
       text_label[i].set_no_show_all (true);
     }
   }



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