[sushi/wip/cosimoc/no-clutter: 49/50] mainWindow: remove unneeded code



commit e57e3055b7b02e50a1b343c884566101fd4711f2
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sun Jun 16 07:45:39 2019 -0700

    mainWindow: remove unneeded code
    
    GTK already calls destroy on delete-event by default.

 src/ui/mainWindow.js | 5 -----
 1 file changed, 5 deletions(-)
---
diff --git a/src/ui/mainWindow.js b/src/ui/mainWindow.js
index 076a7dd..87c2304 100644
--- a/src/ui/mainWindow.js
+++ b/src/ui/mainWindow.js
@@ -82,7 +82,6 @@ var MainWindow = GObject.registerClass(class MainWindow extends Gtk.Window {
         this._openButton.connect('clicked', this._onFileOpenClicked.bind(this));
         this._titlebar.pack_end(this._openButton);
 
-        this.connect('delete-event', this._onDeleteEvent.bind(this));
         this.connect('destroy', this._onDestroy.bind(this));
         this.connect('key-press-event', this._onKeyPressEvent.bind(this));
         this.connect('motion-notify-event', this._onMotionNotifyEvent.bind(this));
@@ -99,10 +98,6 @@ var MainWindow = GObject.registerClass(class MainWindow extends Gtk.Window {
     /**************************************************************************
      ****************** main object event callbacks ***************************
      **************************************************************************/
-    _onDeleteEvent() {
-        this.destroy();
-    }
-
     _onDestroy() {
         this._removeToolbarTimeout();
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]