bug-gettext
[Top][All Lists]
Advanced

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

[bug-gettext] Glade/GtkBuilder related bugs


From: Miguel Ángel
Subject: [bug-gettext] Glade/GtkBuilder related bugs
Date: Fri, 25 Jan 2013 22:49:59 +0100

Hello to everyone.

I have sent a patch for the bug #34506 that solves the "context"
problem, but I think that is a first approach, because it looks for it
in every tag. I have spent a couple of days looking into the Glade code
and I have some ideas:
    * The first one is extend start_element_handler in x-glade.c to
support new GtkBuilder features. It could also solve bug #29216 and add
support to <item> elements, and it is easy to do, but this is not a
beautiful function actually.
    * The second one is modify x-glade.h and split glade support in two
extractor functions, one for GtkBuilder and one for the old way (or also
split Glade1 and Glade2). This also could be achieved creating a new
extractor (i.e. x-gtkbuilder.{c,h}) or refactoring the whole module and
possibly extracting libexpat support. Anyway, the context extraction
from Glade2 files (#34506) should be fixed because it is not a new
feature of GtkBuilder.

Also, It seems that libexpat is used nowhere except here, but I have
seen that libxml is used in gnulib. At least, libexpat code should be in
a separate header.

I will thank any advices if I have to sign anything to contribute with a
bigger code. I also could help with the refactor of other parsers that I
have seen you are going to do.

Cheers.
Miguel Ángel Arruga Vivas

Attachment: bug34506.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]