changeset 9501:d95e134da0ac

[gaim-migrate @ 10328] Committing this in case I screw up the request thing committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 10 Jul 2004 16:45:36 +0000
parents db95a6641ec1
children 578986136bac
files src/gtkdebug.c
diffstat 1 files changed, 1 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkdebug.c	Sat Jul 10 16:06:41 2004 +0000
+++ b/src/gtkdebug.c	Sat Jul 10 16:45:36 2004 +0000
@@ -267,10 +267,6 @@
 static void
 save_cb(GtkWidget *w, DebugWindow *win)
 {
-#if !GTK_CHECK_VERSION(2,4,0)
-	gchar *buf;
-#endif
-
 	if (win->save != NULL) {
 		gtk_window_present(GTK_WINDOW(win->save));
 		return;
@@ -289,17 +285,14 @@
 	g_signal_connect(G_OBJECT(win->save), "response",
 					 G_CALLBACK(save_checkfile_cb), win);
 #else /* FILECHOOSER */
-	buf = g_strdup_printf("%s" G_DIR_SEPARATOR_S "gaim-debug.log",
-						  gaim_home_dir());
 	win->save = gtk_file_selection_new(_("Save Debug Log"));
-	gtk_file_selection_set_filename(GTK_FILE_SELECTION(win->save), buf);
+	gtk_file_selection_set_filename(GTK_FILE_SELECTION(win->save), "gaim-debug.log");
 	g_signal_connect(G_OBJECT(GTK_FILE_SELECTION(win->save)->ok_button),
 					 "clicked", G_CALLBACK(save_checkfile_cb), win);
 	g_signal_connect(G_OBJECT(GTK_FILE_SELECTION(win->save)->cancel_button),
 					 "clicked", G_CALLBACK(save_destroy_cb), win);
 	g_signal_connect(G_OBJECT(win->save),
 					 "destroy", G_CALLBACK(save_destroy_cb), win);
-	g_free(buf);
 #endif /* FILECHOOSER */
 
 	gtk_widget_show_all(GTK_WIDGET(win->save));