Sha256: 6a0cc3b2d225e8c78aff27b6c225e8abbab69ffb0b0b30935e56aeacc4acc16b

Contents?: true

Size: 1.14 KB

Versions: 15

Compression:

Stored size: 1.14 KB

Contents

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

  rbgtkcelleditable.c -

  $Author: mutoh $
  $Date: 2003/05/23 18:47:57 $

  Copyright (C) 2002,2003 Masao Mutoh
************************************************/

#include "global.h"

#define _SELF(s) (GTK_CELL_EDITABLE(RVAL2GOBJ(s)))

static VALUE
celledit_start_editing(self, event)
     VALUE self, event;
{
    gtk_cell_editable_start_editing(_SELF(self), 
                                    NIL_P(event) ? NULL : RVAL2GEV(event));
    return self;
}

static VALUE
celledit_editing_done(self)
     VALUE self;
{
    gtk_cell_editable_editing_done(_SELF(self));
    return self;
}

static VALUE
celledit_remove_widget(self)
     VALUE self;
{
    gtk_cell_editable_remove_widget(_SELF(self));
    return self;
}

void
Init_gtk_celleditable()
{
    VALUE celledit = G_DEF_INTERFACE(GTK_TYPE_CELL_EDITABLE, "CellEditable", mGtk);

    rb_define_method(celledit, "start_editing", celledit_start_editing, 1);
    rb_define_method(celledit, "editing_done", celledit_editing_done, 0);
    rb_define_method(celledit, "remove_widget", celledit_remove_widget, 0);
}

Version data entries

15 entries across 15 versions & 1 rubygems

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