[modules/datetime] Use hardcoded application for left-click
Open app "calendar" by default when left-clicking the datetime widget.
This commit is contained in:
parent
453f7f2b54
commit
eddc563052
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ class Module(bumblebee.engine.Module):
|
||||||
super(Module, self).__init__(engine, config,
|
super(Module, self).__init__(engine, config,
|
||||||
bumblebee.output.Widget(full_text=self.get_time))
|
bumblebee.output.Widget(full_text=self.get_time))
|
||||||
engine.input.register_callback(self, button=bumblebee.input.LEFT_MOUSE,
|
engine.input.register_callback(self, button=bumblebee.input.LEFT_MOUSE,
|
||||||
cmd=self._app)
|
cmd="calendar")
|
||||||
self._fmt = self.parameter("format", default_format(self.name))
|
self._fmt = self.parameter("format", default_format(self.name))
|
||||||
l = locale.getdefaultlocale()
|
l = locale.getdefaultlocale()
|
||||||
if not l or l == (None, None):
|
if not l or l == (None, None):
|
||||||
|
|
Loading…
Reference in a new issue