From f71d13b16e3bc3923eaeee775d6e0d5e7dfac010 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 15 Jan 2003 05:58:50 +0000 Subject: Move the code that associates buttons with filter dialogs, and vice versa, into "filter_dialog_new()", rather than replicating it in a couple of routines. The return value of "display_filter_construct_cb()" isn't used for anything, it's ignored by most callers and stored but subsequently ignored by io_stat.c; get rid of the return value, and don't bother storing it in io_stat.c. Before destroying a filter dialog box associated with a button being destroyed, break the association. Get rid of an unused variable in io_stat.c. svn path=/trunk/; revision=6931 --- gtk/filter_prefs.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'gtk/filter_prefs.h') diff --git a/gtk/filter_prefs.h b/gtk/filter_prefs.h index ef92174947..cc85a5d8eb 100644 --- a/gtk/filter_prefs.h +++ b/gtk/filter_prefs.h @@ -3,13 +3,12 @@ * (This used to be a notebook page under "Preferences", hence the * "prefs" in the file name.) * - * $Id: filter_prefs.h,v 1.14 2003/01/15 05:20:19 guy Exp $ + * $Id: filter_prefs.h,v 1.15 2003/01/15 05:58:50 guy Exp $ * * Ethereal - Network traffic analyzer - * By Gerald Combs + * By Gerald Combs * Copyright 1998 Gerald Combs * - * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 @@ -40,7 +39,7 @@ typedef struct { } construct_args_t; void capture_filter_construct_cb(GtkWidget *w, gpointer user_data); -GtkWidget *display_filter_construct_cb(GtkWidget *w, gpointer construct_args_ptr); +void display_filter_construct_cb(GtkWidget *w, gpointer construct_args_ptr); void filter_button_destroy_cb(GtkWidget *button, gpointer user_data); void cfilter_dialog_cb(GtkWidget *w); void dfilter_dialog_cb(GtkWidget *w); -- cgit v1.2.3