aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-04-06 05:20:05 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-04-06 05:20:05 +0000
commite5453312103747f444109ed8d2059aa1c7cdef4b (patch)
treeeb135edae5cebcd09bbc4c75e619ce8234ba0483
parentbeedd408b15d15073d135252043fd47d421f4ab4 (diff)
made the position of the ruler ticks accurate.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1598 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r--ChangeLog4
-rw-r--r--ChangeLog.ja4
-rw-r--r--src/compose.c5
3 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index ef6924a7..3b60dd40 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2007-04-06
+ * src/compose.c: made the position of the ruler ticks accurate.
+
+2007-04-06
+
* libsylph/filter.[ch]: return error code.
* src/inc.c
src/summaryview.c: display error dialog if the execution of the
diff --git a/ChangeLog.ja b/ChangeLog.ja
index ff229c7f..a90eec18 100644
--- a/ChangeLog.ja
+++ b/ChangeLog.ja
@@ -1,5 +1,9 @@
2007-04-06
+ * src/compose.c: ルーラの目盛り位置を正確にした。
+
+2007-04-06
+
* libsylph/filter.[ch]: エラーコードを返すようにした。
* src/inc.c
src/summaryview.c: 迷惑メールフィルタコマンドの実行に失敗した
diff --git a/src/compose.c b/src/compose.c
index fd468ad0..804a91d8 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -4512,8 +4512,6 @@ static Compose *compose_create(PrefsAccount *account, ComposeMode mode)
ruler = gtk_shruler_new();
gtk_ruler_set_range(GTK_RULER(ruler), 0.0, 100.0, 1.0, 100.0);
- gtk_shruler_set_start_pos(GTK_SHRULER(ruler),
- BORDER_WIDTH + TEXTVIEW_MARGIN);
gtk_box_pack_start(GTK_BOX(ruler_hbox), ruler, TRUE, TRUE, 0);
/* text widget */
@@ -4538,6 +4536,9 @@ static Compose *compose_create(PrefsAccount *account, ComposeMode mode)
sig_tag = gtk_text_buffer_create_tag(buffer, "signature", NULL);
gtk_container_add(GTK_CONTAINER(scrolledwin), text);
+ gtk_shruler_set_start_pos(GTK_SHRULER(ruler),
+ text->style->xthickness + TEXTVIEW_MARGIN);
+
g_signal_connect(G_OBJECT(text), "grab_focus",
G_CALLBACK(compose_grab_focus_cb), compose);
g_signal_connect(G_OBJECT(buffer), "insert_text",