[sodipodi] Stop GtkAdjustment complaints



commit 9c0b9a81812f6b097d486389d497c464a97db5ac
Author: Hans Breuer <hans breuer org>
Date:   Fri Oct 5 14:42:31 2012 +0200

    Stop GtkAdjustment complaints
    
    from gtk+/README.in:
    
    2008-09-03  Matthias Clasen  <mclasen redhat com>
    
    * GtkAdjustment now enforces that values are restricted to the
      range [lower, upper - page_size]. This has always been the documented
      behaviour, and the recommended practice is to set page_size to 0
      when using adjustments for simple scalar values, like in a slider
      or spin button.

 src/desktop-events.c              |    2 +-
 src/dialogs/display-settings.c    |    2 +-
 src/dialogs/document-properties.c |    4 ++--
 src/dialogs/item-properties.c     |   12 ++++++------
 src/dialogs/object-properties.c   |    8 ++++----
 src/dialogs/stroke-style.c        |    2 +-
 src/dialogs/transformation.c      |   10 +++++-----
 src/dyna-draw-context.c           |    8 ++++----
 src/rect-context.c                |    4 ++--
 src/sp-image.c                    |    5 ++++-
 src/spiral-context.c              |    6 +++---
 src/star-context.c                |    4 ++--
 src/widgets/dash-selector.c       |    2 +-
 src/widgets/sp-color-selector.c   |    2 +-
 src/widgets/sp-color-slider.c     |    2 +-
 src/widgets/sp-xmlview-content.c  |    4 ++--
 src/widgets/spw-utilities.c       |    2 +-
 17 files changed, 41 insertions(+), 38 deletions(-)
---
diff --git a/src/desktop-events.c b/src/desktop-events.c
index 289ab7f..f1cd55e 100644
--- a/src/desktop-events.c
+++ b/src/desktop-events.c
@@ -461,7 +461,7 @@ sp_dt_simple_guide_dialog (SPGuide *guide, SPDesktop *desktop)
 		gtk_widget_show (m);
     
 		// spinbutton
-		a = gtk_adjustment_new (0.0, -SP_DESKTOP_SCROLL_LIMIT, SP_DESKTOP_SCROLL_LIMIT, 1.0, 10.0, 10.0);
+		a = gtk_adjustment_new (0.0, -SP_DESKTOP_SCROLL_LIMIT, SP_DESKTOP_SCROLL_LIMIT, 1.0, 10.0, 0.0);
 		e = gtk_spin_button_new (GTK_ADJUSTMENT (a), 1.0 , 2);
 		gtk_widget_show (e);
 		gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (e), TRUE);
diff --git a/src/dialogs/display-settings.c b/src/dialogs/display-settings.c
index 6d05851..e5eebcb 100644
--- a/src/dialogs/display-settings.c
+++ b/src/dialogs/display-settings.c
@@ -156,7 +156,7 @@ sp_display_dialog_new (void)
 	gtk_misc_set_alignment (GTK_MISC (l), 1.0, 0.5);
 	gtk_box_pack_start (GTK_BOX (hb), l, FALSE, FALSE, 0);
 
-	a = gtk_adjustment_new (0.0, 0.0, 10.0, 0.1, 1.0, 1.0);
+	a = gtk_adjustment_new (0.0, 0.0, 10.0, 0.1, 1.0, 0.0);
 	gtk_adjustment_set_value (GTK_ADJUSTMENT (a), nr_arena_global_delta);
 	sb = gtk_spin_button_new (GTK_ADJUSTMENT (a), 0.1, 1);
 	gtk_box_pack_start (GTK_BOX (hb), sb, TRUE, TRUE, 0);
diff --git a/src/dialogs/document-properties.c b/src/dialogs/document-properties.c
index 8412d39..50455ce 100644
--- a/src/dialogs/document-properties.c
+++ b/src/dialogs/document-properties.c
@@ -286,7 +286,7 @@ sp_doc_dialog_new (void)
 	gtk_misc_set_alignment (GTK_MISC (l), 1.0, 0.5);
 	gtk_widget_show (l);
 	gtk_table_attach (GTK_TABLE (t), l, 0, 1, 1, 2, GTK_EXPAND | GTK_FILL, 0, 0, 0);
