[gedit] Added gedit_utils_text_iter_assign
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Added gedit_utils_text_iter_assign
- Date: Tue, 22 Mar 2011 15:01:46 +0000 (UTC)
commit b8431c57d3963f97e4735294df2004a9bcd868bc
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date: Tue Mar 22 16:01:36 2011 +0100
Added gedit_utils_text_iter_assign
We need this for bindings that need to assign text iters, because right now
we can't (for example multiedit needs this). See bug #645258
gedit/gedit-utils.c | 10 ++++++++++
gedit/gedit-utils.h | 3 +++
2 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-utils.c b/gedit/gedit-utils.c
index e03da37..872038b 100644
--- a/gedit/gedit-utils.c
+++ b/gedit/gedit-utils.c
@@ -1494,4 +1494,14 @@ gedit_utils_get_compression_type_from_content_type (const gchar *content_type)
return GEDIT_DOCUMENT_COMPRESSION_TYPE_NONE;
}
+void
+gedit_utils_text_iter_assign (GtkTextIter *iter,
+ GtkTextIter const *other)
+{
+ g_return_if_fail (iter != NULL);
+ g_return_if_fail (other != NULL);
+
+ *iter = *other;
+}
+
/* ex:set ts=8 noet: */
diff --git a/gedit/gedit-utils.h b/gedit/gedit-utils.h
index 7a73e61..0f54fb0 100644
--- a/gedit/gedit-utils.h
+++ b/gedit/gedit-utils.h
@@ -146,6 +146,9 @@ GeditDocumentCompressionType
gedit_utils_get_compression_type_from_content_type
(const gchar *content_type);
+void gedit_utils_text_iter_assign (GtkTextIter *iter,
+ GtkTextIter const *other);
+
G_END_DECLS
#endif /* __GEDIT_UTILS_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]