Commit eeae39d3 authored by Benjamin Otte's avatar Benjamin Otte
Browse files

a11y: Simplify code

parent 659d24c9
......@@ -1293,9 +1293,6 @@ mark_set_cb (GtkTextBuffer *buffer,
{
GtkTextView *text = data;
GtkTextViewAccessible *accessible;
const char *mark_name;
mark_name = gtk_text_mark_get_name (mark);
accessible = GTK_TEXT_VIEW_ACCESSIBLE (gtk_widget_get_accessible (GTK_WIDGET (text)));
......@@ -1303,7 +1300,7 @@ mark_set_cb (GtkTextBuffer *buffer,
* Only generate the signal for the "insert" mark, which
* represents the cursor.
*/
if (g_strcmp0 (mark_name, "insert") == 0)
if (mark == gtk_text_buffer_get_insert (buffer))
{
gint insert_offset, selection_bound;
gboolean selection_changed;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment