gtk+ r22090 - in trunk: . gtk
- From: csaavedra svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r22090 - in trunk: . gtk
- Date: Mon, 12 Jan 2009 09:57:02 +0000 (UTC)
Author: csaavedra
Date: Mon Jan 12 09:57:01 2009
New Revision: 22090
URL: http://svn.gnome.org/viewvc/gtk+?rev=22090&view=rev
Log:
2009-01-12 Claudio Saavedra <csaavedra igalia com>
Bug 567468 â no check for trailing != NULL in
gtk_text_layout_get_iter_at_position()
* gtk/gtktextlayout.c: (gtk_text_layout_get_iter_at_position):
Check for trailing to be non-NULL.
* gtk/gtktextview.c: (gtk_text_view_get_iter_at_position): document
that trailing may be NULL.
Modified:
trunk/ChangeLog
trunk/gtk/gtktextlayout.c
trunk/gtk/gtktextview.c
Modified: trunk/gtk/gtktextlayout.c
==============================================================================
--- trunk/gtk/gtktextlayout.c (original)
+++ trunk/gtk/gtktextlayout.c Mon Jan 12 09:57:01 2009
@@ -2654,7 +2654,8 @@
if (y > display->height - display->top_margin - display->bottom_margin)
{
byte_index = _gtk_text_line_byte_count (line);
- *trailing = 0;
+ if (trailing)
+ *trailing = 0;
}
else
{
Modified: trunk/gtk/gtktextview.c
==============================================================================
--- trunk/gtk/gtktextview.c (original)
+++ trunk/gtk/gtktextview.c Mon Jan 12 09:57:01 2009
@@ -1509,7 +1509,7 @@
* gtk_text_view_get_iter_at_position:
* @text_view: a #GtkTextView
* @iter: a #GtkTextIter
- * @trailing: location to store an integer indicating where
+ * @trailing: if non-%NULL, location to store an integer indicating where
* in the grapheme the user clicked. It will either be
* zero, or the number of characters in the grapheme.
* 0 represents the trailing edge of the grapheme.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]