Sha256: 7bfe595633f6b98fb804d1d2e3a2e92898d3f435a15a5ba4a45091ae4345495c

Contents?: true

Size: 739 Bytes

Versions: 6

Compression:

Stored size: 739 Bytes

Contents

/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
/**********************************************************************

  rbglib_i18n.c -

  $Author: ktou $
  $Date: 2006/02/08 14:54:51 $

  Copyright (C) 2006 Kouhei Sutou

**********************************************************************/

#include "rbgprivate.h"
#include "rbglib.h"
#undef _
#include <glib/gi18n.h>

#if GLIB_CHECK_VERSION(2,6,0)
static VALUE
rbglib_m_language_names(VALUE self)
{
    return STRV2RVAL((const gchar **)g_get_language_names());
}
#endif

void
Init_glib_i18n()
{
    /* glib/gi18n.h */
#if GLIB_CHECK_VERSION(2,6,0)
    rb_define_module_function(mGLib, "language_names",
                              rbglib_m_language_names, 0);
#endif
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
glib2-1.0.3-x86-mingw32 ext/glib2/rbglib_i18n.c
glib2-1.0.3 ext/glib2/rbglib_i18n.c
glib2-1.0.2-x86-mingw32 ext/glib2/rbglib_i18n.c
glib2-1.0.2 ext/glib2/rbglib_i18n.c
glib2-1.0.1 ext/glib2/rbglib_i18n.c
glib2-1.0.1-x86-mingw32 ext/glib2/rbglib_i18n.c