Wireshark

  • Riverbed Technology
  • WinPcap
the world's foremost network protocol analyzer
  • Wireshark
    • About
    • Download
    • Blog
  • Get Help
    • Ask a Question
    • FAQs
    • Documentation
    • Mailing Lists
    • Online Tools
    • Wiki
    • Bug Tracker
  • Develop
    • Get Involved
    • Developer's Guide
    • Browse the Code
    • Latest Builds

Wireshark-dev: Re: [Wireshark-dev] Statistcs windows not destroyed with main window

Date Index Thread Index Other Months All Mailing Lists
Date Prev Date Next Thread Prev Thread Next


From: Stephen Fisher <steve@xxxxxxxxxxxxxxxxxx>
Date: Fri, 6 Mar 2009 11:47:22 -0700

Sorry, I left out the first function that needs to be called:

  gtk_window_set_transient_for(GTK_WINDOW(child), GTK_WINDOW(parent));

I'm looking at my code from gtk/follow_stream.c for the "find box" 
(search for "find_dlg_w =").  The destroy with parent function only 
works on windows set transient to its parent, according to GTK 
documentation at 
http://library.gnome.org/devel/gtk/unstable/GtkWindow.html#gtk-window-set-transient-for

On Fri, Mar 06, 2009 at 07:12:55PM +0100, Anders Broman wrote:
> Hi,
> Tried but I didn't get it to work :-( 
> 
> -----Original Message-----
> From: wireshark-dev-bounces@xxxxxxxxxxxxx
> [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of Stephen Fisher
> Sent: den 6 mars 2009 19:00
> To: Developer support list for Wireshark
> Subject: Re: [Wireshark-dev] Statistcs windows not destroyed with main
> window
> 
> On Fri, Mar 06, 2009 at 05:50:28PM +0100, Anders Broman wrote:
> 
> > I have noted that many statistics windows does not get destroyed with 
> > the main window.  E.g if the main window is destroyed first the 
> > statistics window remains.
> > How does one connect those windows to the main one?
> 
> Try gtk_window_set_destroy_with_parent(GTK_WINDOW(widget), TRUE); where
> widget is the GtkWidget* for the child window.
> 
> 
> Steve
> ________________________________________________________________________
> ___
> Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
> Archives:    http://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
>  
> mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe
> ___________________________________________________________________________
> Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
> Archives:    http://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
>              mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe

  • Follow-Ups:
    • Re: [Wireshark-dev] Statistcs windows not destroyed with main window
      • From: Anders Broman
  • References:
    • [Wireshark-dev] Statistcs windows not destroyed with main window
      • From: Anders Broman
    • Re: [Wireshark-dev] Statistcs windows not destroyed with main window
      • From: Stephen Fisher
    • Re: [Wireshark-dev] Statistcs windows not destroyed with main window
      • From: Anders Broman
  • Prev by Date: Re: [Wireshark-dev] Statistcs windows not destroyed with main window
  • Next by Date: Re: [Wireshark-dev] Statistcs windows not destroyed with main window
  • Previous by thread: Re: [Wireshark-dev] Statistcs windows not destroyed with main window
  • Next by thread: Re: [Wireshark-dev] Statistcs windows not destroyed with main window
  • Index(es):
    • Date
    • Thread

Wireshark and the "fin" logo are registered trademarks of the Wireshark Foundation