Avoid a compiler warning

This commit is contained in:
Matthias Clasen 2011-07-17 23:03:34 -04:00
parent f9c4977306
commit 2b5140c974

View File

@ -135,12 +135,12 @@ gtk_label_accessible_notify_gtk (GObject *obj,
{ {
g_signal_emit_by_name (atk_obj, "text-caret-moved", g_signal_emit_by_name (atk_obj, "text-caret-moved",
_gtk_label_get_cursor_position (GTK_LABEL (widget))); _gtk_label_get_cursor_position (GTK_LABEL (widget)));
if (check_for_selection_change (atk_obj, GTK_LABEL (widget))) if (check_for_selection_change (accessible, GTK_LABEL (widget)))
g_signal_emit_by_name (atk_obj, "text-selection-changed"); g_signal_emit_by_name (atk_obj, "text-selection-changed");
} }
else if (g_strcmp0 (pspec->name, "selection-bound") == 0) else if (g_strcmp0 (pspec->name, "selection-bound") == 0)
{ {
if (check_for_selection_change (atk_obj, GTK_LABEL (widget))) if (check_for_selection_change (accessible, GTK_LABEL (widget)))
g_signal_emit_by_name (atk_obj, "text-selection-changed"); g_signal_emit_by_name (atk_obj, "text-selection-changed");
} }
else else