Sha256: fbcb971a17151ad92eebdcf36327007393084cf8b2d307178799d3d6e8353fac

Contents?: true

Size: 1.03 KB

Versions: 15

Compression:

Stored size: 1.03 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(self)
    VALUE self;
{
    gtk_item_select(GTK_ITEM(RVAL2GOBJ(self)));
    return self;
}

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

static VALUE
item_toggle(self)
    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

15 entries across 15 versions & 1 rubygems

Version Path
gtk2-0.90.7-x86-mingw32 ext/gtk2/rbgtkitem.c
gtk2-0.90.7 ext/gtk2/rbgtkitem.c
gtk2-0.90.6 ext/gtk2/rbgtkitem.c
gtk2-0.90.6-x86-mingw32 ext/gtk2/rbgtkitem.c
gtk2-0.90.5 ext/gtk2/rbgtkitem.c
gtk2-0.90.5-x86-mingw32 ext/gtk2/rbgtkitem.c
gtk2-0.90.4 ext/gtk2/rbgtkitem.c
gtk2-0.90.4-x86-mingw32 ext/gtk2/rbgtkitem.c
gtk2-0.90.3 ext/gtk2/rbgtkitem.c
gtk2-0.90.3-x86-mingw32 ext/gtk2/rbgtkitem.c
gtk2-0.90.2 ext/gtk2/rbgtkitem.c
gtk2-0.90.2-x86-mingw32 ext/gtk2/rbgtkitem.c
gtk2-0.20.1 src/rbgtkitem.c
gtk2-0.20.0.1 src/rbgtkitem.c
gtk2-0.20.0 src/rbgtkitem.c