Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
keybinder and keybinder-3.0 v0.3.0
-----------------------------------

Not Released Yet
Released Sunday, 17 June 2012

* Patch Makefile.am to use ACLOCAL_AMFLAGS=-I m4 (by Luca Falavigna)
* Add two functions to fix gobject-introspection (gir) bindings:
Expand Down Expand Up @@ -35,6 +35,10 @@ Not Released Yet

+ These libraries will possibly have separate releases in the future
but their first release is simultaneous, it is now.

+ ``keybinder-3.0`` is distributed under X11 license, since the GPL
parts have been removed (python-keybinder and ax_lua).
The old branch ``keybinder`` is still GPL!


keybinder v0.2.2
Expand Down
8 changes: 4 additions & 4 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AC_INIT(keybinder, 0.2.2,
AC_INIT(keybinder, 0.3.0,
[])
AC_CONFIG_SRCDIR(libkeybinder/bind.c)
AC_CONFIG_MACRO_DIR([m4])
Expand All @@ -11,9 +11,9 @@ AM_INIT_AUTOMAKE([-Wno-portability])
# If interfaces are added/changed/removed: increment current, reset revision
# If library changed but is backwards-compatible: increment age
# If library changed backwards-incompatibly: reset age
m4_define([keybinder_lt_current], [0])
m4_define([keybinder_lt_revision], [1])
m4_define([keybinder_lt_age], [0])
m4_define([keybinder_lt_current], [1])
m4_define([keybinder_lt_revision], [0])
m4_define([keybinder_lt_age], [1])
LT_CURRENT=keybinder_lt_current
LT_REVISION=keybinder_lt_revision
LT_AGE=keybinder_lt_age
Expand Down
33 changes: 33 additions & 0 deletions examples/example-gi-py3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/usr/bin/env python3
"""
example-gi-py3.py

Looked at a pull request that was built for py2.x, but
overwrote the original py instead of making a separate example.
I wouldn't have accepted that pull request either.

The keybinder.init() part wasn't in the original example.

aking1012.com@gmail.com

public domain
"""

import gi
gi.require_version('Gtk', '3.0')
gi.require_version('Keybinder', '3.0')

from gi.repository import Gtk
from gi.repository import Keybinder

def callback(keystr, user_data):
print ("Handling", user_data)
print ("Event time:", Keybinder.get_current_event_time())
Gtk.main_quit()

if __name__ == '__main__':
keystr = "<Ctrl><Alt>M"
Keybinder.init()
Keybinder.bind(keystr, callback, "keystring %s (user data)" % keystr)
print ("Press", keystr, "to handle keybinding and quit")
Gtk.main()
2 changes: 1 addition & 1 deletion python-keybinder/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
INCLUDES = $(PYTHON_INCLUDES) $(PYGTK_CFLAGS) -I../libkeybinder
INCLUDES = $(PYTHON_INCLUDES) $(PYGTK_CFLAGS) -I$(top_srcdir)/libkeybinder

AM_CFLAGS = -Wall

Expand Down