Re: Can you help me compile a single widget?(I want to patch it later on).

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

 



Hello.

> Hi, I want to use GtkFixed as my preferred container(yes I am aware of the
> warnings against it). Currently there is an old bug that prevents me from
> fully utilising it. I am referring to bug 81630. Although there are
> available 2 patches there is no word from the developers. I want to test
> them myself. If they work I just want to use the patched GtkFixed and NOT
> compile the whole Gtk+ and link it with my small application. I figured that
> all I had to do was just change GTK_FIXED*/gtk_fixed* to
> GTK_FIXED2*/gtk_fixed2*. But before that I wanted to test if I can compile
> GtkFixed alone(using the original code). The result was dissapointing.
> Anyways, a quick run on what I did. I grabbed the gtk-2.18.3 source(this is
> used by my distro). I grabbed gtkfixed.c and gtkfixed.h and put them on a
> separate folder. There I created a test.c which included gtkfixed.h and a
> dummy main(). (to make gcc happy). Then I tried to compile with "gcc test.c
> gtkfixed.c -o test `pkg-config gtk+-2.0 --libs --cflags`". This resulted in
> errors for missing headers. So I grabbed and put in the same folder
> gtkprivate.h, gtkintl.h, gtkalias.h and gtkaliasdef.c. After that it still
> complained about "config.h" so I just run "./configure" on the gtk2.18.3
> source and then grabbed the resulting config.h. After that it compiles about
> things I cannot understand and solve. The first few lines are:

This approach won't work here because widgets that are part of GTK+
are tightly integrated into that library and cannot be easily compiled
as standalone units.

Your best bet here would be to copy gtkfixed.[ch] files into some
folder, rename them to something like myfixed.[ch] and then manually
edit the code by replacing everything named gtk_fixed_ with my_fixed_,
removing references to internal headers, removing single include
headers, ... Or if I rephrase myself, you'll be busy for some time
now;)

Tadej


-- 
Tadej Borovšak
tadeboro.blogspot.com
tadeboro@xxxxxxxxx
tadej.borovsak@xxxxxxxxx
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux