forked from AuroraMiddleware/gtk
a11y: Simplify code
This commit is contained in:
parent
659d24c9ab
commit
eeae39d359
@ -1293,9 +1293,6 @@ mark_set_cb (GtkTextBuffer *buffer,
|
|||||||
{
|
{
|
||||||
GtkTextView *text = data;
|
GtkTextView *text = data;
|
||||||
GtkTextViewAccessible *accessible;
|
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)));
|
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
|
* Only generate the signal for the "insert" mark, which
|
||||||
* represents the cursor.
|
* represents the cursor.
|
||||||
*/
|
*/
|
||||||
if (g_strcmp0 (mark_name, "insert") == 0)
|
if (mark == gtk_text_buffer_get_insert (buffer))
|
||||||
{
|
{
|
||||||
gint insert_offset, selection_bound;
|
gint insert_offset, selection_bound;
|
||||||
gboolean selection_changed;
|
gboolean selection_changed;
|
||||||
|
Loading…
Reference in New Issue
Block a user