[gnome-contacts] Better sizeing of window
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Better sizeing of window
- Date: Mon, 27 Jun 2011 10:22:11 +0000 (UTC)
commit a9d68c0e4b3285421131b46ea04d9c5933740101
Author: Alexander Larsson <alexl redhat com>
Date: Mon Jun 27 12:01:30 2011 +0200
Better sizeing of window
New minimum is 700x510, and we ellipsize all detail fields so that
we may actually fit in that.
src/contacts-app.vala | 2 +-
src/contacts-contact-pane.vala | 6 ++++++
2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/contacts-app.vala b/src/contacts-app.vala
index bd25240..509b527 100644
--- a/src/contacts-app.vala
+++ b/src/contacts-app.vala
@@ -41,7 +41,7 @@ public class Contacts.App : Window {
public App () {
set_title (_("Contacts"));
- set_default_size (800, 500);
+ set_size_request (700, 510);
this.destroy.connect (Gtk.main_quit);
var grid = new Grid();
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index 5803774..33473c7 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -87,6 +87,8 @@ class DetailsLayout : Object {
label.set_selectable (true);
label.set_valign (Align.CENTER);
label.set_halign (Align.START);
+ label.set_ellipsize (Pango.EllipsizeMode.END);
+ label.xalign = 0.0f;
attach_detail (label);
}
@@ -112,6 +114,10 @@ class DetailsLayout : Object {
var v = new LinkButton.with_label (uri, text);
v.set_valign (Align.CENTER);
v.set_halign (Align.START);
+ Label l = v.get_child () as Label;
+ l.set_ellipsize (Pango.EllipsizeMode.END);
+ l.xalign = 0.0f;
+
attach_detail (v);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]