cifrado r50 - in trunk: . package/cifrado
- From: bersace svn gnome org
- To: svn-commits-list gnome org
- Subject: cifrado r50 - in trunk: . package/cifrado
- Date: Thu, 17 Jan 2008 17:09:46 +0000 (GMT)
Author: bersace
Date: Thu Jan 17 17:09:46 2008
New Revision: 50
URL: http://svn.gnome.org/viewvc/cifrado?rev=50&view=rev
Log:
Ãvite des messages de sauvegarde inutiles.
Modified:
trunk/ChangeLog
trunk/package/cifrado/cifrado.py
Modified: trunk/package/cifrado/cifrado.py
==============================================================================
--- trunk/package/cifrado/cifrado.py (original)
+++ trunk/package/cifrado/cifrado.py Thu Jan 17 17:09:46 2008
@@ -230,7 +230,7 @@
# d.set_website(defs.__website__)
self.jeu = None
- self.nouveau()
+ self.fichier = None
def lancer(self):
self.glade.get_widget('cifrado_fenetre').show_all()
@@ -313,8 +313,6 @@
return
else:
fichier = self.fichier = d.get_filename()
- else:
- fichier = self.fichier
self.fermer()
@@ -322,6 +320,7 @@
doc = parse(fichier)
el = doc.childNodes[0]
self.ouvrir(jeu.charger(el))
+ self.fichier = fichier
def sauver(self, fichier=None):
if fichier is None and self.fichier is None:
@@ -419,7 +418,7 @@
'menu_jeu_fermer', 'menu_jeu_enr', 'menu_jeu_enr_sous', 'menu_jeu_imprimer']
for id in ids:
self.glade.get_widget(id).set_sensitive(True)
-
+ self.jeu.sync = True
@@ -537,6 +536,7 @@
self.jeu.sync = False
def on_msg_selected(self, selection):
+ sync = self.jeu.sync;
liste, iter = selection.get_selected()
wids = ['msg_impr_btn', 'msg_suppr_btn', 'msg_onglets']
@@ -551,6 +551,7 @@
self.on_em_dest_select_changed(em)
else:
self.glade.get_widget('msg_champ').get_buffer().set_text('')
+ self.jeu.sync = sync
def on_msg_exp_edited(self, renderer, path, force):
@@ -599,6 +600,7 @@
i = model.iter_next(i)
def on_em_dest_select_changed(self, combo):
+ sync = self.jeu.sync
em = self.get_em_crt()
wids = ['em_env_champ']
envc = self.glade.get_widget('em_env_champ')
@@ -615,6 +617,7 @@
envc.set_active(False)
envc.toggled()
+ self.jeu.sync = sync
def on_em_env_champ_toggled(self, bouton):
em = self.get_em_crt()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]