[drgeo/goffice: 74/82] make auto_* properties persitent (avoids bad bounds when one is explicitly



commit 68772a6f97b1507864ab789f2cac1867b595c481
Author: Jean Brefort <jean brefort normalesup org>
Date:   Tue Mar 7 10:46:34 2006 +0000

    make auto_* properties persitent (avoids bad bounds when one is explicitly
    
    2006-03-07  Jean Brefort  <jean brefort normalesup org>
    
    	* goffice/drgeo.cc: make auto_* properties persitent (avoids bad bounds
    	when one is explicitly set to 0.).
    	* goffice/drgeo_areabounds.cc: fixed setting properties (copy/paste
    	accidents).

 ChangeLog                   |    7 +++++++
 goffice/drgeo.cc            |    8 ++++----
 goffice/drgeo_areabounds.cc |   12 ++++++------
 3 files changed, 17 insertions(+), 10 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 3a51f2d..446b711 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -23,6 +23,13 @@
 
 	* configure.ac: Added "vi" to ALL_LINGUAS.
 
+2006-03-07  Jean Brefort  <jean brefort normalesup org>
+
+	* goffice/drgeo.cc: make auto_* properties persitent (avoids bad bounds
+	when one is explicitly set to 0.).
+	* goffice/drgeo_areabounds.cc: fixed setting properties (copy/paste
+	accidents).
+
 2006-02-26  Chao-Hsiung Liao  <j_h_liau yahoo com tw>
 
 	* configure.ac: Add "zh_HK" to ALL_LINGUAS.
diff --git a/goffice/drgeo.cc b/goffice/drgeo.cc
index cc2db6d..84b2b8d 100644
--- a/goffice/drgeo.cc
+++ b/goffice/drgeo.cc
@@ -336,22 +336,22 @@ go_drgeo_component_class_init (GOComponentClass *klass)
 		g_param_spec_boolean ("drgeo-auto-xmin", "drgeo-auto-xmin",
 			"Use automatic xmin",
 			true,
-			(GParamFlags) G_PARAM_READWRITE));
+			(GParamFlags) (G_PARAM_READWRITE | GOC_PARAM_PERSISTENT)));
 	g_object_class_install_property (obj_klass, GO_DRGEO_PROP_AUTO_XMAX,
 		g_param_spec_boolean ("drgeo-auto-xmax", "drgeo-auto-xmax",
 			"Use automatic xmax",
 			true,
-			(GParamFlags) G_PARAM_READWRITE));
+			(GParamFlags) (G_PARAM_READWRITE | GOC_PARAM_PERSISTENT)));
 	g_object_class_install_property (obj_klass, GO_DRGEO_PROP_AUTO_YMIN,
 		g_param_spec_boolean ("drgeo-auto-ymin", "drgeo-auto-ymin",
 			"Use automatic ymin",
 			true,
-			(GParamFlags) G_PARAM_READWRITE));
+			(GParamFlags) (G_PARAM_READWRITE | GOC_PARAM_PERSISTENT)));
 	g_object_class_install_property (obj_klass, GO_DRGEO_PROP_AUTO_YMAX,
 		g_param_spec_boolean ("drgeo-auto-ymax", "drgeo-auto-ymax",
 			"Use automatic ymax",
 			true,
-			(GParamFlags) G_PARAM_READWRITE));
+			(GParamFlags) (G_PARAM_READWRITE | GOC_PARAM_PERSISTENT)));
 }
 
 GSF_DYNAMIC_CLASS (GODrGeoComponent, go_drgeo_component,
diff --git a/goffice/drgeo_areabounds.cc b/goffice/drgeo_areabounds.cc
index 51c75b3..1d677fa 100644
--- a/goffice/drgeo_areabounds.cc
+++ b/goffice/drgeo_areabounds.cc
@@ -162,12 +162,12 @@ void drgeoAreaBoundsDlg::Apply ()
 		"drgeo-auto-xmin", auto_xmin,
 		"drgeo-xmax", xmax,
 		"drgeo-auto-xmax", gtk_toggle_button_get_active (
-			GTK_TOGGLE_BUTTON (m_auto_ymin)),
-		"drgeo-xmin", xmin,
-		"drgeo-auto-xmin", auto_xmin,
-		"drgeo-xmax", xmax,
-		"drgeo-auto-xmax", gtk_toggle_button_get_active (
-			GTK_TOGGLE_BUTTON (m_auto_ymin)),
+			GTK_TOGGLE_BUTTON (m_auto_xmax)),
+		"drgeo-ymin", ymin,
+		"drgeo-auto-ymin", auto_ymin,
+		"drgeo-ymax", ymax,
+		"drgeo-auto-ymax", gtk_toggle_button_get_active (
+			GTK_TOGGLE_BUTTON (m_auto_ymax)),
 		NULL);
 	Destroy ();
 }



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