Sha256: 3e3935c1b40bd17320d56f82f5bd6b861199bfc12270e18d0a0265d316a403aa

Contents?: true

Size: 1 KB

Versions: 12

Compression:

Stored size: 1 KB

Contents

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

  rbgtkitem.c -

  $Author: mutoh $
  $Date: 2003/02/01 16:46:23 $

  Copyright (C) 2002,2003 Ruby-GNOME2 Project Team
  Copyright (C) 1998-2000 Yukihiro Matsumoto,
                          Daisuke Kanda,
                          Hiroshi Igarashi
************************************************/

#include "global.h"

/*
 * Item
 */
static VALUE
item_select(VALUE self)
{
    gtk_item_select(GTK_ITEM(RVAL2GOBJ(self)));
    return self;
}

static VALUE
item_deselect(VALUE self)
{
    gtk_item_deselect(GTK_ITEM(RVAL2GOBJ(self)));
    return self;
}

static VALUE
item_toggle(VALUE self)
{
    gtk_item_toggle(GTK_ITEM(RVAL2GOBJ(self)));
    return self;
}

void 
Init_gtk_item()
{
    VALUE gItem = G_DEF_CLASS(GTK_TYPE_ITEM, "Item", mGtk);
    rb_define_method(gItem, "select", item_select, 0);
    rb_define_method(gItem, "deselect", item_deselect, 0);
    rb_define_method(gItem, "toggle", item_toggle, 0);
}

Version data entries

12 entries across 12 versions & 1 rubygems

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