aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2006-02-25 03:50:39 +0800
committerChristian Persch <chpe@src.gnome.org>2006-02-25 03:50:39 +0800
commitd7b5119cb8ddb4ad08bfb827f7ebba49552c0610 (patch)
tree0ce0a7926d8e10eb0f6040fdd3a2788fe45ec391
parente665f081cad919a243d5367c13ef039f8662bce5 (diff)
downloadgsoc2013-epiphany-d7b5119cb8ddb4ad08bfb827f7ebba49552c0610.tar
gsoc2013-epiphany-d7b5119cb8ddb4ad08bfb827f7ebba49552c0610.tar.gz
gsoc2013-epiphany-d7b5119cb8ddb4ad08bfb827f7ebba49552c0610.tar.bz2
gsoc2013-epiphany-d7b5119cb8ddb4ad08bfb827f7ebba49552c0610.tar.lz
gsoc2013-epiphany-d7b5119cb8ddb4ad08bfb827f7ebba49552c0610.tar.xz
gsoc2013-epiphany-d7b5119cb8ddb4ad08bfb827f7ebba49552c0610.tar.zst
gsoc2013-epiphany-d7b5119cb8ddb4ad08bfb827f7ebba49552c0610.zip
Distinguish different firefox profiles when showing the list to choose
2006-02-24 Christian Persch <chpe@cvs.gnome.org> * src/bookmarks/ephy-bookmarks-editor.c: (add_bookmarks_source): Distinguish different firefox profiles when showing the list to choose which one to import.
-rw-r--r--ChangeLog7
-rw-r--r--src/bookmarks/ephy-bookmarks-editor.c18
2 files changed, 24 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 43548d94a..7dce9919e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-02-24 Christian Persch <chpe@cvs.gnome.org>
+
+ * src/bookmarks/ephy-bookmarks-editor.c: (add_bookmarks_source):
+
+ Distinguish different firefox profiles when showing the list to
+ choose which one to import.
+
2006-02-24 Peter Harvey <peter.a.harvey@gmail.com>
* src/bookmarks/ephy-bookmark-action.c
diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c
index 3158953d1..badf962b8 100644
--- a/src/bookmarks/ephy-bookmarks-editor.c
+++ b/src/bookmarks/ephy-bookmarks-editor.c
@@ -628,7 +628,23 @@ add_bookmarks_source (const char *file,
if (strcmp (p, "firefox") == 0)
{
- description = g_strdup (_("Firefox"));
+ const char *profile = NULL, *dot;
+
+ if (path[i+1] != NULL)
+ {
+ dot = strchr (path[i+1], '.');
+ profile = dot ? dot + 1 : path[i+1];
+ }
+
+ if (profile != NULL && strcmp (profile, "default") != 0)
+ {
+ /* FIXME: proper i18n after freeze */
+ description = g_strdup_printf ("%s ā€œ%sā€", _("Firefox"), profile);
+ }
+ else
+ {
+ description = g_strdup (_("Firefox"));
+ }
}
else if (strcmp (p, ".firefox") == 0)
{