aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--ChangeLog.ja5
-rw-r--r--src/folderview.c4
3 files changed, 14 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b96abd7b..803d0f1c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-04-15
+
+ * src/folderview.c: folderview_create(): check GTK version for
+ "ellipsize" property.
+
2005-04-13
* src/folderview.c: modified include.
diff --git a/ChangeLog.ja b/ChangeLog.ja
index 178db212..a790379c 100644
--- a/ChangeLog.ja
+++ b/ChangeLog.ja
@@ -1,3 +1,8 @@
+2005-04-15
+
+ * src/folderview.c: folderview_create(): "ellipsize" プロパティの
+ ために GTK のバージョンをチェック。
+
2005-04-13
* src/folderview.c: include を修正。
diff --git a/src/folderview.c b/src/folderview.c
index 17816752..9c848218 100644
--- a/src/folderview.c
+++ b/src/folderview.c
@@ -336,8 +336,12 @@ FolderView *folderview_create(void)
NULL);
renderer = gtk_cell_renderer_text_new();
+#if GTK_CHECK_VERSION(2, 6, 0)
g_object_set(renderer, "ellipsize", PANGO_ELLIPSIZE_END, "ypad", 0,
NULL);
+#else
+ g_object_set(renderer, "ypad", 0, NULL);
+#endif
gtk_tree_view_column_pack_start(column, renderer, TRUE);
gtk_tree_view_column_set_attributes(column, renderer,
"text", COL_FOLDER_NAME,