Mercurial > gftp.yaz
diff src/gtk/misc-gtk.c @ 198:8fea1b1a2ec6
2003-6-22 Brian Masney <masneyb@gftp.org>
* lib/config_file.c lib/gftp.h - renamed parse_args to
gftp_config_parse_args() and removed the static declaration
* lib/protocols.c (gftp_request_destroy) - fixed memory problem with
the new local configuration interface
* src/gtk/gftp-gtk.c - added gftp_gtk_config_(read|write)_color().
I am overriding the read and write functions for
gftp_option_type_color to be these functions. This is so that I can
use a GdkColor structure instead of a gftp_color structure
* src/gtk/misc-gtk.c - when destroying the dialogs, set the pointers
to NULL before we call the callback functions. This is to make sure
that they aren't being used in the callbacks
* TODO - updated
author | masneyb |
---|---|
date | Mon, 23 Jun 2003 01:07:05 +0000 |
parents | 3fa7b4f4ab78 |
children | 0098dae654a5 |
line wrap: on
line diff
--- a/src/gtk/misc-gtk.c Sun Jun 22 22:54:02 2003 +0000 +++ b/src/gtk/misc-gtk.c Mon Jun 23 01:07:05 2003 +0000 @@ -808,7 +808,11 @@ ok_dialog_response (GtkWidget * widget, gftp_dialog_data * ddata) { if (ddata->edit == NULL) - gtk_widget_destroy (ddata->dialog); + { + gtk_widget_destroy (ddata->dialog); + ddata->dialog = NULL; + ddata->checkbox = NULL; + } if (ddata->yesfunc != NULL) ddata->yesfunc (ddata->yespointer, ddata); @@ -824,7 +828,11 @@ cancel_dialog_response (GtkWidget * widget, gftp_dialog_data * ddata) { if (ddata->edit == NULL) - gtk_widget_destroy (ddata->dialog); + { + gtk_widget_destroy (ddata->dialog); + ddata->dialog = NULL; + ddata->checkbox = NULL; + } if (ddata->nofunc != NULL) ddata->nofunc (ddata->nopointer, ddata); @@ -839,7 +847,11 @@ dialog_response (GtkWidget * widget, gint response, gftp_dialog_data * ddata) { if (ddata->edit == NULL) - gtk_widget_destroy (ddata->dialog); + { + gtk_widget_destroy (ddata->dialog); + ddata->dialog = NULL; + ddata->checkbox = NULL; + } switch (response) {