diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-06-20 18:56:06 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-06-20 20:06:19 +0800 |
commit | 5d0878967ee21a039ef599222b1cf3eb606354d4 (patch) | |
tree | 790cfcbf63fea7292740f182dd612ab20244f6e8 /widgets/text/e-text-model.c | |
parent | f5f2132d60cdd1884c6343f759aadfd38a159e04 (diff) | |
download | gsoc2013-evolution-5d0878967ee21a039ef599222b1cf3eb606354d4.tar.gz gsoc2013-evolution-5d0878967ee21a039ef599222b1cf3eb606354d4.tar.zst gsoc2013-evolution-5d0878967ee21a039ef599222b1cf3eb606354d4.zip |
Coding style and whitespace cleanup.
Diffstat (limited to 'widgets/text/e-text-model.c')
-rw-r--r-- | widgets/text/e-text-model.c | 37 |
1 files changed, 27 insertions, 10 deletions
diff --git a/widgets/text/e-text-model.c b/widgets/text/e-text-model.c index e4ab873d9d..5f3b88d366 100644 --- a/widgets/text/e-text-model.c +++ b/widgets/text/e-text-model.c @@ -48,15 +48,26 @@ struct _ETextModelPrivate { GString *text; }; -static void e_text_model_dispose (GObject *object); +static void e_text_model_dispose (GObject *object); -static gint e_text_model_real_validate_position (ETextModel *, gint pos); -static const gchar *e_text_model_real_get_text (ETextModel *model); -static gint e_text_model_real_get_text_length (ETextModel *model); -static void e_text_model_real_set_text (ETextModel *model, const gchar *text); -static void e_text_model_real_insert (ETextModel *model, gint postion, const gchar *text); -static void e_text_model_real_insert_length (ETextModel *model, gint postion, const gchar *text, gint length); -static void e_text_model_real_delete (ETextModel *model, gint postion, gint length); +static gint e_text_model_real_validate_position + (ETextModel *, gint pos); +static const gchar * + e_text_model_real_get_text (ETextModel *model); +static gint e_text_model_real_get_text_length + (ETextModel *model); +static void e_text_model_real_set_text (ETextModel *model, + const gchar *text); +static void e_text_model_real_insert (ETextModel *model, + gint postion, + const gchar *text); +static void e_text_model_real_insert_length (ETextModel *model, + gint postion, + const gchar *text, + gint length); +static void e_text_model_real_delete (ETextModel *model, + gint postion, + gint length); G_DEFINE_TYPE (ETextModel, e_text_model, G_TYPE_OBJECT) @@ -219,7 +230,10 @@ e_text_model_real_insert (ETextModel *model, gint position, const gchar *text) } static void -e_text_model_real_insert_length (ETextModel *model, gint position, const gchar *text, gint length) +e_text_model_real_insert_length (ETextModel *model, + gint position, + const gchar *text, + gint length) { EReposInsertShift repos; gint model_len = e_text_model_real_get_text_length (model); @@ -392,7 +406,10 @@ e_text_model_insert (ETextModel *model, gint position, const gchar *text) } void -e_text_model_insert_length (ETextModel *model, gint position, const gchar *text, gint length) +e_text_model_insert_length (ETextModel *model, + gint position, + const gchar *text, + gint length) { g_return_if_fail (model != NULL); g_return_if_fail (E_IS_TEXT_MODEL (model)); |