[Geany-Devel] alternate gtk+3 compatibility [was: geanyinsertnum - compatibility with gtk+ 3]

Dimitar Zhekov dimitar.zhekov at xxxxx
Fri Apr 12 17:03:00 UTC 2013


Attached are proof of concept patches for gtkcompat.h+ui_utils.h and
insertnum.c, against the current git. With these, insertnum compiles
and runs on anything - without the need to redefine any gtkcompat
symbols. In general, the definitions are changed from:

#define gtk_2.24_or_3.x_function_name  lower_gtk_version_emulation


#define missing_in_gtk3_function_name  gtk3_emulation

Of course, there is more work to be done - reverting the modernized
plugins, checking if the proper gtk combo boxes are passed to
ui_utils.c, and defining gtk_widget_get_allocated_width/height() for
Geany and the core plugins (they are not used in geany-plugins).

I should have though of that earlier, sorry. RFC.

E-gards: Jimmy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: insertnum.diff
Type: text/x-diff
Size: 2107 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/devel/attachments/20130412/914518f2/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gtkcompat.diff
Type: text/x-diff
Size: 11542 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/devel/attachments/20130412/914518f2/attachment-0001.diff>

More information about the Devel mailing list