Kouhei Sutou
kous****@users*****
Wed Apr 26 10:17:55 JST 2006
Index: kazehakase/ext/ruby/kz-rb-window.c diff -u kazehakase/ext/ruby/kz-rb-window.c:1.6 kazehakase/ext/ruby/kz-rb-window.c:1.7 --- kazehakase/ext/ruby/kz-rb-window.c:1.6 Sun Jan 22 11:32:33 2006 +++ kazehakase/ext/ruby/kz-rb-window.c Wed Apr 26 10:17:55 2006 @@ -142,6 +142,20 @@ } static VALUE +rb_kz_window_connect_action(VALUE self, GtkAction *action) +{ + kz_window_connect_action(_SELF(self), RVAL2GOBJ(action)); + return Qnil; +} + +static VALUE +rb_kz_window_disconnect_action(VALUE self, GtkAction *action) +{ + kz_window_disconnect_action(_SELF(self), RVAL2GOBJ(action)); + return Qnil; +} + +static VALUE rb_kz_window_update_gesture_items(VALUE self) { kz_window_update_gesture_items(_SELF(self)); @@ -282,6 +296,10 @@ rb_kz_window_store_state, 0); rb_define_method(cKzWindow, "restore_state", rb_kz_window_restore_state, 0); + rb_define_method(cKzWindow, "connect_action", + rb_kz_window_connect_action, 1); + rb_define_method(cKzWindow, "disconnect_action", + rb_kz_window_disconnect_action, 1); rb_define_method(cKzWindow, "update_gesture_items", rb_kz_window_update_gesture_items, 0); rb_define_method(cKzWindow, "title", rb_kz_window_get_title, 0);