Wireshark-dev: Re: [Wireshark-dev] Redefining gtk version in uat_gui.c?
From: "Lars Ruoff" <[email protected]>
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: [email protected] 
> [mailto:[email protected]] On Behalf Of 
> Stephen Fisher
> Sent: lundi 7 avril 2008 06:18
> To: [email protected]
> 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
> [email protected]
> http://www.wireshark.org/mailman/listinfo/wireshark-dev
>