diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-01-19 06:16:33 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-01-19 06:16:33 +0000 |
commit | db782099bae2ae6adebf9dcf871042b9f887dca6 (patch) | |
tree | eafbf000c0af4cab1f82b6e5d5d2337a525d3d2b | |
parent | 8d33c1b421bdea067976477ba3bedaaca6121fa0 (diff) |
compose.c, undo.c: fixed wrong signal connection, modified ruler and toolbar sizing.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@16 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r-- | src/compose.c | 6 | ||||
-rw-r--r-- | src/undo.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/compose.c b/src/compose.c index 5a8cce4d..6c1e2d53 100644 --- a/src/compose.c +++ b/src/compose.c @@ -3995,8 +3995,7 @@ 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_box_pack_start(GTK_BOX(ruler_hbox), ruler, TRUE, TRUE, - BORDER_WIDTH + 1); - gtk_widget_set_size_request(ruler_hbox, 1, -1); + BORDER_WIDTH); /* text widget */ scrolledwin = gtk_scrolled_window_new(NULL, NULL); @@ -4024,7 +4023,7 @@ static Compose *compose_create(PrefsAccount *account, ComposeMode mode) g_signal_connect(G_OBJECT(text), "activate", G_CALLBACK(text_activated), compose); #endif - g_signal_connect(G_OBJECT(text), "insert_text", + g_signal_connect(G_OBJECT(buffer), "insert_text", G_CALLBACK(text_inserted), compose); g_signal_connect_after(G_OBJECT(text), "size_allocate", G_CALLBACK(compose_edit_size_alloc), @@ -4307,6 +4306,7 @@ static void compose_toolbar_create(Compose *compose, GtkWidget *container) GTK_ORIENTATION_HORIZONTAL); gtk_toolbar_set_style(GTK_TOOLBAR(toolbar), GTK_TOOLBAR_BOTH); gtk_container_add(GTK_CONTAINER(container), toolbar); + gtk_widget_set_size_request(toolbar, 1, -1); icon_wid = stock_pixmap_widget(container, STOCK_PIXMAP_MAIL_SEND); send_btn = gtk_toolbar_append_item(GTK_TOOLBAR(toolbar), @@ -96,11 +96,11 @@ UndoMain *undo_init(GtkWidget *text) undostruct->undo_state = FALSE; undostruct->redo_state = FALSE; - g_signal_connect(G_OBJECT(text), "insert-text", + g_signal_connect(G_OBJECT(textbuf), "insert-text", G_CALLBACK(undo_insert_text_cb), undostruct); - g_signal_connect(G_OBJECT(text), "delete-text", + g_signal_connect(G_OBJECT(textbuf), "delete-range", G_CALLBACK(undo_delete_text_cb), undostruct); - g_signal_connect(G_OBJECT(text), "paste-clipboard", + g_signal_connect(G_OBJECT(textview), "paste-clipboard", G_CALLBACK(undo_paste_clipboard_cb), undostruct); return undostruct; |