diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-05-29 01:06:29 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-05-29 01:21:01 +0800 |
commit | 14f8eee012382f04090ea9277e9567d5f32e8bf0 (patch) | |
tree | d1c454675e816f8d948942c21c5d899a969b08a7 /widgets/text | |
parent | e66024d664a1d346d6246b4e8b7c682bafcf4dda (diff) | |
download | gsoc2013-evolution-14f8eee012382f04090ea9277e9567d5f32e8bf0.tar gsoc2013-evolution-14f8eee012382f04090ea9277e9567d5f32e8bf0.tar.gz gsoc2013-evolution-14f8eee012382f04090ea9277e9567d5f32e8bf0.tar.bz2 gsoc2013-evolution-14f8eee012382f04090ea9277e9567d5f32e8bf0.tar.lz gsoc2013-evolution-14f8eee012382f04090ea9277e9567d5f32e8bf0.tar.xz gsoc2013-evolution-14f8eee012382f04090ea9277e9567d5f32e8bf0.tar.zst gsoc2013-evolution-14f8eee012382f04090ea9277e9567d5f32e8bf0.zip |
Whitespace cleanup.
Diffstat (limited to 'widgets/text')
-rw-r--r-- | widgets/text/a11y/gal-a11y-e-text.c | 28 | ||||
-rw-r--r-- | widgets/text/e-reflow.c | 2 | ||||
-rw-r--r-- | widgets/text/e-text.c | 18 | ||||
-rw-r--r-- | widgets/text/e-text.h | 6 |
4 files changed, 27 insertions, 27 deletions
diff --git a/widgets/text/a11y/gal-a11y-e-text.c b/widgets/text/a11y/gal-a11y-e-text.c index 6717f687b0..f5939670f2 100644 --- a/widgets/text/a11y/gal-a11y-e-text.c +++ b/widgets/text/a11y/gal-a11y-e-text.c @@ -383,19 +383,19 @@ et_get_text_at_offset (AtkText *text, case ATK_TEXT_BOUNDARY_SENTENCE_START: start = find_sentence_start (full_text, offset - 1, -1); end = find_sentence_start (full_text, offset, 1); - break; + break; case ATK_TEXT_BOUNDARY_SENTENCE_END: - start = find_sentence_end (full_text, offset, -1); + start = find_sentence_end (full_text, offset, -1); end = find_sentence_end (full_text, offset + 1, 1); break; case ATK_TEXT_BOUNDARY_LINE_START: - start = find_line_start (full_text, offset - 1, -1); + start = find_line_start (full_text, offset - 1, -1); end = find_line_start (full_text, offset, 1); - break; + break; case ATK_TEXT_BOUNDARY_LINE_END: start = find_line_end (full_text, offset, -1); end = find_line_end (full_text, offset + 1, 1); - break; + break; default: return NULL; } @@ -448,19 +448,19 @@ et_get_text_before_offset (AtkText *text, case ATK_TEXT_BOUNDARY_SENTENCE_START: end = find_sentence_start (full_text, offset, -1); start = find_sentence_start (full_text, end - 1, -1); - break; + break; case ATK_TEXT_BOUNDARY_SENTENCE_END: - end = find_sentence_end (full_text, offset, -1); + end = find_sentence_end (full_text, offset, -1); start = find_sentence_end (full_text, end - 1, -1); - break; + break; case ATK_TEXT_BOUNDARY_LINE_START: - end = find_line_start (full_text, offset, -1); + end = find_line_start (full_text, offset, -1); start = find_line_start (full_text, end - 1, -1); - break; + break; case ATK_TEXT_BOUNDARY_LINE_END: - end = find_line_end (full_text, offset, -1); + end = find_line_end (full_text, offset, -1); start = find_line_end (full_text, end - 1, -1); - break; + break; default: return NULL; } @@ -572,8 +572,8 @@ et_get_character_extents (AtkText *text, window = gdk_window_get_toplevel (window); gdk_window_get_origin (window, &x_window, &y_window); *x -= x_window; - *y -= y_window; - } + *y -= y_window; + } else if (coords == ATK_XY_SCREEN) { } else { diff --git a/widgets/text/e-reflow.c b/widgets/text/e-reflow.c index e9f7adc2cf..cae0f4d3e4 100644 --- a/widgets/text/e-reflow.c +++ b/widgets/text/e-reflow.c @@ -1278,7 +1278,7 @@ e_reflow_point (GnomeCanvasItem *item, return 0; #if 0 if (y >= E_REFLOW_BORDER_WIDTH && y <= reflow->height - E_REFLOW_BORDER_WIDTH) { - float n_x; + float n_x; n_x = x; n_x += E_REFLOW_BORDER_WIDTH + E_REFLOW_DIVIDER_WIDTH; n_x = fmod(n_x, (reflow->column_width + E_REFLOW_FULL_GUTTER)); diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c index d9f599f8a7..12a1668410 100644 --- a/widgets/text/e-text.c +++ b/widgets/text/e-text.c @@ -436,8 +436,8 @@ reset_layout (EText *text) pango_font_description_get_family ((GTK_WIDGET (item->canvas))->style->font_desc)); pango_layout_set_font_description (text->layout, text->font_desc); - pango_layout_set_text (text->layout, text->text, -1); - reset_layout_attrs (text); + pango_layout_set_text (text->layout, text->text, -1); + reset_layout_attrs (text); } if (!text->button_down) { @@ -2226,7 +2226,7 @@ e_text_event (GnomeCanvasItem *item, GdkEvent *event) * Here when a new text widget comes into focus we can disconnect the * old one.Shouldn't hurt much, as in worst case, save_text which should * be disconnected will be overwritten and we will have signal - * handlers connect to multiple e-texts but with subsequent commit these + * handlers connect to multiple e-texts but with subsequent commit these * should go away. */ @@ -2753,7 +2753,7 @@ popup_targets_received (GtkClipboard *clipboard, /* If invoked by S-F10 key binding, button will be 0. */ if (button->button == 0){ - gtk_menu_popup (GTK_MENU (popup_menu), NULL, NULL, + gtk_menu_popup (GTK_MENU (popup_menu), NULL, NULL, popup_menu_placement_cb, (gpointer)text, button->button, GDK_CURRENT_TIME); } else { @@ -3911,15 +3911,15 @@ e_text_preedit_changed_cb (GtkIMContext *context, EText *etext) { gchar *preedit_string = NULL; - gint cursor_pos; + gint cursor_pos; gtk_im_context_get_preedit_string (context, &preedit_string, NULL, &cursor_pos); - cursor_pos = CLAMP (cursor_pos, 0, g_utf8_strlen (preedit_string, -1)); + cursor_pos = CLAMP (cursor_pos, 0, g_utf8_strlen (preedit_string, -1)); etext->preedit_len = strlen (preedit_string); - etext->preedit_pos = g_utf8_offset_to_pointer (preedit_string, cursor_pos) - preedit_string; - g_free (preedit_string); + etext->preedit_pos = g_utf8_offset_to_pointer (preedit_string, cursor_pos) - preedit_string; + g_free (preedit_string); g_signal_emit (etext, e_text_signals[E_TEXT_KEYPRESS], 0, 0, 0); } @@ -3943,7 +3943,7 @@ e_text_delete_surrounding_cb (GtkIMContext *context, EText *text) { e_text_model_delete (text->model, - MIN (text->selection_start, text->selection_end) + offset, + MIN (text->selection_start, text->selection_end) + offset, n_chars); return TRUE; diff --git a/widgets/text/e-text.h b/widgets/text/e-text.h index f9b838aae3..5f6904b14a 100644 --- a/widgets/text/e-text.h +++ b/widgets/text/e-text.h @@ -109,8 +109,8 @@ struct _EText { gint model_repos_signal_id; const gchar *text; /* Text to display --- from the ETextModel */ - gint preedit_len; /* preedit length to display */ - gint preedit_pos; /* preedit cursor position */ + gint preedit_len; /* preedit length to display */ + gint preedit_pos; /* preedit cursor position */ PangoLayout *layout; gint num_lines; /* Number of lines of text */ @@ -124,7 +124,7 @@ struct _EText { double xofs, yofs; /* Text offset distance from anchor position */ - GdkColor color; /* Fill color */ + GdkColor color; /* Fill color */ GdkBitmap *stipple; /* Stipple for text */ GdkGC *gc; /* GC for drawing text */ |