Wireshark-dev: Re: [Wireshark-dev] [Wireshark-commits] rev 38546: /trunk/gtk/ /trunk/gtk/: foll

From: Stephen Fisher <steve@xxxxxxxxxxxxxxxxxx>
Date: Mon, 15 Aug 2011 10:21:43 -0600
This call:

   gtk_quit_add_destroy(gtk_main_level(), GTK_OBJECT(streamwindow));

Appears to tell GTK to destroy the object "streamwindow" if Wireshark is 
being closed entirely.  This then calls the signal that was connected a 
few lines earlier:

  g_signal_connect(streamwindow, "destroy", G_CALLBACK(follow_destroy_cb), NULL);

Which calls the function "follow_destroy_cb" when the object 
"streamwindow" is destroyed.  That "follow_destroy_cb" deletes the 
temporary file used by the Follow TCP Stream feature (the Follow TCP 
feeds the data into a temp file whereas Follow UDP and Follow SSL both 
feed it via a tap).

So I think something needs to be substitued if they've gotten rid rid of 
gtk_quit_add_destroy() in GTK 3..

On Mon, Aug 15, 2011 at 02:42:02PM +0000, etxrab@xxxxxxxxxxxxx wrote:
> http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=38546
> 
> User: etxrab
> Date: 2011/08/15 07:42 AM
> 
> Log:
>  gtk_quit_add_destroy() is deprecated in GTK 3.0.
>  (I hope tis is the right thing to do).
> 
> Directory: /trunk/gtk/
>   Changes    Path               Action
>   +6 -2      follow_stream.c    Modified
> 
> ___________________________________________________________________________
> Sent via:    Wireshark-commits mailing list <wireshark-commits@xxxxxxxxxxxxx>
> Archives:    http://www.wireshark.org/lists/wireshark-commits
> Unsubscribe: https://wireshark.org/mailman/options/wireshark-commits
>              mailto:wireshark-commits-request@xxxxxxxxxxxxx?subject=unsubscribe