Commit 51cacb9c authored by Naba Kumar's avatar Naba Kumar

Marked string for translation. Fixed memory leak.

	* libanjuta/anjuta-vcs-status-tree-view.c:
	* plugins/subversion/subversion-diff-dialog.c:
	Marked string for translation.
	* plugins/subversion/subversion-ui-utils.c:
	Fixed memory leak.

svn path=/trunk/; revision=4115
parent 71654792
2008-07-10 Ignacio Casal Quinteiro <nacho.resa@gmail.com>
reviewed by Naba Kumar <naba@gnome.org>:
* libanjuta/anjuta-vcs-status-tree-view.c:
* plugins/subversion/subversion-diff-dialog.c:
Marked string for translation.
* plugins/subversion/subversion-ui-utils.c:
Fixed memory leak.
2008-08-04 Naba Kumar <naba@gnome.org>
Patch from James Liggett:
......@@ -23,6 +23,7 @@
*/
#include "anjuta-vcs-status-tree-view.h"
#include <glib/gi18n.h>
enum
{
......@@ -288,27 +289,27 @@ anjuta_vcs_status_tree_view_add (AnjutaVcsStatusTreeView *self, gchar *path,
{
case ANJUTA_VCS_STATUS_MODIFIED:
gtk_list_store_set (self->priv->store, &iter, COL_STATUS,
"Modified", -1);
_("Modified"), -1);
break;
case ANJUTA_VCS_STATUS_ADDED:
gtk_list_store_set (self->priv->store, &iter, COL_STATUS,
"Added", -1);
_("Added"), -1);
break;
case ANJUTA_VCS_STATUS_DELETED:
gtk_list_store_set (self->priv->store, &iter, COL_STATUS,
"Deleted", -1);
_("Deleted"), -1);
break;
case ANJUTA_VCS_STATUS_CONFLICTED:
gtk_list_store_set (self->priv->store, &iter, COL_STATUS,
"Conflicted", -1);
_("Conflicted"), -1);
break;
case ANJUTA_VCS_STATUS_MISSING:
gtk_list_store_set (self->priv->store, &iter, COL_STATUS,
"Missing", -1);
_("Missing"), -1);
break;
case ANJUTA_VCS_STATUS_UNVERSIONED:
gtk_list_store_set (self->priv->store, &iter, COL_STATUS,
"Unversioned", -1);
_("Unversioned"), -1);
break;
case ANJUTA_VCS_STATUS_NONE:
default:
......
......@@ -48,6 +48,8 @@ on_subversion_diff_response(GtkDialog* dialog, gint response, SubversionData* da
{
case GTK_RESPONSE_OK:
{
gchar *aux;
diff_path_entry = glade_xml_get_widget (data->gxml,
"diff_path_entry");
diff_no_recursive_check = glade_xml_get_widget (data->gxml,
......@@ -69,8 +71,10 @@ on_subversion_diff_response(GtkDialog* dialog, gint response, SubversionData* da
docman = anjuta_shell_get_interface (ANJUTA_PLUGIN (data->plugin)->shell,
IAnjutaDocumentManager, NULL);
filename = get_filename_from_full_path ((gchar *) path);
editor_name = g_strdup_printf ("[Head/Working Copy] %s.diff",
filename);
aux = g_strdup (_("[Head/Working Copy]"));
editor_name = g_strdup_printf ("%s %s.diff", aux, filename);
g_free (aux);
editor = ianjuta_document_manager_add_buffer(docman, editor_name,
"", NULL);
......
......@@ -123,6 +123,8 @@ get_log_from_textview (GtkWidget* textview)
/* #warning FIXME: Check for escape chars in log */
/* Fixed. -naba*/
escaped_log = anjuta_util_escape_quotes (log);
g_free (log);
return escaped_log;
}
......@@ -181,7 +183,6 @@ report_errors (AnjutaCommand *command, guint return_code)
anjuta_util_dialog_error (NULL, message);
g_free (message);
}
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment