Elementary: Forgot to add signal callbacks to GLView.

This commit is contained in:
Kai Huuhko 2013-11-09 12:00:38 +02:00
parent 09afe05a3c
commit 3100dcfa46
1 changed files with 21 additions and 0 deletions

View File

@ -349,4 +349,25 @@ cdef class GLView(LayoutClass):
def callback_focused_add(self, func, *args, **kwargs):
"""when glview has received focus."""
self._callback_add("focused", func, *args, **kwargs)
def callback_focused_del(self, func):
self._callback_del("focused", func)
def callback_unfocused_add(self, func, *args, **kwargs):
"""when glview has lost focus."""
self._callback_add("unfocused", func, *args, **kwargs)
def callback_unfocused_del(self, func):
self._callback_del("unfocused", func)
def callback_language_changed_add(self, func, *args, **kwargs):
"""the program's language changed"""
self._callback_add("language,changed", func, *args, **kwargs)
def callback_language_changed_del(self, func):
self._callback_del("language,changed", func)
_object_mapping_register("Elm_Glview", GLView)