-	a = gtk_adjustment_new (0.0, 1e-6, 1e6, 1.0, 10.0, 10.0);
+	a = gtk_adjustment_new (0.0, 1e-6, 1e6, 1.0, 10.0, 0.0);
 	gtk_object_set_data (GTK_OBJECT (a), "key", "width");
 	gtk_object_set_data (GTK_OBJECT (a), "unit_selector", us);
 	gtk_object_set_data (GTK_OBJECT (dialog), "width", a);
@@ -301,7 +301,7 @@ sp_doc_dialog_new (void)
 	gtk_misc_set_alignment (GTK_MISC (l), 1.0, 0.5);
 	gtk_widget_show (l);
 	gtk_table_attach (GTK_TABLE (t), l, 0, 1, 2, 3, GTK_EXPAND | GTK_FILL, 0, 0, 0);
-	a = gtk_adjustment_new (0.0, 1e-6, 1e6, 1.0, 10.0, 10.0);
+	a = gtk_adjustment_new (0.0, 1e-6, 1e6, 1.0, 10.0, 0.0);
 	gtk_object_set_data (GTK_OBJECT (a), "key", "height");
 	gtk_object_set_data (GTK_OBJECT (a), "unit_selector", us);
 	gtk_object_set_data (GTK_OBJECT (dialog), "height", a);
diff --git a/src/dialogs/item-properties.c b/src/dialogs/item-properties.c
index 25b2774..d57d964 100644
--- a/src/dialogs/item-properties.c
+++ b/src/dialogs/item-properties.c
@@ -147,37 +147,37 @@ sp_item_widget_new (void)
 	t = gtk_table_new (2, 3, TRUE);
 	gtk_container_add (GTK_CONTAINER (f), t);
 
-	a = gtk_adjustment_new (1.0, -NR_HUGE_F, NR_HUGE_F, 0.01, 0.1, 0.1);
+	a = gtk_adjustment_new (1.0, -NR_HUGE_F, NR_HUGE_F, 0.01, 0.1, 0.0);
 	gtk_object_set_data (GTK_OBJECT (spw), "t0", a);
 	sb = gtk_spin_button_new (GTK_ADJUSTMENT (a), 0.01, 2);
 	gtk_table_attach (GTK_TABLE (t), sb, 0, 1, 0, 1, GTK_EXPAND | GTK_FILL, 0, 0, 0);
 	gtk_signal_connect (a, "value_changed", GTK_SIGNAL_FUNC (sp_item_widget_transform_value_changed), spw);
 
-	a = gtk_adjustment_new (0.0, -NR_HUGE_F, NR_HUGE_F, 0.01, 0.1, 0.1);
+	a = gtk_adjustment_new (0.0, -NR_HUGE_F, NR_HUGE_F, 0.01, 0.1, 0.0);
 	gtk_object_set_data (GTK_OBJECT (spw), "t1", a);
 	sb = gtk_spin_button_new (GTK_ADJUSTMENT (a), 0.01, 2);
 	gtk_table_attach (GTK_TABLE (t), sb, 0, 1, 1, 2, GTK_EXPAND | GTK_FILL, 0, 0, 0);
 	gtk_signal_connect (a, "value_changed", GTK_SIGNAL_FUNC (sp_item_widget_transform_value_changed), spw);
 
-	a = gtk_adjustment_new (0.0, -NR_HUGE_F, NR_HUGE_F, 0.01, 0.1, 0.1);
+	a = gtk_adjustment_new (0.0, -NR_HUGE_F, NR_HUGE_F, 0.01, 0.1, 0.0);
 	gtk_object_set_data (GTK_OBJECT (spw), "t2", a);
 	sb = gtk_spin_button_new (GTK_ADJUSTMENT (a), 0.01, 2);
 	gtk_table_attach (GTK_TABLE (t), sb, 1, 2, 0, 1, GTK_EXPAND | GTK_FILL, 0, 0, 0);
 	gtk_signal_connect (a, "value_changed", GTK_SIGNAL_FUNC (sp_item_widget_transform_value_changed), spw);
 
-	a = gtk_adjustment_new (1.0, -NR_HUGE_F, NR_HUGE_F, 0.01, 0.1, 0.1);
+	a = gtk_adjustment_new (1.0, -NR_HUGE_F, NR_HUGE_F, 0.01, 0.1, 0.0);
 	gtk_object_set_data (GTK_OBJECT (spw), "t3", a);
 	sb = gtk_spin_button_new (GTK_ADJUSTMENT (a), 0.01, 2);
 	gtk_table_attach (GTK_TABLE (t), sb, 1, 2, 1, 2, GTK_EXPAND | GTK_FILL, 0, 0, 0);
 	gtk_signal_connect (a, "value_changed", GTK_SIGNAL_FUNC (sp_item_widget_transform_value_changed), spw);
 
-	a = gtk_adjustment_new (0.0, -NR_HUGE_F, NR_HUGE_F, 0.01, 0.1, 0.1);
+	a = gtk_adjustment_new (0.0, -NR_HUGE_F, NR_HUGE_F, 0.01, 0.1, 0.0);
 	gtk_object_set_data (GTK_OBJECT (spw), "t4", a);
 	sb = gtk_spin_button_new (GTK_ADJUSTMENT (a), 0.01, 2);
 	gtk_table_attach (GTK_TABLE (t), sb, 2, 3, 0, 1, GTK_EXPAND | GTK_FILL, 0, 0, 0);
 	gtk_signal_connect (a, "value_changed", GTK_SIGNAL_FUNC (sp_item_widget_transform_value_changed), spw);
 
-	a = gtk_adjustment_new (0.0, -NR_HUGE_F, NR_HUGE_F, 0.01, 0.1, 0.1);
+	a = gtk_adjustment_new (0.0, -NR_HUGE_F, NR_HUGE_F, 0.01, 0.1, 0.0);
 	gtk_object_set_data (GTK_OBJECT (spw), "t5", a);
 	sb = gtk_spin_button_new (GTK_ADJUSTMENT (a), 0.01, 2);
 	gtk_table_attach (GTK_TABLE (t), sb, 2, 3, 1, 2, GTK_EXPAND | GTK_FILL, 0, 0, 0);
diff --git a/src/dialogs/object-properties.c b/src/dialogs/object-properties.c
index 05f416c..75f5d0e 100644
--- a/src/dialogs/object-properties.c
+++ b/src/dialogs/object-properties.c
@@ -332,7 +332,7 @@ sp_selection_layout_widget_new (void)
 	l = gtk_label_new (_("X:"));
 	gtk_misc_set_alignment (GTK_MISC (l), 1.0, 0.5);
 	gtk_table_attach (GTK_TABLE (t), l, 1, 2, 1, 2, GTK_FILL, 0, 0, 0);
-	a = gtk_adjustment_new (0.0, -1e6, 1e6, 0.1, 10.0, 10.0);
+	a = gtk_adjustment_new (0.0, -1e6, 1e6, 0.1, 10.0, 0.0);
 	sp_unit_selector_add_adjustment (SP_UNIT_SELECTOR (us), GTK_ADJUSTMENT (a));
 	gtk_object_set_data (GTK_OBJECT (spw), "X", a);
 	sb = gtk_spin_button_new (GTK_ADJUSTMENT (a), 0.1, 2);
@@ -344,7 +344,7 @@ sp_selection_layout_widget_new (void)
 	l = gtk_label_new (_("Y:"));
 	gtk_misc_set_alignment (GTK_MISC (l), 1.0, 0.5);
 	gtk_table_attach (GTK_TABLE (t), l, 1, 2, 2, 3, GTK_FILL, 0, 0, 0);
-	a = gtk_adjustment_new (0.0, -1e6, 1e6, 0.1, 10.0, 10.0);
+	a = gtk_adjustment_new (0.0, -1e6, 1e6, 0.1, 10.0, 0.0);
 	sp_unit_selector_add_adjustment (SP_UNIT_SELECTOR (us), GTK_ADJUSTMENT (a));
 	gtk_object_set_data (GTK_OBJECT (spw), "Y", a);
 	sb = gtk_spin_button_new (GTK_ADJUSTMENT (a), 0.1, 2);
@@ -356,7 +356,7 @@ sp_selection_layout_widget_new (void)
 	l = gtk_label_new (_("Width:"));
 	gtk_misc_set_alignment (GTK_MISC (l), 1.0, 0.5);
 	gtk_table_attach (GTK_TABLE (t), l, 1, 2, 3, 4, GTK_FILL, 0, 0, 0);
-	a = gtk_adjustment_new (0.0, -1e6, 1e6, 0.1, 10.0, 10.0);
+	a = gtk_adjustment_new (0.0, -1e6, 1e6, 0.1, 10.0, 0.0);
 	sp_unit_selector_add_adjustment (SP_UNIT_SELECTOR (us), GTK_ADJUSTMENT (a));
 	gtk_object_set_data (GTK_OBJECT (spw), "width", a);
 	sb = gtk_spin_button_new (GTK_ADJUSTMENT (a), 0.1, 2);
