aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/text/e-text.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/text/e-text.c')
-rw-r--r--widgets/text/e-text.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c
index 3ce0065210..b30cf05b0c 100644
--- a/widgets/text/e-text.c
+++ b/widgets/text/e-text.c
@@ -386,10 +386,10 @@ reset_layout_attrs (EText *text)
}
pango_layout_set_attributes (text->layout, attrs);
-
+
if (attrs)
pango_attr_list_unref (attrs);
-
+
calc_height (text);
}
@@ -1514,12 +1514,12 @@ e_text_draw (GnomeCanvasItem *item, GdkDrawable *drawable,
}
}
- /* Insert preedit text only when im_context signals are connected &
+ /* Insert preedit text only when im_context signals are connected &
* text->preedit_len is not zero */
if (text->im_context_signals_registered && text->preedit_len)
insert_preedit_text (text);
- /* Need to reset the layout to cleanly clear the preedit buffer when
+ /* Need to reset the layout to cleanly clear the preedit buffer when
* typing in CJK & using backspace on the preedit */
if(!text->preedit_len)
reset_layout (text);
@@ -2350,7 +2350,7 @@ e_text_event (GnomeCanvasItem *item, GdkEvent *event)
if (e_tep_event.key.string)
- g_free (e_tep_event.key.string);
+ g_free ((gpointer) e_tep_event.key.string);
return ret;
@@ -2603,11 +2603,11 @@ static void
e_text_update_primary_selection (EText *text)
{
static const GtkTargetEntry targets[] = {
- { "UTF8_STRING", 0, 0 },
- { "UTF-8", 0, 0 },
- { "STRING", 0, 0 },
- { "TEXT", 0, 0 },
- { "COMPOUND_TEXT", 0, 0 }
+ { (gchar *) "UTF8_STRING", 0, 0 },
+ { (gchar *) "UTF-8", 0, 0 },
+ { (gchar *) "STRING", 0, 0 },
+ { (gchar *) "TEXT", 0, 0 },
+ { (gchar *) "COMPOUND_TEXT", 0, 0 }
};
GtkClipboard *clipboard;