[gnome-contacts/wip/nielsdg/new-account-no-linked-accounts-btn] ContactEditor: Don't show the "Linked Accounts" button



commit 60e8e80d842ab6683e055f621d23457c1e7424fb
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Tue Feb 26 18:23:16 2019 +0100

    ContactEditor: Don't show the "Linked Accounts" button
    
    By executing `show_all()` on the whole ContactEditor, we show elements
    again that we explicitly set to be invisible -for example the "Linked
    Accounts" button which should not be shown for newly created contacts.
    
    We should avoid show_all() as much as possible, but to refrain from
    having large changes this late in the schedule, let's just call the
    `show_all()` on the container grid, which does not have elements that
    shouldn't be shown.
    
    Reported in https://gitlab.gnome.org/GNOME/gnome-contacts/issues/124

 src/contacts-contact-editor.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/contacts-contact-editor.vala b/src/contacts-contact-editor.vala
index dc5ad4a..3398bf0 100644
--- a/src/contacts-contact-editor.vala
+++ b/src/contacts-contact-editor.vala
@@ -142,7 +142,7 @@ public class Contacts.ContactEditor : ContactForm {
     else
       fill_in_empty ();
 
-    show_all ();
+    this.container_grid.show_all ();
   }
 
   private void fill_in_contact () {


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