Mercurial > pidgin.yaz
comparison src/dialogs.c @ 7378:fd17af0b7df1
[gaim-migrate @ 7973]
ok, now it works, but doesn't close the window or clear the contents of it.
that won't keep me up nights.
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Thu, 30 Oct 2003 07:00:11 +0000 |
parents | d26b9508d5f8 |
children | 643cbc9a6035 |
comparison
equal
deleted
inserted
replaced
7377:d26b9508d5f8 | 7378:fd17af0b7df1 |
---|---|
1967 g_free(buf); | 1967 g_free(buf); |
1968 } | 1968 } |
1969 | 1969 |
1970 g_free(filename); | 1970 g_free(filename); |
1971 | 1971 |
1972 gtk_widget_destroy(view->window); | 1972 if(view) |
1973 gtk_widget_destroy(view->window); | |
1973 } | 1974 } |
1974 | 1975 |
1975 static void show_clear_log(GtkWidget *w, struct view_log *view) | 1976 static void show_clear_log(GtkWidget *w, struct view_log *view) |
1976 { | 1977 { |
1977 char *text; | 1978 char *text; |
1979 void *clear_handle; | |
1978 | 1980 |
1979 if ((view != NULL ) && (view->clear_handle != NULL)) | 1981 if ((view != NULL ) && (view->clear_handle != NULL)) |
1980 return; | 1982 return; |
1981 | 1983 |
1982 text = g_strdup_printf(_("You are about to remove the log file for %s. Do you want to continue?"), | 1984 text = g_strdup_printf(_("You are about to remove the log file for %s. Do you want to continue?"), |
1983 view ? view->name : _("System Log")); | 1985 view ? view->name : _("System Log")); |
1984 view->clear_handle = gaim_request_action(NULL, NULL, _("Remove Log"), | 1986 clear_handle = gaim_request_action(NULL, NULL, _("Remove Log"), |
1985 text, -1, view, 2, | 1987 text, -1, view, 2, |
1986 _("Remove Log"), | 1988 _("Remove Log"), |
1987 G_CALLBACK(do_clear_log_file), | 1989 G_CALLBACK(do_clear_log_file), |
1988 _("Cancel"), NULL); | 1990 _("Cancel"), NULL); |
1991 if(view) | |
1992 view->clear_handle = clear_handle; | |
1989 g_free(text); | 1993 g_free(text); |
1990 } | 1994 } |
1991 | 1995 |
1992 static void log_show_convo(struct view_log *view) | 1996 static void log_show_convo(struct view_log *view) |
1993 { | 1997 { |