diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-09-02 09:47:48 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-09-02 09:47:48 +0200 |
commit | 19241f627259fef20231a505230c19e63ae807a0 (patch) | |
tree | a91dba6b4808e754d63b34b12d287ee7e694f7d9 /src/libgamma_native_facade.pyx | |
parent | misc (diff) | |
download | pylibgamma-19241f627259fef20231a505230c19e63ae807a0.tar.gz pylibgamma-19241f627259fef20231a505230c19e63ae807a0.tar.bz2 pylibgamma-19241f627259fef20231a505230c19e63ae807a0.tar.xz |
fix misc errors + write test
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/libgamma_native_facade.pyx')
-rw-r--r-- | src/libgamma_native_facade.pyx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/libgamma_native_facade.pyx b/src/libgamma_native_facade.pyx index 41ab169..48bec73 100644 --- a/src/libgamma_native_facade.pyx +++ b/src/libgamma_native_facade.pyx @@ -29,7 +29,7 @@ ctypedef int libgamma_subpixel_order_t ctypedef int libgamma_connector_type_t -cdef extern from "libgamma/libgamma-method.h": +cdef extern from "include-libgamma.h": ctypedef struct libgamma_method_capabilities_t: # Capabilities of adjustment methods. @@ -490,7 +490,7 @@ Return the capabilities of an adjustment method. cdef extern char* libgamma_method_default_site(int method) ''' -Return the capabilities of an adjustment method. +Return the default site for an adjustment method. @param method The adjustment method (display server and protocol.) @return The default site, `NULL` if it cannot be determined or @@ -501,7 +501,8 @@ Return the capabilities of an adjustment method. cdef extern const char* libgamma_method_default_site_variable(int method) ''' -Return the capabilities of an adjustment method. +Return the default variable that determines +the default site for an adjustment method. @param method The adjustment method (display server and protocol.) @return The environ variables that is used to determine the @@ -846,7 +847,7 @@ def libgamma_native_method_capabilities(method : int) -> tuple: def libgamma_native_method_default_site(method : int) -> str: ''' - Return the capabilities of an adjustment method. + Return the default site for an adjustment method. @param method The adjustment method (display server and protocol.) @return The default site, `None` if it cannot be determined or @@ -862,7 +863,8 @@ def libgamma_native_method_default_site(method : int) -> str: def libgamma_native_method_default_site_variable(method : int) -> str: ''' - Return the capabilities of an adjustment method. + Return the default variable that determines + the default site for an adjustment method. @param method The adjustment method (display server and protocol.) @return The environ variables that is used to determine the |