[empathy] set default name when saving logs (#615052)
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] set default name when saving logs (#615052)
- Date: Wed, 7 Apr 2010 15:45:11 +0000 (UTC)
commit 7906aeb81fc96b59fc3cb3b137dfdf50a87af099
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Wed Apr 7 15:35:30 2010 +0200
set default name when saving logs (#615052)
src/empathy-debug-window.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-debug-window.c b/src/empathy-debug-window.c
index a4bdd10..ffe3fa0 100644
--- a/src/empathy-debug-window.c
+++ b/src/empathy-debug-window.c
@@ -1070,6 +1070,7 @@ debug_window_save_clicked_cb (GtkToolButton *tool_button,
EmpathyDebugWindow *debug_window)
{
GtkWidget *file_chooser;
+ gchar *name, *tmp;
file_chooser = gtk_file_chooser_dialog_new (_("Save"),
GTK_WINDOW (debug_window), GTK_FILE_CHOOSER_ACTION_SAVE,
@@ -1084,6 +1085,13 @@ debug_window_save_clicked_cb (GtkToolButton *tool_button,
gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (file_chooser),
g_get_tmp_dir ());
+ name = get_active_cm_name (debug_window);
+ tmp = g_strdup_printf ("%s.log", name);
+ g_free (name);
+
+ gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (file_chooser), tmp);
+ g_free (tmp);
+
g_signal_connect (file_chooser, "response",
G_CALLBACK (debug_window_save_file_chooser_response_cb),
debug_window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]