[gnome-contacts] Make the TypeCombo expand properl
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Make the TypeCombo expand properl
- Date: Thu, 23 Jun 2011 19:06:41 +0000 (UTC)
commit 1d36ccd2759ab5a47e0c5e1335a2fea3c4ffa919
Author: Alexander Larsson <alexl redhat com>
Date: Thu Jun 23 21:04:05 2011 +0200
Make the TypeCombo expand properl
src/contacts-contact-pane.vala | 2 ++
src/contacts-types.vala | 4 ++++
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index 1dfd06c..5803774 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -276,6 +276,8 @@ public class Contacts.ContactPane : EventBox {
FieldDetails detail,
string property_name) {
var combo = new TypeCombo (type_set);
+ combo.set_halign (Align.FILL);
+ combo.set_hexpand (false);
combo.set_active (detail);
layout.add_widget_label (combo);
var entry = layout.add_entry (detail.value);
diff --git a/src/contacts-types.vala b/src/contacts-types.vala
index f55a318..55be279 100644
--- a/src/contacts-types.vala
+++ b/src/contacts-types.vala
@@ -342,6 +342,8 @@ public class Contacts.TypeCombo : Grid {
this.type_set = type_set;
combo = new ComboBox.with_model (type_set.store);
+ combo.set_halign (Align.FILL);
+ combo.set_hexpand (true);
this.add (combo);
var renderer = new CellRendererText ();
@@ -355,6 +357,8 @@ public class Contacts.TypeCombo : Grid {
});
entry = new Entry ();
+ entry.set_halign (Align.FILL);
+ entry.set_hexpand (true);
entry.width_chars = 10;
this.add (entry);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]