[gnome-boxes] Fix sidebar width in non-english
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Fix sidebar width in non-english
- Date: Thu, 28 Feb 2013 09:26:16 +0000 (UTC)
commit b36555efac9d3782bffdc7a72e514ff2f0b74d8b
Author: Alexander Larsson <alexl redhat com>
Date: Fri Feb 22 10:27:01 2013 +0100
Fix sidebar width in non-english
Some languages use wider strings for some of the minigraph
labels in the sidebar, so we can't force these labels to be
the same size, nor can we rely on the label width to pick
the minigraph width.
https://bugzilla.gnome.org/show_bug.cgi?id=687345
src/mini-graph.vala | 2 ++
src/properties.vala | 2 +-
2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/mini-graph.vala b/src/mini-graph.vala
index 9ac1618..f6ad28c 100644
--- a/src/mini-graph.vala
+++ b/src/mini-graph.vala
@@ -22,12 +22,14 @@ private class Boxes.MiniGraph: Gtk.DrawingArea {
public MiniGraph (double[] points = {}, int npoints = -1) {
this.points = points;
this.npoints = npoints;
+ this.set_size_request (32, -1);
}
public MiniGraph.with_ymax (double[] points, double ymax, int npoints = -1) {
this.points = points;
this.ymax = ymax;
this.npoints = npoints;
+ this.set_size_request (32, -1);
}
private double max () {
diff --git a/src/properties.vala b/src/properties.vala
index 6d23c15..c86f4bc 100644
--- a/src/properties.vala
+++ b/src/properties.vala
@@ -254,7 +254,7 @@ private class Boxes.Properties: Boxes.UI {
var grid = new Gtk.Grid ();
vbox.pack_start (grid, false, false, 0);
- grid.column_homogeneous = true;
+ grid.column_homogeneous = false;
grid.column_spacing = 2;
grid.row_spacing = 10;
grid.margin_left = 10;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]