-2001-07-08 [hoa]
+2001-07-09 [hoa]
* AUTHORS
changed my email address
* configure.in
fix incorrect description of --enable-ldap parameter
+ * src/prefs_common.[ch]
+ src/compose.c
+ add experimental option "smart wrapping" which make the
+ compose editor auto wrap.
+
+ | TODO: the problem with the buggy cursor handling is caused |
+ | by the GtkText. when deleting / backspacing text its |
+ | wrapping algorithm does not take in account the previous |
+ | line. should find a way to hack this in. |
+ | or should perhaps combine this with the word wrapping |
+ | patch i wrote in january. |
+
* src/about.c
show build parameters for LDAP and JPilot
gtk_scrolled_window_get_vadjustment
(GTK_SCROLLED_WINDOW(scrolledwin)));
gtk_stext_set_editable(GTK_STEXT(text), TRUE);
- gtk_stext_set_word_wrap(GTK_STEXT(text), TRUE);
- gtk_stext_set_wrap_rmargin(GTK_STEXT(text), prefs_common.linewrap_len);
+ if (prefs_common.smart_wrapping) {
+ gtk_stext_set_word_wrap(GTK_STEXT(text), TRUE);
+ gtk_stext_set_wrap_rmargin(GTK_STEXT(text), prefs_common.linewrap_len);
+ }
gtk_container_add(GTK_CONTAINER(scrolledwin), text);
GtkWidget * checkbtn_forward_as_attachment;
GtkWidget * checkbtn_reply_account_autoselect;
+ GtkWidget * checkbtn_smart_wrapping;
} compose;
static struct Display {
{"reply_account_autoselect", "TRUE", &prefs_common.reply_account_autoselect,
P_BOOL, &compose.checkbtn_reply_account_autoselect,
prefs_set_data_from_toggle, prefs_set_toggle},
+ {"smart_wrapping", "TRUE", &prefs_common.smart_wrapping,
+ P_BOOL, &compose.checkbtn_smart_wrapping,
+ prefs_set_data_from_toggle, prefs_set_toggle},
{"show_ruler", "TRUE", &prefs_common.show_ruler, P_BOOL,
NULL, NULL, NULL},
GtkWidget *checkbtn_forward_as_attachment;
GtkWidget *checkbtn_reply_account_autoselect;
+ GtkWidget *checkbtn_smart_wrapping;
vbox1 = gtk_vbox_new (FALSE, VSPACING);
gtk_widget_show (vbox1);
PACK_CHECK_BUTTON (vbox1, checkbtn_reply_account_autoselect,
_("Automatically select account for mail replies"));
+ PACK_CHECK_BUTTON (vbox1, checkbtn_smart_wrapping,
+ _("Smart wrapping (EXPERIMENTAL)"));
+
/*
compose.checkbtn_quote = checkbtn_quote;
compose.entry_quotemark = entry_quotemark;
checkbtn_forward_as_attachment;
compose.checkbtn_reply_account_autoselect =
checkbtn_reply_account_autoselect;
+ compose.checkbtn_smart_wrapping =
+ checkbtn_smart_wrapping;
}
static void date_format_ok_btn_clicked(GtkButton *button, GtkWidget **widget)