gtk+ r22414 - in trunk: . gtk
- From: mitch svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r22414 - in trunk: . gtk
- Date: Fri, 27 Feb 2009 16:21:40 +0000 (UTC)
Author: mitch
Date: Fri Feb 27 16:21:40 2009
New Revision: 22414
URL: http://svn.gnome.org/viewvc/gtk+?rev=22414&view=rev
Log:
2009-02-27 Michael Natterer <mitch imendio com>
Bug 573383 â Setting a textview's buffer to NULL doesn't do a
complete job
* gtk/gtktextview.c (gtk_text_view_set_buffer): always set
text_view->layout's buffer, also if it's NULL.
Modified:
trunk/ChangeLog
trunk/gtk/gtktextview.c
Modified: trunk/gtk/gtktextview.c
==============================================================================
--- trunk/gtk/gtktextview.c (original)
+++ trunk/gtk/gtktextview.c Fri Feb 27 16:21:40 2009
@@ -1426,15 +1426,15 @@
text_view->buffer = buffer;
+ if (text_view->layout)
+ gtk_text_layout_set_buffer (text_view->layout, buffer);
+
if (buffer != NULL)
{
GtkTextIter start;
g_object_ref (buffer);
- if (text_view->layout)
- gtk_text_layout_set_buffer (text_view->layout, buffer);
-
gtk_text_buffer_get_iter_at_offset (text_view->buffer, &start, 0);
text_view->dnd_mark = gtk_text_buffer_create_mark (text_view->buffer,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]