aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2008-04-21 16:41:29 +0800
committerMilan Crha <mcrha@src.gnome.org>2008-04-21 16:41:29 +0800
commit4a1c3b9aba20635705cb5a76f11c793ad597a6d4 (patch)
tree38c0ca1b6217ea111ce3f780a7760d3c57701df7
parentd48f96dd9f5cb5e8837b5c42b416cfbdb5eecfb1 (diff)
downloadgsoc2013-evolution-4a1c3b9aba20635705cb5a76f11c793ad597a6d4.tar
gsoc2013-evolution-4a1c3b9aba20635705cb5a76f11c793ad597a6d4.tar.gz
gsoc2013-evolution-4a1c3b9aba20635705cb5a76f11c793ad597a6d4.tar.bz2
gsoc2013-evolution-4a1c3b9aba20635705cb5a76f11c793ad597a6d4.tar.lz
gsoc2013-evolution-4a1c3b9aba20635705cb5a76f11c793ad597a6d4.tar.xz
gsoc2013-evolution-4a1c3b9aba20635705cb5a76f11c793ad597a6d4.tar.zst
gsoc2013-evolution-4a1c3b9aba20635705cb5a76f11c793ad597a6d4.zip
** Fix for bug #323402
2008-04-21 Milan Crha <mcrha@redhat.com> ** Fix for bug #323402 * em-folder-tree.c: (folder_tree_new): * evolution-mail.schemas.in: Be able to disable ellipsizing of folder names with hidden option /apps/evolution/mail/display/no_folder_dots. svn path=/trunk/; revision=35395
-rw-r--r--mail/ChangeLog8
-rw-r--r--mail/em-folder-tree.c3
-rw-r--r--mail/evolution-mail.schemas.in14
3 files changed, 24 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index aa09e8976c..c90b054d0b 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,11 @@
+2008-04-21 Milan Crha <mcrha@redhat.com>
+
+ ** Fix for bug #323402
+
+ * em-folder-tree.c: (folder_tree_new):
+ * evolution-mail.schemas.in: Be able to disable ellipsizing of folder
+ names with hidden option /apps/evolution/mail/display/no_folder_dots.
+
2008-04-20 Srinivasa Ragavan <sragavan@novell.com>
** Fix for bug #334444
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c
index c350ac2049..4e94103d44 100644
--- a/mail/em-folder-tree.c
+++ b/mail/em-folder-tree.c
@@ -515,7 +515,8 @@ folder_tree_new (EMFolderTree *emft, EMFolderTreeModel *model)
gtk_tree_view_column_set_cell_data_func (column, renderer, render_pixbuf, NULL, NULL);
renderer = gtk_cell_renderer_text_new ();
- g_object_set (G_OBJECT (renderer), "ellipsize", PANGO_ELLIPSIZE_END, NULL);
+ if (!gconf_client_get_bool (gconf, "/apps/evolution/mail/display/no_folder_dots", NULL))
+ g_object_set (G_OBJECT (renderer), "ellipsize", PANGO_ELLIPSIZE_END, NULL);
gtk_tree_view_column_pack_start (column, renderer, TRUE);
gtk_tree_view_column_set_cell_data_func (column, renderer, render_display_name, NULL, NULL);
diff --git a/mail/evolution-mail.schemas.in b/mail/evolution-mail.schemas.in
index 2e6785fe6c..8259f67c64 100644
--- a/mail/evolution-mail.schemas.in
+++ b/mail/evolution-mail.schemas.in
@@ -226,6 +226,20 @@
</schema>
<schema>
+ <key>/schemas/apps/evolution/mail/display/no_folder_dots</key>
+ <applyto>/apps/evolution/mail/display/no_folder_dots</applyto>
+ <owner>evolution-mail</owner>
+ <type>bool</type>
+ <default>false</default>
+ <locale name="C">
+ <short>Disable or enable ellipsizing of folder names in folder tree</short>
+ <long>
+ Whether disable ellipsizing feature of folder names in folder tree.
+ </long>
+ </locale>
+ </schema>
+
+ <schema>
<key>/schemas/apps/evolution/mail/display/magic_spacebar</key>
<applyto>/apps/evolution/mail/display/magic_spacebar</applyto>
<owner>evolution-mail</owner>