Connect the details button with the details pane
authorJavier Jardón <javier.jardon@codethink.co.uk>
Wed, 13 Apr 2011 15:29:30 +0000 (16:29 +0100)
committerJavier Jardón <javier.jardon@codethink.co.uk>
Wed, 13 Apr 2011 15:29:30 +0000 (16:29 +0100)
src/moonshot-window.vala

index 9e7c9d4..2e4b297 100644 (file)
@@ -54,12 +54,18 @@ class MainWindow : Window
         return false;
     }
 
+    private void details_button_clicked_cb ()
+    {
+       this.vbox_rigth.set_visible (!vbox_rigth.get_visible ());
+    }
+
     private void add_identity (AddIdentityDialog dialog)
     {
         var id_card_widget = new IdCardWidget ();
 
         this.custom_vbox.pack_start (id_card_widget, false, false);
 
+        id_card_widget.details_button.clicked.connect (details_button_clicked_cb);
     }
 
     private void add_identity_cb ()