Permalink
Browse files

use Gdk.BUTTON_PRIMARY

  • Loading branch information...
t-8ch committed Mar 31, 2012
1 parent a82db33 commit cd2f1ff3072fac3c790984e60344b7509bc2040f
Showing with 1 addition and 3 deletions.
  1. +1 −3 taterm.vala
View
@@ -143,9 +143,7 @@ class taterm : Gtk.Application
}
private bool handle_button(Gdk.EventButton event){
- /* left mousebutton ? */
- /* TODO use Gdk.BUTTON_PRIMARY when available */
- if (event.button == 1) {
+ if (event.button == Gdk.BUTTON_PRIMARY) {
check_regex(
(long) event.x/get_char_width(),
(long) event.y/get_char_height()

0 comments on commit cd2f1ff

Please sign in to comment.