@@ -368,7 +368,7 @@ sp_selection_layout_widget_new (void)
 	l = gtk_label_new (_("Height:"));
 	gtk_misc_set_alignment (GTK_MISC (l), 1.0, 0.5);
 	gtk_table_attach (GTK_TABLE (t), l, 1, 2, 4, 5, GTK_FILL, 0, 0, 0);
-	a = gtk_adjustment_new (0.0, -1e6, 1e6, 0.1, 10.0, 10.0);
+	a = gtk_adjustment_new (0.0, -1e6, 1e6, 0.1, 10.0, 0.0);
 	sp_unit_selector_add_adjustment (SP_UNIT_SELECTOR (us), GTK_ADJUSTMENT (a));
 	gtk_object_set_data (GTK_OBJECT (spw), "height", a);
 	sb = gtk_spin_button_new (GTK_ADJUSTMENT (a), 0.1, 2);
diff --git a/src/dialogs/stroke-style.c b/src/dialogs/stroke-style.c
index 84094dc..93218ee 100644
--- a/src/dialogs/stroke-style.c
+++ b/src/dialogs/stroke-style.c
@@ -573,7 +573,7 @@ sp_stroke_style_line_widget_new (void)
 	gtk_widget_show (hb);
 	gtk_table_attach (GTK_TABLE (t), hb, 1, 4, 0, 1, GTK_EXPAND | GTK_FILL, 0, 0, 0);
 
-	a = gtk_adjustment_new (1.0, 0.0, 100.0, 0.1, 10.0, 10.0);
+	a = gtk_adjustment_new (1.0, 0.0, 100.0, 0.1, 10.0, 0.0);
 	gtk_object_set_data (GTK_OBJECT (spw), "width", a);
 	sb = gtk_spin_button_new (GTK_ADJUSTMENT (a), 0.1, 2);
 	gtk_widget_show (sb);
diff --git a/src/dialogs/transformation.c b/src/dialogs/transformation.c
index 312900a..260cec6 100644
--- a/src/dialogs/transformation.c
+++ b/src/dialogs/transformation.c
@@ -330,7 +330,7 @@ sp_transformation_page_move_new (GObject *obj)
 	/* Horizontal */
 	img = sp_icon_new (SP_ICON_SIZE_BUTTON, "arrows_hor");
 	gtk_table_attach (GTK_TABLE (tbl), img, 0, 1, 0, 1, 0, 0, 0, 0);
-	adj = (GtkAdjustment *) gtk_adjustment_new (0.0, -1e6, 1e6, 0.01, 0.1, 0.1);
+	adj = (GtkAdjustment *) gtk_adjustment_new (0.0, -1e6, 1e6, 0.01, 0.1, 0.0);
 	g_object_set_data (obj, "move_position_x", adj);
 	sp_unit_selector_add_adjustment (SP_UNIT_SELECTOR (us), adj);
 	sb = gtk_spin_button_new (adj, 0.1, 2);
@@ -338,7 +338,7 @@ sp_transformation_page_move_new (GObject *obj)
 	/* Vertical */
 	img = sp_icon_new (SP_ICON_SIZE_BUTTON, "arrows_ver");
 	gtk_table_attach (GTK_TABLE (tbl), img, 0, 1, 1, 2, 0, 0, 0, 0);
-	adj = (GtkAdjustment *) gtk_adjustment_new (0.0, -1e6, 1e6, 0.01, 0.1, 0.1);
+	adj = (GtkAdjustment *) gtk_adjustment_new (0.0, -1e6, 1e6, 0.01, 0.1, 0.0);
 	g_object_set_data (obj, "move_position_y", adj);
 	sp_unit_selector_add_adjustment (SP_UNIT_SELECTOR (us), adj);
 	sb = gtk_spin_button_new (adj, 0.1, 2);
@@ -475,7 +475,7 @@ sp_transformation_page_scale_new (GObject *obj)
 	/* Horizontal */
 	img = sp_icon_new (SP_ICON_SIZE_BUTTON, "scale_hor");
 	gtk_table_attach (GTK_TABLE (tbl), img, 0, 1, 0, 1, 0, 0, 0, 0);
