Skip to content

Commit

Permalink
use constants if possible
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Weißschuh committed Mar 9, 2012
1 parent d140d4e commit dd86792
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions taterm.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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 ( ()=> {
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit dd86792

Please sign in to comment.