add block cursor
authorAlfons Hoogervorst <alfons@proteus.demon.nl>
Tue, 2 Oct 2001 18:45:45 +0000 (18:45 +0000)
committerAlfons Hoogervorst <alfons@proteus.demon.nl>
Tue, 2 Oct 2001 18:45:45 +0000 (18:45 +0000)
ChangeLog.claws
src/compose.c
src/prefs_common.c
src/prefs_common.h

index 8d07b48ee151f3ab09a51b92298ea2625d174c67..4e255aa9cf593e0c397df0abcedccdc9d3ab3b71 100644 (file)
@@ -1,3 +1,8 @@
+2001-09-02 [alfons]    0.6.2claws14
+
+       * compose.c, prefs_common.[ch]
+               add block cursor option
+
 2001-10-02 [paul]      0.6.2claws13
 
        * sync with sylpheed 0.6.2cvs9
index 26ae9ed3f92ba9ace1945ddf4b0a0beb119ea134..10f2b21687726c35f166a9c20e15919af49b564d 100644 (file)
@@ -3549,6 +3549,11 @@ static Compose *compose_create(PrefsAccount *account, ComposeMode mode)
                            (GTK_SCROLLED_WINDOW(scrolledwin)));
        GTK_STEXT(text)->default_tab_width = 8;
        gtk_stext_set_editable(GTK_STEXT(text), TRUE);
+
+       if (prefs_common.block_cursor) {
+               GTK_STEXT(text)->cursor_type = STEXT_CURSOR_BLOCK;
+       }
+       
        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);
index 394cf1dc083693e9be84fe805a68b027a142a20b..73f07bdd0a49db8b07e71c473fc006215d7bd538 100644 (file)
@@ -117,6 +117,7 @@ static struct Compose {
 
        GtkWidget * checkbtn_forward_as_attachment;
        GtkWidget * checkbtn_smart_wrapping;
+       GtkWidget * checkbtn_block_cursor;
 
        /* spelling */
 #if USE_PSPELL
@@ -349,6 +350,9 @@ static PrefParam param[] = {
         {"smart_wrapping", "TRUE", &prefs_common.smart_wrapping,
         P_BOOL, &compose.checkbtn_smart_wrapping,
         prefs_set_data_from_toggle, prefs_set_toggle},
+       {"block_cursor", "FALSE", &prefs_common.block_cursor,
+        P_BOOL, &compose.checkbtn_block_cursor,
+        prefs_set_data_from_toggle, prefs_set_toggle},
 #if USE_PSPELL
        {"enable_pspell", "TRUE", &prefs_common.enable_pspell,
         P_BOOL, &compose.checkbtn_enable_pspell,
@@ -1276,6 +1280,7 @@ static void prefs_compose_create(void)
 
        GtkWidget *checkbtn_forward_as_attachment;
        GtkWidget *checkbtn_smart_wrapping;
+       GtkWidget *checkbtn_block_cursor;
 
 #if USE_PSPELL
        GtkWidget *frame_spell;
@@ -1452,6 +1457,9 @@ static void prefs_compose_create(void)
 
        PACK_CHECK_BUTTON (vbox1, checkbtn_smart_wrapping,
                           _("Smart wrapping (EXPERIMENTAL)"));
+       
+       PACK_CHECK_BUTTON (vbox1, checkbtn_block_cursor,
+                         _("Block cursor"));
 
 #if USE_PSPELL
        /* spell checker defaults */                       
@@ -1529,6 +1537,8 @@ static void prefs_compose_create(void)
                checkbtn_forward_as_attachment;
        compose.checkbtn_smart_wrapping = 
                checkbtn_smart_wrapping;
+       compose.checkbtn_block_cursor   =
+               checkbtn_block_cursor;
 
 #if USE_PSPELL
        compose.checkbtn_enable_pspell = checkbtn_enable_pspell;
index 03ab4ed8e035dc2941c606af68240c9dc24f9aea..d585c983317e6fb2fd1810d35bcd196c61f2f40d 100644 (file)
@@ -85,6 +85,7 @@ struct _PrefsCommon
        gchar *fw_quotefmt;
        gboolean forward_as_attachment;
        gboolean smart_wrapping;
+       gboolean block_cursor;
 #if USE_PSPELL
        gboolean enable_pspell;
        gchar *pspell_path;