-	adj = (GtkAdjustment *) gtk_adjustment_new (0.0, -1e6, 1e6, 0.01, 0.1, 0.1);
+	adj = (GtkAdjustment *) gtk_adjustment_new (0.0, -1e6, 1e6, 0.01, 0.1, 0.0);
 	g_object_set_data (obj, "scale_dimension_x", adj);
 	sp_unit_selector_add_adjustment (SP_UNIT_SELECTOR (us), adj);
 	g_signal_connect (G_OBJECT (adj), "value_changed", G_CALLBACK (sp_transformation_scale_value_changed), obj);
@@ -484,7 +484,7 @@ sp_transformation_page_scale_new (GObject *obj)
 	/* Vertical */
 	img = sp_icon_new (SP_ICON_SIZE_BUTTON, "scale_ver");
 	gtk_table_attach (GTK_TABLE (tbl), img, 0, 1, 1, 2, 0, 0, 0, 0);
-	adj = (GtkAdjustment *) gtk_adjustment_new (0.0, -1e6, 1e6, 0.01, 0.1, 0.1);
+	adj = (GtkAdjustment *) gtk_adjustment_new (0.0, -1e6, 1e6, 0.01, 0.1, 0.0);
 	g_object_set_data (obj, "scale_dimension_y", adj);
 	sp_unit_selector_add_adjustment (SP_UNIT_SELECTOR (us), adj);
 	g_signal_connect (G_OBJECT (adj), "value_changed", G_CALLBACK (sp_transformation_scale_value_changed), obj);
@@ -594,7 +594,7 @@ sp_transformation_page_rotate_new (GObject *obj)
 
 	img = sp_icon_new (SP_ICON_SIZE_BUTTON, "rotate_left");
 	gtk_table_attach (GTK_TABLE (tbl), img, 0, 1, 0, 1, 0, 0, 0, 0);
-	adj = (GtkAdjustment *) gtk_adjustment_new (0.0, -1e6, 1e6, 0.01, 0.1, 0.1);
+	adj = (GtkAdjustment *) gtk_adjustment_new (0.0, -1e6, 1e6, 0.01, 0.1, 0.0);
 	g_object_set_data (obj, "rotate_angle", adj);
 	g_signal_connect (G_OBJECT (adj), "value_changed", G_CALLBACK (sp_transformation_rotate_value_changed), obj);
 	sb = gtk_spin_button_new (adj, 0.1, 2);
diff --git a/src/dyna-draw-context.c b/src/dyna-draw-context.c
index aaf4ca4..4593549 100644
--- a/src/dyna-draw-context.c
+++ b/src/dyna-draw-context.c
@@ -1052,7 +1052,7 @@ sp_dyna_draw_context_config_widget (SPEventContext *ec)
 	gtk_widget_show (l);
 	gtk_misc_set_alignment (GTK_MISC (l), 1.0, 0.5);
 	gtk_table_attach (GTK_TABLE (tbl), l, 0, 1, 0, 1, 0, 0, 0, 0);
-	a = gtk_adjustment_new (ddc->mass, 0.0, 1.0, 0.01, 0.1, 0.1);
+	a = gtk_adjustment_new (ddc->mass, 0.0, 1.0, 0.01, 0.1, 0.0);
 	gtk_object_set_data (GTK_OBJECT (tbl), "mass", a);
 	sb = gtk_spin_button_new (GTK_ADJUSTMENT (a), 0.1, 2);
 	gtk_widget_show (sb);
@@ -1064,7 +1064,7 @@ sp_dyna_draw_context_config_widget (SPEventContext *ec)
 	gtk_widget_show (l);
 	gtk_misc_set_alignment (GTK_MISC (l), 1.0, 0.5);
 	gtk_table_attach (GTK_TABLE (tbl), l, 0, 1, 1, 2, 0, 0, 0, 0);
-	a = gtk_adjustment_new (ddc->drag, DRAG_MIN, DRAG_MAX, 0.01, 0.1, 0.1);
+	a = gtk_adjustment_new (ddc->drag, DRAG_MIN, DRAG_MAX, 0.01, 0.1, 0.0);
 	gtk_object_set_data (GTK_OBJECT (tbl), "drag", a);
 	sb = gtk_spin_button_new (GTK_ADJUSTMENT (a), 0.1, 2);
 	gtk_widget_show (sb);
