Преглед на файлове

tools: connect signals to _text_view only

Fixes: #141
Daniele Bartolini преди 3 години
родител
ревизия
c2273e2e27
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3 2
      tools/widgets/console_view.vala

+ 3 - 2
tools/widgets/console_view.vala

@@ -146,8 +146,9 @@ public class ConsoleView : Gtk.Box
 		this.pack_start(_entry_hbox, false, true, 0);
 		this.pack_start(_entry_hbox, false, true, 0);
 
 
 		this.destroy.connect(on_destroy);
 		this.destroy.connect(on_destroy);
-		this.button_release_event.connect(on_button_released);
-		this.motion_notify_event.connect(on_motion_notify);
+
+		_text_view.button_release_event.connect(on_button_released);
+		_text_view.motion_notify_event.connect(on_motion_notify);
 
 
 		this.get_style_context().add_class("console-view");
 		this.get_style_context().add_class("console-view");