mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
Bug 573383 – Setting a textview's buffer to NULL doesn't do a complete
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. svn path=/trunk/; revision=22414
This commit is contained in:
parent
f23aade947
commit
f6eb9d4269
@ -1,3 +1,11 @@
|
||||
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.
|
||||
|
||||
2009-02-25 Tristan Van Berkom <tvb@gnome.org>
|
||||
|
||||
Bug 572904 – GtkRadioAction broken in trunk
|
||||
|
@ -1426,15 +1426,15 @@ gtk_text_view_set_buffer (GtkTextView *text_view,
|
||||
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user