Skip to content

Instantly share code, notes, and snippets.

@chergert
Created September 21, 2015 09:18
Show Gist options
  • Save chergert/8cad0f6b0932fa91ed74 to your computer and use it in GitHub Desktop.
Save chergert/8cad0f6b0932fa91ed74 to your computer and use it in GitHub Desktop.
swap the selection order on double/triple click
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index e9860d7..395c919 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -7711,7 +7711,7 @@ gtk_text_view_start_selection_drag (GtkTextView *text_view,
}
}
- gtk_text_buffer_select_range (buffer, &ins, &bound);
+ gtk_text_buffer_select_range (buffer, &bound, &ins);
gtk_text_iter_order (&orig_start, &orig_end);
data->orig_start = gtk_text_buffer_create_mark (buffer, NULL,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment