[gtranslator] Set the right title
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtranslator] Set the right title
- Date: Thu, 11 Feb 2010 19:49:18 +0000 (UTC)
commit 85a005bb4d95418f7f2ad8def450c1611cf7346a
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Thu Feb 11 20:49:00 2010 +0100
Set the right title
src/gtr-window.c | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/src/gtr-window.c b/src/gtr-window.c
index c15ee6c..a09c7ed 100644
--- a/src/gtr-window.c
+++ b/src/gtr-window.c
@@ -934,21 +934,25 @@ set_window_title (GtrWindow * window, gboolean with_path)
if (with_path)
{
- po = gtr_tab_get_po (GTR_TAB (gtr_window_get_active_tab (window)));
+ gchar *path;
+
active_tab = gtr_window_get_active_tab (window);
+ po = gtr_tab_get_po (active_tab);
state = gtr_po_get_state (gtr_tab_get_po (active_tab));
po = gtr_tab_get_po (active_tab);
file = gtr_po_get_location (po);
+ path = g_file_get_path (file);
if (state == GTR_PO_STATE_MODIFIED)
- title = g_strdup_printf (_("gtr - *%s"), g_file_get_path (file));
+ title = g_strdup_printf (_("gtranslator - *%s"), path);
else
- title = g_strdup_printf (_("gtr - %s"), g_file_get_path (file));
+ title = g_strdup_printf (_("gtranslator - %s"), path);
+ g_free (path);
g_object_unref (file);
}
else
- title = g_strdup (_("gtr"));
+ title = g_strdup (_("gtranslator"));
gtk_window_set_title (GTK_WINDOW (window), title);
g_free (title);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]