Re: Gtk2::Ex::WYSIWYG



On 13 May 2010 06:57, Matthew Braid <ptkperl mdb id au> wrote:
I've 'nearly' completed a Gtk2 WYSIWYG editor widget, and in the

Cool.

far from perfect, but for my current requirements it fits nicely. It
also contains three other 'mini' packages - one for generating html

And seems to require XML::Quote.

But it looks great.

To make it integrate better into existing apps, it would be good to be
able to place the toolbar separately from the editor widget.

Also, it might be useful to be able to restrict the number of fonts.
I'm thinking of writing a PDF where by default only certain fonts are
available.

Assuming it is at least partially ok, I'll probably put it up on CPAN too.

Absolutely.

Anyway, I hope someone finds this useful at some point. It is

Definitely.

Thanks for sharing!

Some warning messages. With

#!/usr/bin/perl

use warnings;
use strict;
use lib 'Gtk2-Ex-WYSIWYG';
use Gtk2::Ex::WYSIWYG;
use Gtk2 -init;

my $window = Gtk2::Window -> new;
$window -> signal_connect ( 'delete-event' => sub { Gtk2 -> main_quit } );
my $main_vbox = Gtk2::VBox -> new;
$window -> add ( $main_vbox );
my $edit = Gtk2::Ex::WYSIWYG->new(undo_stack => 0);
$main_vbox -> add ( $edit );
$window -> show_all;
Gtk2 -> main;

I am getting

GLib-GObject-WARNING **: invalid (NULL) pointer instance at
Gtk2-Ex-WYSIWYG/Gtk2/Ex/WYSIWYG.pm line 536.
GLib-GObject-CRITICAL **: g_signal_connect_data: assertion
`G_TYPE_CHECK_INSTANCE (instance)' failed at
Gtk2-Ex-WYSIWYG/Gtk2/Ex/WYSIWYG.pm line 536.
GLib-GObject-WARNING **: invalid (NULL) pointer instance at
Gtk2-Ex-WYSIWYG/Gtk2/Ex/WYSIWYG.pm line 540.
GLib-GObject-CRITICAL **: g_signal_connect_data: assertion
`G_TYPE_CHECK_INSTANCE (instance)' failed at
Gtk2-Ex-WYSIWYG/Gtk2/Ex/WYSIWYG.pm line 540.

Regards

Jeff



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