mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 04:22:05 +00:00
cally: Cleaning CallyText
* Removing superfluous g_return_if_fail * Removing unused ClutterText::text-changed callback
This commit is contained in:
parent
137790bec9
commit
c931e11e3d
@ -136,8 +136,6 @@ static AtkAttributeSet* cally_text_get_run_attributes (AtkText *text,
|
||||
static void _cally_text_get_selection_bounds (ClutterText *clutter_text,
|
||||
gint *start_offset,
|
||||
gint *end_offset);
|
||||
static void _cally_text_text_changed_cb (ClutterText *clutter_text,
|
||||
gpointer data);
|
||||
static void _cally_text_insert_text_cb (ClutterText *clutter_text,
|
||||
gchar *new_text,
|
||||
gint new_text_length,
|
||||
@ -306,9 +304,6 @@ cally_text_real_initialize(AtkObject *obj,
|
||||
cally_text->priv->cursor_position = clutter_text_get_cursor_position (clutter_text);
|
||||
cally_text->priv->selection_bound = clutter_text_get_selection_bound (clutter_text);
|
||||
|
||||
g_signal_connect (clutter_text, "text-changed",
|
||||
G_CALLBACK (_cally_text_text_changed_cb),
|
||||
cally_text);
|
||||
g_signal_connect (clutter_text, "insert-text",
|
||||
G_CALLBACK (_cally_text_insert_text_cb),
|
||||
cally_text);
|
||||
@ -401,8 +396,6 @@ cally_text_get_text (AtkText *text,
|
||||
{
|
||||
ClutterActor *actor = NULL;
|
||||
|
||||
g_return_val_if_fail (CALLY_IS_TEXT (text), NULL);
|
||||
|
||||
actor = CALLY_GET_CLUTTER_ACTOR (text);
|
||||
if (actor == NULL) /* Object is defunct */
|
||||
return NULL;
|
||||
@ -763,17 +756,6 @@ _cally_text_get_selection_bounds (ClutterText *clutter_text,
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
_cally_text_text_changed_cb (ClutterText *clutter_text,
|
||||
gpointer data)
|
||||
{
|
||||
CallyText *cally_text = NULL;
|
||||
|
||||
g_return_if_fail (CALLY_IS_TEXT (data));
|
||||
|
||||
cally_text = CALLY_TEXT (data);
|
||||
}
|
||||
|
||||
static void
|
||||
_cally_text_delete_text_cb (ClutterText *clutter_text,
|
||||
gint start_pos,
|
||||
|
Loading…
Reference in New Issue
Block a user