[MPlayer-dev-eng] [PATCH] GTK2 support

Elliott Mitchell ehem at m5p.com
Mon Feb 20 08:03:10 CET 2006


Diffed against 1.0pre7

The GUI is written for GTK1, the patch enables support for GTK2.

The main change is to the configure script, GTK2 uses `pkg-config` while
GTK1 used `gtk-config` and `glib-config`. As I'm on a Debian system, I've
also included a change to debian/control that tells Debian's scripts that
the GTK2 libraries will work as well.

The only actual C code change is to Gui/mplayer/gtk/about.c, all other
uses of GTK are officially okay by GTK2. According to GTK2 the gtk_text
widget API is broken (having looked at the API I think they're right).
This really should be replaced with a GtkTextView/GtkTextBuffer pair, but
for this quick patch I took the easy way out and defined
GTK_ENABLE_BROKEN.

Appears to work, brutal, but effective. No, I'm not up for a maintainer
role, I just wanted it working and I've purged GTK1 from this system
(damn! figured out how to do it right, and now I might implement it).


-- 
(\___(\___(\______          --=> 8-) EHM <=--          ______/)___/)___/)
 \BS (    |         EHeM at gremlin.m5p.com PGP 8881EF59         |    )   /
  \_CS\   |  _____  -O #include <stddisclaimer.h> O-   _____  |   /  _/
    \___\_|_/82 04 A1 3C C7 B1 37 2A*E3 6E 84 DA 97 4C 40 E6\_|_/___/


-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer-gtk2.diff
Type: text/x-patch
Size: 4196 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20060219/6f1e479e/attachment.bin>


More information about the MPlayer-dev-eng mailing list