[goffice] create widget far away from visible area.



commit 1a1799831426f7c368e625005678a8b73172a40a
Author: Jean Brefort <jean brefort normalesup org>
Date:   Tue Sep 29 17:41:15 2009 +0200

    create widget far away from visible area.

 ChangeLog                   |    5 +++++
 NEWS                        |    2 +-
 goffice/canvas/goc-widget.c |    1 +
 3 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c59ef3f..93d81c1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2009-09-29  Jean Brefort  <jean brefort normalesup org>
 
+	* goffice/canvas/goc-widget.c (goc_widget_init): create widget far away
+	from visible area.
+
+2009-09-29  Jean Brefort  <jean brefort normalesup org>
+
 	* goffice/canvas/goc-line.c (goc_line_class_init): fixed translatable
 	strings using a patch from Bruce Cowan. [#596003]
 	* goffice/graph/gog-series-prefs.ui: add translators comments. [#596003]
diff --git a/NEWS b/NEWS
index 34d40fa..4b7aff9 100644
--- a/NEWS
+++ b/NEWS
@@ -1,7 +1,7 @@
 goffice 0.7.14:
 
 Bruce Cowan:
-	* Fix some trnaslatable strings. [#596003]
+	* Fix some translatable strings. [#596003]
 
 Jean:
 	* Fix unicolor gradient brightness.
diff --git a/goffice/canvas/goc-widget.c b/goffice/canvas/goc-widget.c
index a95968f..89a1e66 100644
--- a/goffice/canvas/goc-widget.c
+++ b/goffice/canvas/goc-widget.c
@@ -284,6 +284,7 @@ goc_widget_dispose (GObject *object)
 static void
 goc_widget_init (GocWidget *item)
 {
+	item->x = item->y = -G_MAXINT; /* so that it is not visible until the position is set */
 	g_signal_connect (item, "notify::canvas",
 			  G_CALLBACK (cb_canvas_changed),
 			  NULL);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]