def add_autostart(self, widget):
     if self.open_dialog == False:
         dialog = NewSessionDialog(
             confirm_callback=self.create_session_item,
             cancel_callback=self.cancel_callback)
         dialog.show_all()
         self.open_dialog = True
 def right_press_item(self, widget,  x_root, y_root, current_item, select_items):
     self.tmp_editing_session = current_item.item
     for item in select_items:
         item.unselect()
     if current_item != None:
         current_item.select()
         if self.open_dialog == False:
             dialog = NewSessionDialog(confirm_callback = self.edit_done, cancel_callback = self.cancel_callback)
             dialog.name_entry.set_text(current_item.item.name)
             dialog.exec_entry.set_text(current_item.item.exec_)
             dialog.desc_entry.set_text(current_item.item.comment)
             dialog.place_center()
             dialog.show_all()
             self.open_dialog = True
 def right_press_item(self, widget, x_root, y_root, current_item,
                      select_items):
     self.tmp_editing_session = current_item.item
     for item in select_items:
         item.unselect()
     if current_item != None:
         current_item.select()
         if self.open_dialog == False:
             dialog = NewSessionDialog(confirm_callback=self.edit_done,
                                       cancel_callback=self.cancel_callback)
             dialog.name_entry.set_text(current_item.item.name)
             dialog.exec_entry.set_text(current_item.item.exec_)
             dialog.desc_entry.set_text(current_item.item.comment)
             dialog.place_center()
             dialog.show_all()
             self.open_dialog = True
 def add_autostart(self, widget):
     if self.open_dialog == False:
         dialog = NewSessionDialog(confirm_callback= self.create_session_item, cancel_callback = self.cancel_callback)
         dialog.show_all()
         self.open_dialog = True