- var image = new Image.from_pixbuf (pixbuf);
-
- var issuer = Markup.printf_escaped ("<b>%s</b>", this.id_card.issuer);
- var services = Markup.printf_escaped ("<i>%s</i>", "Send Email, Connect to jabber");
- var text = issuer + "\n" + services;
-
- var id_data_label = new Label (null);
- id_data_label.set_markup (text);
-
- this.table = new Table (1, 2, false);
- table.attach_defaults (image, 0, 1, 0, 1);
- table.attach_defaults (id_data_label, 1, 2, 0, 1);
-
- this.delete_button = new Button.with_label ("Delete");
- this.details_button = new Button.with_label ("View details");
- this.send_button = new Button.with_label ("Send");
- this.hbutton_box = new HButtonBox ();
- hbutton_box.pack_end (delete_button);
- hbutton_box.pack_end (details_button);
- hbutton_box.pack_end (send_button);
-
- this.main_vbox = new VBox (false, 12);
- main_vbox.pack_start (table, true, true, 0);
- main_vbox.pack_start (hbutton_box, false, false, 0);
- main_vbox.set_border_width (12);
-
- event_box = new EventBox ();
- event_box.add (main_vbox);
- event_box.button_press_event.connect (button_press_cb);
- this.pack_start (event_box, true, true);
-
- this.show_all ();
- this.hbutton_box.hide ();
-
- set_idcard_color ();
+ hbox.pack_start(image, false, false, 0);
+ hbox.pack_start(details_wrapper, true, true, 0);
+ this.arrow = new Arrow(ArrowType.RIGHT, ARROW_SHADOW);
+ this.arrow.set_alignment((float) 0.5, (float) 0);
+ hbox.pack_start(arrow, false, false);
+
+ this.main_vbox = new VBox(false, 12);
+ main_vbox.pack_start(hbox, true, true, 0);
+ main_vbox.set_border_width(12);
+
+ event_box = new EventBox();
+ event_box.add(main_vbox);
+ event_box.button_press_event.connect(button_press_cb);
+ event_box.set_visible(false);
+ this.pack_start(event_box, true, true);
+
+ this.show_all();
+ details.hide();
+
+ set_idcard_color();