Permalink
Browse files

use constants if possible

  • Loading branch information...
t-8ch committed Mar 9, 2012
1 parent d140d4e commit dd86792fb3526af6b5bd382af3713989b0bc19c4
Showing with 4 additions and 2 deletions.
  1. +4 −2 taterm.vala
View
@@ -78,7 +78,8 @@ class taterm : Gtk.Application
this.focus_in_event.connect( () => {
this.urgency_hint = false;
- return false;
+ /* TODO change to GDK_EVENT_PROPAGATE, when .vapi provides it */
+ //return false;
});
term.child_exited.connect ( ()=> {
@@ -121,13 +122,14 @@ class taterm : Gtk.Application
private bool handle_button(Gdk.EventButton event){
/* left mousebutton ? */
- if (event.button == 1) {
+ if (event.button == Gdk.BUTTON_PRIMARY) {
check_regex(
(long) event.x/get_char_width(),
(long) event.x/get_char_width()
);
}
/* continue calling signalhandlers, why should we stop? */
+ /* TODO change to GDK_EVENT_PROPAGATE, when .vapi provides it */
return false;
}

0 comments on commit dd86792

Please sign in to comment.