Wireshark-dev: Re: [Wireshark-dev] [Wireshark-commits] rev 38261: /trunk/ /trunk/: configure.in
From: Jeff Morriss <jeff.morriss.ws@xxxxxxxxx>
Date: Thu, 04 Aug 2011 17:42:40 -0400
Anders Broman wrote:
Michael Tüxen skrev 2011-08-01 18:39:
On Aug 1, 2011, at 6:14 PM, Anders Broman wrote:

Hi,
I found this code in a more recent version of the file
http://buzztard.svn.sourceforge.net/viewvc/buzztard/trunk/buzztard/src/ui/edit/gtkvumeter.c?view=log

#if !GTK_CHECK_VERSION(2,20,0)
#define gtk_widget_set_realized(widget, flag) \
  if (flag) GTK_WIDGET_SET_FLAGS (widget, GTK_REALIZED); \
  else GTK_WIDGET_UNSET_FLAGS (widget, GTK_REALIZED)
#define gtk_widget_get_realized(widget) \
  ((GTK_WIDGET_FLAGS (widget)&  GTK_REALIZED) != 0)
#endif
Hi Anders,

it would make sense to add this to old-gtk-compat.h, but it does NOT resolve
the issue. I still can't compile with GSEAL_ENABLE...

Maybe we need to require a higher version of the gkt library
I'm thinking that we should perhaps only use GSEAL_ENABLE if GTK version is 2.22 or higher as there seems to be quite a few accessors missing. On the other hand gtkvumeter seems to be only used in capture_if_details_dlg.c in case of 802.11 i.e AirPcap I presume. So the whole code could be #ifdeff:ed out
on non Windows with AirPcap.

I was still having problems compiling in gtk, so I took your suggestion and made this change (r38341).