[goffice] Invalidate canvas items after reordering to force a redraw? [#639840]
- From: Jean Bréfort <jbrefort src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goffice] Invalidate canvas items after reordering to force a redraw? [#639840]
- Date: Tue, 18 Jan 2011 16:01:26 +0000 (UTC)
commit b0f4b95a2f7c210607a9a99c4e48076ad4afd609
Author: Jean Brefort <jean brefort normalesup org>
Date: Tue Jan 18 17:04:21 2011 +0100
Invalidate canvas items after reordering to force a redraw? [#639840]
ChangeLog | 6 ++++++
NEWS | 1 +
goffice/canvas/goc-item.c | 6 +++++-
3 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 0a44037..b854812 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-01-18 Jean Brefort <jean brefort normalesup org>
+
+ * goffice/canvas/goc-item.c (goc_item_raise), (goc_item_lower),
+ (goc_item_lower_to_bottom), (goc_item_raise_to_top): invalidate the item
+ after reordering to force a redraw? [#639840]
+
2011-01-06 Jean Brefort <jean brefort normalesup org>
* plugins/plot_barcol/gog-line.c (gog_line_view_render): fixed drop lines
diff --git a/NEWS b/NEWS
index 83611de..e40362f 100644
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,7 @@ Andreas
Jean:
* Fixed memory leaks found by cppcheck analysis.
* Fixed drop lines in line plots. [#638738]
+ * Invalidate canvas items after reordering to force a redraw? [#639840]
--------------------------------------------------------------------------
goffice 0.8.12:
diff --git a/goffice/canvas/goc-item.c b/goffice/canvas/goc-item.c
index a234b31..567cc59 100644
--- a/goffice/canvas/goc-item.c
+++ b/goffice/canvas/goc-item.c
@@ -582,7 +582,7 @@ goc_item_ungrab (GocItem *item)
* @n: the rank change
*
* Raises @item by @n steps inside its parent #GocGroup (or less if the list
- * is too short) in the item list so that it is displayed nrearer the top of
+ * is too short) in the item list so that it is displayed nearer the top of
* the items stack.
**/
void
@@ -595,6 +595,7 @@ goc_item_raise (GocItem *item, int n)
else
item->parent->children = g_list_append (item->parent->children, item);
item->parent->children = g_list_remove_link (item->parent->children, orig);
+ goc_item_invalidate (item);
}
/**
@@ -616,6 +617,7 @@ goc_item_lower (GocItem *item, int n)
else
item->parent->children = g_list_prepend (item->parent->children, item);
item->parent->children = g_list_remove_link (item->parent->children, orig);
+ goc_item_invalidate (item);
}
/**
@@ -631,6 +633,7 @@ goc_item_lower_to_bottom (GocItem *item)
g_return_if_fail (item->parent != NULL);
item->parent->children = g_list_remove (item->parent->children, item);
item->parent->children = g_list_prepend (item->parent->children, item);
+ goc_item_invalidate (item);
}
/**
@@ -646,6 +649,7 @@ goc_item_raise_to_top (GocItem *item)
g_return_if_fail (item->parent != NULL);
item->parent->children = g_list_remove (item->parent->children, item);
item->parent->children = g_list_append (item->parent->children, item);
+ goc_item_invalidate (item);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]