ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

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

From: Stephen Fisher <stephentfisher@xxxxxxxxx>
Date: Sun, 6 Apr 2008 22:18:28 -0600
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