@@ -1076,7 +1076,7 @@ sp_dyna_draw_context_config_widget (SPEventContext *ec)
 	gtk_widget_show (l);
 	gtk_misc_set_alignment (GTK_MISC (l), 1.0, 0.5);
 	gtk_table_attach (GTK_TABLE (tbl), l, 0, 1, 2, 3, 0, 0, 0, 0);
-	a = gtk_adjustment_new (ddc->angle, 0.0, 360.0, 1.0, 10.0, 10.0);
+	a = gtk_adjustment_new (ddc->angle, 0.0, 360.0, 1.0, 10.0, 0.0);
 	gtk_object_set_data (GTK_OBJECT (tbl), "angle", a);
 	sb = gtk_spin_button_new (GTK_ADJUSTMENT (a), 0.1, 2);
 	gtk_widget_show (sb);
@@ -1088,7 +1088,7 @@ sp_dyna_draw_context_config_widget (SPEventContext *ec)
 	gtk_widget_show (l);
 	gtk_misc_set_alignment (GTK_MISC (l), 1.0, 0.5);
 	gtk_table_attach (GTK_TABLE (tbl), l, 0, 1, 3, 4, 0, 0, 0, 0);
-	a = gtk_adjustment_new (ddc->width, 0.01, 1.0, 0.01, 0.1, 0.1);
+	a = gtk_adjustment_new (ddc->width, 0.01, 1.0, 0.01, 0.1, 0.0);
 	gtk_object_set_data (GTK_OBJECT (tbl), "width", a);
 	sb = gtk_spin_button_new (GTK_ADJUSTMENT (a), 0.1, 2);
 	gtk_widget_show (sb);
diff --git a/src/rect-context.c b/src/rect-context.c
index 01ad18e..4a8cd04 100644
--- a/src/rect-context.c
+++ b/src/rect-context.c
@@ -359,7 +359,7 @@ sp_rect_context_config_widget (SPEventContext *ec)
 	gtk_widget_show (l);
 	gtk_misc_set_alignment (GTK_MISC (l), 1.0, 0.5);
 	gtk_table_attach (GTK_TABLE (tbl), l, 0, 1, 0, 1, 0, 0, 0, 0);
-	a = gtk_adjustment_new (rc->rx_ratio, 0.0, 1.0, 0.01, 0.1, 0.1);
+	a = gtk_adjustment_new (rc->rx_ratio, 0.0, 1.0, 0.01, 0.1, 0.0);
 	gtk_object_set_data (GTK_OBJECT (tbl), "rx_ratio", a);
 	sb = gtk_spin_button_new (GTK_ADJUSTMENT (a), 0.1, 2);
 	gtk_widget_show (sb);
@@ -371,7 +371,7 @@ sp_rect_context_config_widget (SPEventContext *ec)
 	gtk_widget_show (l);
 	gtk_misc_set_alignment (GTK_MISC (l), 1.0, 0.5);
 	gtk_table_attach (GTK_TABLE (tbl), l, 0, 1, 1, 2, 0, 0, 0, 0);
-	a = gtk_adjustment_new (rc->ry_ratio, 0.0, 1.0, 0.01, 0.1, 0.1);
+	a = gtk_adjustment_new (rc->ry_ratio, 0.0, 1.0, 0.01, 0.1, 0.0);
 	gtk_object_set_data (GTK_OBJECT (tbl), "ry_ratio", a);
 	sb = gtk_spin_button_new (GTK_ADJUSTMENT (a), 0.1, 2);
 	gtk_widget_show (sb);
diff --git a/src/sp-image.c b/src/sp-image.c
index b3dd6dc..7b71fd6 100644
--- a/src/sp-image.c
+++ b/src/sp-image.c
@@ -727,7 +727,10 @@ sp_image_repr_read_b64 (const gchar * uri_data)
 
 	gdk_pixbuf_loader_close (loader, NULL);
 
-	if (!failed) pixbuf = gdk_pixbuf_loader_get_pixbuf (loader);
+	if (!failed) 
+	  pixbuf = g_object_ref (gdk_pixbuf_loader_get_pixbuf (loader));
+
+	g_object_unref (loader);
 
 	return pixbuf;
 }
diff --git a/src/spiral-context.c b/src/spiral-context.c
index f9ad4e8..03d3adb 100644
--- a/src/spiral-context.c
+++ b/src/spiral-context.c
@@ -332,7 +332,7 @@ sp_spiral_context_config_widget (SPEventContext *ec)
 	gtk_widget_show (l);
 	gtk_misc_set_alignment (GTK_MISC (l), 1.0, 0.5);
 	gtk_table_attach (GTK_TABLE (tbl), l, 0, 1, 0, 1, 0, 0, 0, 0);
