diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-04-07 21:35:30 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-04-07 21:35:30 +0800 |
commit | 7906aeb81fc96b59fc3cb3b137dfdf50a87af099 (patch) | |
tree | ea9d0d4c7797a73a0089cd5f2f7dc3219ce84e70 | |
parent | fc107ee85585fe7a482f25a24fcce56494d23a3d (diff) | |
download | gsoc2013-empathy-7906aeb81fc96b59fc3cb3b137dfdf50a87af099.tar gsoc2013-empathy-7906aeb81fc96b59fc3cb3b137dfdf50a87af099.tar.gz gsoc2013-empathy-7906aeb81fc96b59fc3cb3b137dfdf50a87af099.tar.bz2 gsoc2013-empathy-7906aeb81fc96b59fc3cb3b137dfdf50a87af099.tar.lz gsoc2013-empathy-7906aeb81fc96b59fc3cb3b137dfdf50a87af099.tar.xz gsoc2013-empathy-7906aeb81fc96b59fc3cb3b137dfdf50a87af099.tar.zst gsoc2013-empathy-7906aeb81fc96b59fc3cb3b137dfdf50a87af099.zip |
set default name when saving logs (#615052)
-rw-r--r-- | 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 a4bdd1053..ffe3fa0b6 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); |