Wireshark-dev: Re: [Wireshark-dev] Redefining gtk version in uat_gui.c?

From: "Lars Ruoff" <lars.ruoff@xxxxxxxxxxxxxxxxx>
Date: Mon, 7 Apr 2008 10:23:19 +0200
That must be a subversive trick from Jeff Morris in order to silently
maintain GTK1 code!!! ;-)
 

> -----Original Message-----
> From: wireshark-dev-bounces@xxxxxxxxxxxxx 
> [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of 
> Stephen Fisher
> Sent: lundi 7 avril 2008 06:18
> To: wireshark-dev@xxxxxxxxxxxxx
> Subject: [Wireshark-dev] Redefining gtk version in uat_gui.c?
> 
> Why does this code at the top of gtk/uat_gui.c redefine 
> GTK_MAJOR_VERSION to 1 if it is >= 2??
> 
> if GTK_MAJOR_VERSION >= 2
> # undef GTK_MAJOR_VERSION
> # define GTK_MAJOR_VERSION 1
> # define BUTTON_SIZE_X -1
> # define BUTTON_SIZE_Y -1
> #else
> # define BUTTON_SIZE_X 50
> # define BUTTON_SIZE_Y 20
> #endif
> 
> _______________________________________________
> Wireshark-dev mailing list
> Wireshark-dev@xxxxxxxxxxxxx
> http://www.wireshark.org/mailman/listinfo/wireshark-dev
>