-	a = gtk_adjustment_new (sc->revo, 0.05, 20.0, 1.0, 1.0, 1.0);
+	a = gtk_adjustment_new (sc->revo, 0.05, 20.0, 1.0, 1.0, 0.0);
 	gtk_object_set_data (GTK_OBJECT (tbl), "revolution", a);
 	sb = gtk_spin_button_new (GTK_ADJUSTMENT (a), 1, 2);
 	gtk_widget_show (sb);
@@ -344,7 +344,7 @@ sp_spiral_context_config_widget (SPEventContext *ec)
 	gtk_widget_show (l);
 	gtk_misc_set_alignment (GTK_MISC (l), 1.0, 0.5);
 	gtk_table_attach (GTK_TABLE (tbl), l, 0, 1, 1, 2, 0, 0, 0, 0);
-	a = gtk_adjustment_new (sc->exp, 0.0, 1000.0, 0.1, 1.0, 1.0);
+	a = gtk_adjustment_new (sc->exp, 0.0, 1000.0, 0.1, 1.0, 0.0);
 	gtk_object_set_data (GTK_OBJECT (tbl), "expansion", a);
 	sb = gtk_spin_button_new (GTK_ADJUSTMENT (a), 0.1, 2);
 	gtk_widget_show (sb);
@@ -356,7 +356,7 @@ sp_spiral_context_config_widget (SPEventContext *ec)
 	gtk_widget_show (l);
 	gtk_misc_set_alignment (GTK_MISC (l), 1.0, 0.5);
 	gtk_table_attach (GTK_TABLE (tbl), l, 0, 1, 2, 3, 0, 0, 0, 0);
-	a = gtk_adjustment_new (sc->t0, 0.0, 0.999, 0.1, 1.0, 1.0);
+	a = gtk_adjustment_new (sc->t0, 0.0, 0.999, 0.1, 1.0, 0.0);
 	gtk_object_set_data (GTK_OBJECT (tbl), "t0", a);
 	sb = gtk_spin_button_new (GTK_ADJUSTMENT (a), 0.1, 2);
 	gtk_widget_show (sb);
diff --git a/src/star-context.c b/src/star-context.c
index d64bcc5..849bbdb 100644
--- a/src/star-context.c
+++ b/src/star-context.c
@@ -344,7 +344,7 @@ sp_star_context_config_widget (SPEventContext *ec)
 	gtk_widget_show (l);
 	gtk_misc_set_alignment (GTK_MISC (l), 1.0, 0.5);
 	gtk_table_attach (GTK_TABLE (tbl), l, 0, 1, 0, 1, 0, 0, 0, 0);
-	a = gtk_adjustment_new (sc->magnitude, 3, 32, 1, 1, 1);
+	a = gtk_adjustment_new (sc->magnitude, 3, 32, 1, 1, 0);
 	gtk_object_set_data (GTK_OBJECT (tbl), "magnitude", a);
 	sb = gtk_spin_button_new (GTK_ADJUSTMENT (a), 1, 0);
 	gtk_widget_show (sb);
@@ -356,7 +356,7 @@ sp_star_context_config_widget (SPEventContext *ec)
 	gtk_widget_show (l);
 	gtk_misc_set_alignment (GTK_MISC (l), 1.0, 0.5);
 	gtk_table_attach (GTK_TABLE (tbl), l, 0, 1, 1, 2, 0, 0, 0, 0);
-	a = gtk_adjustment_new (sc->proportion, 0.01, 1.0, 0.01, 0.1, 0.1);
+	a = gtk_adjustment_new (sc->proportion, 0.01, 1.0, 0.01, 0.1, 0.0);
 	gtk_object_set_data (GTK_OBJECT (tbl), "proportion", a);
 	sb = gtk_spin_button_new (GTK_ADJUSTMENT (a), 0.1, 2);
 	gtk_widget_show (sb);
diff --git a/src/widgets/dash-selector.c b/src/widgets/dash-selector.c
index b12363d..ee5054c 100644
--- a/src/widgets/dash-selector.c
+++ b/src/widgets/dash-selector.c
@@ -120,7 +120,7 @@ sp_dash_selector_init (SPDashSelector *dsel)
 	}
 	gtk_option_menu_set_menu (GTK_OPTION_MENU (dsel->dash), m);
 
