[gnome-contacts/new-design] Add a title to the add detail window
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts/new-design] Add a title to the add detail window
- Date: Fri, 16 Dec 2011 13:28:35 +0000 (UTC)
commit c69d43230afb891b3182b4eff005d63a57a4475d
Author: Alexander Larsson <alexl redhat com>
Date: Fri Dec 16 14:28:20 2011 +0100
Add a title to the add detail window
src/contacts-contact-pane.vala | 17 ++++++++++++++---
1 files changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index df01c1f..b3aef72 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -1643,7 +1643,8 @@ public class Contacts.PersonaSheet : Grid {
}
private void add_detail () {
- var dialog = new Dialog.with_buttons (_("Add contact data to %s\n").printf (pane.contact.display_name),
+ var title = _("Add contact data to %s\n").printf (pane.contact.display_name);
+ var dialog = new Dialog.with_buttons ("",
(Window) pane.get_toplevel (),
DialogFlags.MODAL | DialogFlags.DESTROY_WITH_PARENT,
Stock.CANCEL, ResponseType.CANCEL,
@@ -1673,9 +1674,19 @@ public class Contacts.PersonaSheet : Grid {
scrolled.set_shadow_type (ShadowType.IN);
scrolled.add (tree_view);
+ var grid = new Grid ();
+ grid.set_orientation (Orientation.VERTICAL);
+ grid.set_row_spacing (6);
+
+ var l = new Label (title);
+ l.set_halign (Align.START);
+
+ grid.add (l);
+ grid.add (scrolled);
+
var box = dialog.get_content_area () as Box;
- box.pack_start (scrolled, true, true, 0);
- scrolled.set_border_width (6);
+ box.pack_start (grid, true, true, 0);
+ grid.set_border_width (6);
TreeIter iter;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]