[gtk+] a11y: Simplify code
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] a11y: Simplify code
- Date: Wed, 6 Jul 2011 14:50:39 +0000 (UTC)
commit eeae39d359207c86e75013e694d2467bc8b03444
Author: Benjamin Otte <otte redhat com>
Date: Tue Jul 5 17:31:00 2011 +0200
a11y: Simplify code
gtk/a11y/gtktextviewaccessible.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/gtk/a11y/gtktextviewaccessible.c b/gtk/a11y/gtktextviewaccessible.c
index db29d9d..e89823d 100644
--- a/gtk/a11y/gtktextviewaccessible.c
+++ b/gtk/a11y/gtktextviewaccessible.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]