Changeset 3453 for branches/gajim_0.8.2
- Timestamp:
- 09/06/05 13:40:28 (3 years ago)
- Location:
- branches/gajim_0.8.2/src
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/gajim_0.8.2/src/config.py
r3452 r3453 1941 1941 else: 1942 1942 gajim.config.add_per('emoticons', emot) 1943 self.plugin.init_regexp() # update regexp [emoticons included]1943 self.plugin.init_regexp() # update regexp (emoticons included) 1944 1944 gajim.config.set_per('emoticons', emot, 'path', 1945 1945 model[iter][1].decode('utf-8')) 1946 model .set_value(iter, 0, emot)1946 model[iter][0] = emot 1947 1947 self.plugin.save_config() 1948 1948 1949 1949 def update_preview(self, widget): 1950 1950 path_to_file = widget.get_preview_filename() 1951 if os.path.isdir(path_to_file): 1951 if path_to_file is None or os.path.isdir(path_to_file): 1952 # nothing to preview or directory 1953 # make sure you clean image do show nothing 1954 widget.get_preview_widget().set_from_file(None) 1952 1955 return 1953 1956 try: -
branches/gajim_0.8.2/src/vcard.py
r3452 r3453 122 122 def update_preview(self, widget): 123 123 path_to_file = widget.get_preview_filename() 124 if os.path.isdir(path_to_file): 124 if path_to_file is None or os.path.isdir(path_to_file): 125 # nothing to preview or directory 126 # make sure you clean image do show nothing 127 widget.get_preview_widget().set_from_file(None) 125 128 return 126 129 try:
