aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/text
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-05-26 11:07:23 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-05-26 11:07:23 +0800
commit04a042ee01dba30ba231c48ec7d172b6be1a6fca (patch)
tree080e3ad2fe16da7e3fb057e1baa0b3734a4e4d2f /widgets/text
parenta6c9a55391c484038a98f0326798949c52621c50 (diff)
downloadgsoc2013-evolution-04a042ee01dba30ba231c48ec7d172b6be1a6fca.tar.gz
gsoc2013-evolution-04a042ee01dba30ba231c48ec7d172b6be1a6fca.tar.zst
gsoc2013-evolution-04a042ee01dba30ba231c48ec7d172b6be1a6fca.zip
Fix compiler warnings in widgets.
Diffstat (limited to 'widgets/text')
-rw-r--r--widgets/text/e-text-model.c2
-rw-r--r--widgets/text/e-text.c12
2 files changed, 6 insertions, 8 deletions
diff --git a/widgets/text/e-text-model.c b/widgets/text/e-text-model.c
index 207ac6ce50..663cdd6e30 100644
--- a/widgets/text/e-text-model.c
+++ b/widgets/text/e-text-model.c
@@ -48,8 +48,6 @@ struct _ETextModelPrivate {
GString *text;
};
-static void e_text_model_class_init (ETextModelClass *class);
-static void e_text_model_init (ETextModel *model);
static void e_text_model_dispose (GObject *object);
static gint e_text_model_real_validate_position (ETextModel *, gint pos);
diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c
index 0890b46243..bd79c0ad7b 100644
--- a/widgets/text/e-text.c
+++ b/widgets/text/e-text.c
@@ -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;