Ethereal-dev: Re: [ethereal-dev] Filter Colorization patch(es)

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Tue, 24 Aug 1999 00:10:00 -0700 (PDT)
Also, one call to "gtk_object_set_data_full()" wasn't passing the right
pointer as the data to be handed to "gtk_widget_unref()" (causing
complaints from GTK+ whenever you dismissed the color-editing dialog box):

*** colors.c.orig	Tue Aug 24 00:08:40 1999
--- colors.c	Tue Aug 24 00:07:33 1999
***************
*** 962,968 ****
  
    *colorize_filter_name = gtk_entry_new ();
    gtk_widget_ref (*colorize_filter_name);
!   gtk_object_set_data_full (GTK_OBJECT (colorize_win), "*colorize_filter_name", colorize_filter_name,
                              (GtkDestroyNotify) gtk_widget_unref);
    gtk_entry_set_text(GTK_ENTRY(*colorize_filter_name),
  	get_color_filter_name(cf, cf->colors->row_selected));
--- 962,968 ----
  
    *colorize_filter_name = gtk_entry_new ();
    gtk_widget_ref (*colorize_filter_name);
!   gtk_object_set_data_full (GTK_OBJECT (colorize_win), "*colorize_filter_name", *colorize_filter_name,
                              (GtkDestroyNotify) gtk_widget_unref);
    gtk_entry_set_text(GTK_ENTRY(*colorize_filter_name),
  	get_color_filter_name(cf, cf->colors->row_selected));