Sha256: bf96290269fa3ad380dc4590cc4a9e95504d227a1fb408fd0032d188aa435294

Contents?: true

Size: 916 Bytes

Versions: 12

Compression:

Stored size: 916 Bytes

Contents

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

  rbgtkimmulticontext.c -

  $Author: mutoh $
  $Date: 2003/05/05 16:58:55 $

  Copyright (C) 2003 Masao Mutoh
************************************************/
#include "global.h"

#define _SELF(self) (GTK_IM_MULTICONTEXT(RVAL2GOBJ(self)))

static VALUE 
immulti_initialize(VALUE self)
{
    G_INITIALIZE(self, gtk_im_multicontext_new());
    return Qnil;
}

static VALUE
immulti_append_menuitems(VALUE self, VALUE menushell)
{
    gtk_im_multicontext_append_menuitems(_SELF(self), RVAL2GOBJ(menushell));
    return self;
}

void 
Init_gtk_im_multicontext()
{
    VALUE gIMMContext = G_DEF_CLASS(GTK_TYPE_IM_MULTICONTEXT, "IMMulticontext", mGtk);

    rb_define_method(gIMMContext, "initialize", immulti_initialize, 0);
    rb_define_method(gIMMContext, "append_menuitems", immulti_append_menuitems, 1);
}

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
gtk2-1.0.3-x86-mingw32 ext/gtk2/rbgtkimmulticontext.c
gtk2-1.0.3 ext/gtk2/rbgtkimmulticontext.c
gtk2-1.0.2-x86-mingw32 ext/gtk2/rbgtkimmulticontext.c
gtk2-1.0.2 ext/gtk2/rbgtkimmulticontext.c
gtk2-1.0.1 ext/gtk2/rbgtkimmulticontext.c
gtk2-1.0.1-x86-mingw32 ext/gtk2/rbgtkimmulticontext.c
gtk2-1.0.0-x86-mingw32 ext/gtk2/rbgtkimmulticontext.c
gtk2-1.0.0 ext/gtk2/rbgtkimmulticontext.c
gtk2-0.90.9 ext/gtk2/rbgtkimmulticontext.c
gtk2-0.90.9-x86-mingw32 ext/gtk2/rbgtkimmulticontext.c
gtk2-0.90.8-x86-mingw32 ext/gtk2/rbgtkimmulticontext.c
gtk2-0.90.8 ext/gtk2/rbgtkimmulticontext.c