-	dsel->offset = gtk_adjustment_new (0.0, 0.0, 10.0, 0.1, 1.0, 1.0);
+	dsel->offset = gtk_adjustment_new (0.0, 0.0, 10.0, 0.1, 1.0, 0.0);
 	sb = gtk_spin_button_new (GTK_ADJUSTMENT (dsel->offset), 0.1, 2);
 	gtk_widget_show (sb);
 	gtk_box_pack_start (GTK_BOX (dsel), sb, FALSE, FALSE, 0);
diff --git a/src/widgets/sp-color-selector.c b/src/widgets/sp-color-selector.c
index 5a460fd..306d671 100644
--- a/src/widgets/sp-color-selector.c
+++ b/src/widgets/sp-color-selector.c
@@ -160,7 +160,7 @@ sp_color_selector_init (SPColorSelector *csel)
 		gtk_widget_show (csel->l[i]);
 		gtk_table_attach (GTK_TABLE (t), csel->l[i], 0, 1, i, i + 1, GTK_FILL, GTK_FILL, XPAD, YPAD);
 		/* Adjustment */
-		csel->a[i] = (GtkAdjustment *) gtk_adjustment_new (0.0, 0.0, 1.0, 0.01, 0.1, 0.1);
+		csel->a[i] = (GtkAdjustment *) gtk_adjustment_new (0.0, 0.0, 1.0, 0.01, 0.1, 0.0);
 		/* Slider */
 		csel->s[i] = sp_color_slider_new (csel->a[i]);
 		gtk_widget_show (csel->s[i]);
diff --git a/src/widgets/sp-color-slider.c b/src/widgets/sp-color-slider.c
index 9848ca1..b10fc93 100644
--- a/src/widgets/sp-color-slider.c
+++ b/src/widgets/sp-color-slider.c
@@ -320,7 +320,7 @@ sp_color_slider_set_adjustment (SPColorSlider *slider, GtkAdjustment *adjustment
 	g_return_if_fail (SP_IS_COLOR_SLIDER (slider));
 
 	if (!adjustment) {
-		adjustment = (GtkAdjustment *) gtk_adjustment_new (0.0, 0.0, 1.0, 0.01, 0.1, 0.1);
+		adjustment = (GtkAdjustment *) gtk_adjustment_new (0.0, 0.0, 1.0, 0.01, 0.1, 0.0);
 	}
 
 	if (slider->adjustment != adjustment) {
diff --git a/src/widgets/sp-xmlview-content.c b/src/widgets/sp-xmlview-content.c
index 20f05ac..d346607 100644
--- a/src/widgets/sp-xmlview-content.c
+++ b/src/widgets/sp-xmlview-content.c
@@ -61,8 +61,8 @@ sp_xmlview_content_new (SPRepr * repr)
 
 #if 0
 	gtk_text_set_adjustments (GTK_TEXT (text),
-				  GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 1.0, 0.2, 1.0, 1.0)),
-				  GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 1.0, 0.2, 1.0, 1.0)));
+				  GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 1.0, 0.2, 1.0, 0.0)),
+				  GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 1.0, 0.2, 1.0, 0.0)));
 #endif
 
 	sp_xmlview_content_set_repr (text, repr);
diff --git a/src/widgets/spw-utilities.c b/src/widgets/spw-utilities.c
index 2eab594..33eddac 100644
--- a/src/widgets/spw-utilities.c
+++ b/src/widgets/spw-utilities.c
@@ -95,7 +95,7 @@ spw_unit_selector(GtkWidget * dialog, GtkWidget * t,
   gtk_misc_set_alignment (GTK_MISC (l), 1.0, 0.5);
   gtk_widget_show (l);
   gtk_table_attach (GTK_TABLE (t), l, 0, 1, row, row+1, GTK_EXPAND | GTK_FILL, 0, 0, 0);
-  a = gtk_adjustment_new (0.0, -1e6, 1e6, 1.0, 10.0, 10.0);
+  a = gtk_adjustment_new (0.0, -1e6, 1e6, 1.0, 10.0, 0.0);
   gtk_object_set_data (GTK_OBJECT (a), "key", key);
   gtk_object_set_data (GTK_OBJECT (a), "unit_selector", us);
   gtk_object_set_data (GTK_OBJECT (dialog), key, a);



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