comparison src/gtkdebug.c @ 9486:59d986a931d4

[gaim-migrate @ 10311] (13:04:18) nosnilmot: LSchiere: I compile with gcc 2.9x ... committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Thu, 08 Jul 2004 17:13:04 +0000
parents b917acdc982f
children 85caa0722dfc
comparison
equal deleted inserted replaced
9485:3fed61fa0f70 9486:59d986a931d4
259 #endif 259 #endif
260 260
261 static void 261 static void
262 save_cb(GtkWidget *w, DebugWindow *win) 262 save_cb(GtkWidget *w, DebugWindow *win)
263 { 263 {
264 #if !GTK_CHECK_VERSION(2,4,0)
265 gchar *buf;
266 #endif
267
264 if (win->save != NULL) { 268 if (win->save != NULL) {
265 gtk_window_present(GTK_WINDOW(win->save)); 269 gtk_window_present(GTK_WINDOW(win->save));
266 return; 270 return;
267 } 271 }
268 272
277 gtk_file_chooser_set_current_name(GTK_FILE_CHOOSER(win->save), 281 gtk_file_chooser_set_current_name(GTK_FILE_CHOOSER(win->save),
278 "gaim-debug.log"); 282 "gaim-debug.log");
279 g_signal_connect(G_OBJECT(win->save), "response", 283 g_signal_connect(G_OBJECT(win->save), "response",
280 G_CALLBACK(save_checkfile_cb), win); 284 G_CALLBACK(save_checkfile_cb), win);
281 #else /* FILECHOOSER */ 285 #else /* FILECHOOSER */
282 gchar *buf;
283
284 win->save = gtk_file_selection_new(_("Save Debug Log")); 286 win->save = gtk_file_selection_new(_("Save Debug Log"));
285 buf = g_strdup_printf("%s" G_DIR_SEPARATOR_S "gaim-debug.log", 287 buf = g_strdup_printf("%s" G_DIR_SEPARATOR_S "gaim-debug.log",
286 gaim_home_dir()); 288 gaim_home_dir());
287 gtk_file_selection_set_filename(GTK_FILE_SELECTION(win->save), buf); 289 gtk_file_selection_set_filename(GTK_FILE_SELECTION(win->save), buf);
288 g_free(buf); 290 g_free(buf);