/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */ /************************************************ rbgtkcombo.c - $Author: ggc $ $Date: 2007/07/13 16:07:31 $ Copyright (C) 2002,2003 Ruby-GNOME2 Project Team Copyright (C) 1998-2000 Yukihiro Matsumoto, Daisuke Kanda, Hiroshi Igarashi ************************************************/ #include "global.h" #ifndef GTK_DISABLE_DEPRECATED /* Since 2.4 */ static VALUE combo_set_popdown_strings(VALUE self, VALUE ary) { int i; GList *glist = NULL; Check_Type(ary, T_ARRAY); for (i=0; ientry); } #endif void Init_gtk_combo() { #ifndef GTK_DISABLE_DEPRECATED /* Since 2.4 */ VALUE gCombo = G_DEF_CLASS(GTK_TYPE_COMBO, "Combo", mGtk); rb_define_method(gCombo, "initialize", combo_initialize, -1); rb_define_method(gCombo, "set_value_in_list", combo_set_val_in_list, 2); rb_define_method(gCombo, "set_use_arrows", combo_set_use_arrows, 1); rb_define_method(gCombo, "set_use_arrows_always", combo_set_use_arrows_always, 1); rb_define_method(gCombo, "set_popdown_strings", combo_set_popdown_strings, 1); rb_define_method(gCombo, "disable_activate", combo_disable_activate, 0); rb_define_method(gCombo, "entry", combo_entry, 0); G_DEF_SETTERS(gCombo); #endif }