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.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c
index 0b2f84cf8e..88235e0e60 100644
--- a/widgets/text/e-text.c
+++ b/widgets/text/e-text.c
@@ -1657,7 +1657,6 @@ e_text_draw (GnomeCanvasItem *item, GdkDrawable *drawable,
}
}
-
if (text->clip) {
gdk_gc_set_clip_rectangle (main_gc, NULL);
}
@@ -2030,8 +2029,6 @@ _do_tooltip (gpointer data)
"justification", text->justification,
NULL);
-
-
if (text->draw_borders)
e_canvas_item_move_absolute(tooltip_text, 1 + BORDER_INDENT, 1 + BORDER_INDENT);
else
@@ -2348,11 +2345,9 @@ e_text_event (GnomeCanvasItem *item, GdkEvent *event)
g_signal_emit (text, e_text_signals[E_TEXT_KEYPRESS], 0,
e_tep_event.key.keyval, e_tep_event.key.state);
-
if (e_tep_event.key.string)
g_free ((gpointer) e_tep_event.key.string);
-
return ret;
}
break;
@@ -2565,7 +2560,6 @@ e_text_select_all (EText *text)
e_text_command(text->tep, &command, text);
}
-
static void
primary_get_cb (GtkClipboard *clipboard,
GtkSelectionData *selection_data,
@@ -2857,8 +2851,6 @@ find_offset_into_line (EText *text, gint offset_into_text, gchar **start_of_line
}
}
-
-
/* direction = TRUE (move forward), FALSE (move backward)
Any error shall return length(text->text) or 0 or text->selection_end (as deemed fit) */
static gint
@@ -2925,8 +2917,6 @@ _get_updated_position (EText *text, gboolean direction)
return new_pos;
}
-
-
static gint
_get_position(EText *text, ETextEventProcessorCommand *command)
{
@@ -3148,7 +3138,6 @@ _get_position(EText *text, ETextEventProcessorCommand *command)
else
text->selection_start = g_utf8_pointer_to_offset (text->text, p);
-
text->selection_start = e_text_model_validate_position (text->model, text->selection_start);
length = g_utf8_strlen (text->text, -1);
@@ -3486,7 +3475,6 @@ e_text_command(ETextEventProcessor *tep, ETextEventProcessorCommand *command, gp
gnome_canvas_item_request_update (GNOME_CANVAS_ITEM(text));
}
-
/* Class initialization function for the text item */
static void
e_text_class_init (ETextClass *klass)
@@ -3590,7 +3578,6 @@ e_text_class_init (ETextClass *klass)
GTK_TYPE_ANCHOR_TYPE, GTK_ANCHOR_CENTER,
G_PARAM_READWRITE));
-
g_object_class_install_property (gobject_class, PROP_JUSTIFICATION,
g_param_spec_enum ("justification",
_( "Justification" ),
@@ -3654,7 +3641,6 @@ e_text_class_init (ETextClass *klass)
GDK_TYPE_COLOR,
G_PARAM_READWRITE));
-
g_object_class_install_property (gobject_class, PROP_FILL_COLOR_RGBA,
g_param_spec_uint ("fill_color_rgba",
_( "GDK fill color" ),
@@ -3683,7 +3669,6 @@ e_text_class_init (ETextClass *klass)
0.0, G_MAXDOUBLE, 0.0,
G_PARAM_READABLE));
-
g_object_class_install_property (gobject_class, PROP_EDITABLE,
g_param_spec_boolean ("editable",
_( "Editable" ),
@@ -3733,7 +3718,6 @@ e_text_class_init (ETextClass *klass)
0.0, G_MAXDOUBLE, 0.0,
G_PARAM_READWRITE));
-
g_object_class_install_property (gobject_class, PROP_HEIGHT,
g_param_spec_double ("height",
_( "Height" ),
@@ -3887,11 +3871,9 @@ e_text_init (EText *text)
text->handle_popup = FALSE;
-
e_canvas_item_set_reflow_callback(GNOME_CANVAS_ITEM(text), e_text_reflow);
}
-
/* IM Context Callbacks */
static void
e_text_commit_cb (GtkIMContext *context,