[gnumeric] About: fix sizing of animation area.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] About: fix sizing of animation area.
- Date: Tue, 23 Dec 2014 01:24:30 +0000 (UTC)
commit 0f0c9c93f65bff11f6a99ab2f021a32608664204
Author: Morten Welinder <terra gnome org>
Date: Mon Dec 22 20:24:08 2014 -0500
About: fix sizing of animation area.
src/dialogs/ChangeLog | 5 +++++
src/dialogs/dialog-about.c | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/dialogs/ChangeLog b/src/dialogs/ChangeLog
index d16eb2b..2d41bab 100644
--- a/src/dialogs/ChangeLog
+++ b/src/dialogs/ChangeLog
@@ -1,3 +1,8 @@
+2014-12-22 Morten Welinder <terra gnome org>
+
+ * dialog-about.c (dialog_about): Don't use an empty layout for
+ measurement.
+
2014-11-14 Morten Welinder <terra gnome org>
* dialog-stf-preview.c (render_get_value): Truncate long items.
diff --git a/src/dialogs/dialog-about.c b/src/dialogs/dialog-about.c
index 14f6ea8..72a92f7 100644
--- a/src/dialogs/dialog-about.c
+++ b/src/dialogs/dialog-about.c
@@ -588,7 +588,7 @@ dialog_about (WBCGtk *wbcg)
PangoLayout *layout;
state->anim_area = gtk_drawing_area_new ();
- layout = gtk_widget_create_pango_layout (state->anim_area, NULL);
+ layout = gtk_widget_create_pango_layout (state->anim_area, "x");
pango_layout_get_pixel_size (layout, NULL, &height);
gtk_widget_set_size_request (state->anim_area, -1, 4 * height);
g_object_unref (layout);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]