Changeset 5455


Ignore:
Timestamp:
Jul 5, 2017, 11:42:50 AM (18 months ago)
Author:
hectorgh
Message:

adding close event signal

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-shutdowner/trunk/fuentes/lliurex-shutdowner-common.install/usr/sbin/shutdown-lliurex-dialog

    r5452 r5455  
    7171                self.cancel_button.connect("clicked",self.cancel_clicked)
    7272                self.shutdown_button.connect("clicked",self.shutdown_clicked)
    73                 self.main_window.connect("destroy",Gtk.main_quit)
     73                self.main_window.connect("delete-event",self.close_window_clicked)
    7474                GLib.timeout_add(1000,self.update_pbar)
    7575               
    7676        #def connect_signals
     77       
     78        def close_window_clicked(self,widget,event):
     79               
     80                return True
     81               
     82        #def close_window_clicked
    7783       
    7884        def cancel_clicked(self,button):
Note: See TracChangeset for help on using the changeset viewer.