Wrap D_()

This commit is contained in:
Yevgen Muntyan 2008-09-01 01:15:42 -05:00
parent ab1686038e
commit 1eb63773c9
2 changed files with 15 additions and 3 deletions

View File

@ -5,6 +5,7 @@ import gobject as _gobject
from __moo_utils__ import *
_ = gettext
D_ = dgettext
def N_(string):
return string

View File

@ -726,9 +726,10 @@
)
)
(define-function moo_glade_xml_new
(define-function glade_xml_new_from_file
(c-name "moo_glade_xml_new")
(return-type "MooGladeXML*")
(caller-owns-return #t)
(parameters
'("const-char*" "file")
'("const-char*" "root" (null-ok) (default "NULL"))
@ -737,9 +738,10 @@
)
)
(define-function moo_glade_xml_new_from_buf
(define-function glade_xml_new_from_buf
(c-name "moo_glade_xml_new_from_buf")
(return-type "MooGladeXML*")
(caller-owns-return #t)
(parameters
'("const-char*" "buffer")
'("int" "size" (null-ok) (default "-1"))
@ -2282,13 +2284,22 @@
;; mooutils/mooi18n.h
(define-function gettext
(c-name "moo_gettext")
(c-name "_")
(return-type "const-char*")
(parameters
'("const-char*" "string")
)
)
(define-function dgettext
(c-name "D_")
(return-type "const-char*")
(parameters
'("const-char*" "string")
'("const-char*" "domain")
)
)
;; mooutils/moofiledialog.h