aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sc_editor.c4
-rw-r--r--src/shape.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/src/sc_editor.c b/src/sc_editor.c
index f2a70bf..909914d 100644
--- a/src/sc_editor.c
+++ b/src/sc_editor.c
@@ -837,6 +837,8 @@ static void insert_text(char *t, SCEditor *e)
int offs;
int err = 0;
+ printf("insert! --------------------------------------------------------\n");
+
if ( fr == NULL ) return;
/* If this is, say, the top level frame, do nothing */
@@ -919,6 +921,8 @@ static void insert_text(char *t, SCEditor *e)
update_local(e, fr, sln, sbx);
fixup_cursor(e);
+ printf("done! --------------------------------------------------------\n");
+
advance_cursor(e);
sc_editor_redraw(e);
diff --git a/src/shape.c b/src/shape.c
index 59ec024..2b6bc7a 100644
--- a/src/shape.c
+++ b/src/shape.c
@@ -51,7 +51,7 @@ static void shape_segment(struct wrap_box *box, struct text_seg *seg)
if ( seg->glyphs != NULL ) {
pango_glyph_string_free(seg->glyphs);
}
- printf("shaping '%s' (%i chars)\n", tp, seg->len_chars);
+ //printf("shaping '%s' (%i chars)\n", tp, seg->len_chars);
seg->glyphs = pango_glyph_string_new();
pango_shape(tp, ep-tp, &seg->analysis, seg->glyphs);
@@ -85,6 +85,7 @@ static void calc_box_geometry(struct wrap_box *box)
void shape_box(struct wrap_box *box)
{
int i;
+ printf("shaping box %p! n_segs=%i\n", box, box->n_segs);
for ( i=0; i<box->n_segs; i++ ) {
shape_segment(box, &box->segs[i]);