[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Gtk2::Ex::MarkupTextBuffer



On Sun, 2005-02-06 at 21:49 -0500, Kevin C. Krinke wrote:
> Attached is an XML::LibXML version of Gtk2::Ex::MarkupTextBuffer.

Doh. set_markup() wasn't clearing the text before inserting more. This
is now fixed in 0.02.

Patch for 0.01 attached.

-- 
Kevin C. Krinke <kckrinke opendoorsoftware com>
Open Door Software Inc.
Index: lib/Gtk2/Ex/MarkupTextBuffer.pm
===================================================================
--- lib/Gtk2/Ex/MarkupTextBuffer.pm	(revision 934)
+++ lib/Gtk2/Ex/MarkupTextBuffer.pm	(working copy)
@@ -32,7 +32,7 @@
 
 BEGIN {
     use vars qw( $VERSION );
-    $VERSION = '0.01';
+    $VERSION = '0.02';
 }
 
 sub new {
@@ -94,6 +94,7 @@
     my $self = $_[0];
     my $markup = $_[1];
     return( undef ) unless $markup;
+    $self->set_text( '' );
     my $iter = $self->get_start_iter();
     my $xml_text = "<gtk2_ex_markuptextbuffer>" . $markup . "</gtk2_ex_markuptextbuffer>";
     my $xml_doc = $self->{xml_parser}->parse_string( $xml_text );


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]