Skip to content

Commit

Permalink
Merge branch 'master' of git:https://github.com/cream/melange
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Billaudelle committed May 8, 2011
2 parents 0a9f556 + 3ab0d30 commit f6d6b52
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/configuration/scheme.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<item type="dict">
<y type="int">20</y>
<x type="int">0</x>
<name type="str">Control Area</name>
<name type="str">Melange Tips</name>
</item>
</widgets>
<hotkey action="toggle-overlay" type="hotkey" label="Hotkey toggling the overlay mode">F12</hotkey>
Expand Down
3 changes: 3 additions & 0 deletions src/melange.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,9 @@ def fade_in(t, state):
def quit(self):
""" Quit the module. """

for widget in self.widgets.values():
widget.config.save()

self.config.widgets = self.widgets.values()
cream.Module.quit(self)

Expand Down
6 changes: 4 additions & 2 deletions src/melange/hotkeys.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ def __init__(self, hotkeys):


def _ooxcb_callback(self, source, condition):

reply = self.cookie.reply()
try:
reply = self.cookie.reply()
except ctypes.ArgumentError:
return True
if reply is not None and reply.category == record.Category.FromServer:
opcode = reply.data[0]
event_type = self.connection.events[opcode]
Expand Down

0 comments on commit f6d6b52

Please sign in to comment.