newt 0.9.5 → 0.9.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a0ef883790841be6725ffbd250dafc7d7613b80
4
- data.tar.gz: 89db90156a33409c1728aebc3157e3f4c13d9c29
3
+ metadata.gz: af73f995787c5ed78b1cebe81c074efd838bc5c8
4
+ data.tar.gz: be34df3a2717cc2900c291e09600274f9a68a028
5
5
  SHA512:
6
- metadata.gz: 8d96731853b713c625e6440cf8a28742903b6bd37b6c5d536855c56e5f16cf9b7d5840d15eb3cc3549a50212d648ea66c55606e5f80478269d6de4e060d1bcc2
7
- data.tar.gz: 8669acff2137bce99ba0aaa3195b0f099e44363137407fb6c8031aaf7e1ac4f25507696a5d684601b7a23d127fd4c6e95699edcd06c8b320278a1b28e5ad1ab6
6
+ metadata.gz: a2e514577b88355cd3b13c3a55375e2d782acce4526baac7e711e00a5fa9bf0d34da79d44b238d12f5616f2aa10b0c3a4c10ef5f8251e59bbd417bd51cf63ffa
7
+ data.tar.gz: 0caffbd2bf77eae8394d6e363de3392931fd1ec3a5e58acf3cde8db8d446ee0711d25b289264d65e9fab22be933abc8dbd3d758034e207b6451938cb95dbde50
@@ -824,7 +824,7 @@ static void rb_ext_Form_Destroy(VALUE self)
824
824
  newtComponent form;
825
825
 
826
826
  if (self) {
827
- Data_Get_Struct(cForm, struct newtComponent_struct, form);
827
+ Data_Get_Struct(self, struct newtComponent_struct, form);
828
828
  newtFormDestroy(form);
829
829
  }
830
830
  }
@@ -834,7 +834,8 @@ static VALUE rb_ext_Form_new(VALUE self, VALUE left, VALUE top, VALUE text)
834
834
  newtComponent co;
835
835
 
836
836
  co = newtForm(NULL, NULL, 0);
837
- return Data_Wrap_Struct(self, 0, rb_ext_Form_Destroy, co);
837
+ return Data_Wrap_Struct(self, 0, 0, co);
838
+ //return Data_Wrap_Struct(self, 0, rb_ext_Form_Destroy, co);
838
839
  }
839
840
 
840
841
  static VALUE rb_ext_Form_SetBackground(VALUE self, VALUE color)
@@ -992,7 +993,7 @@ static VALUE rb_ext_Scale_Set(VALUE self, VALUE amount)
992
993
  return Qnil;
993
994
  }
994
995
 
995
- static void rb_ext_Grid_free(VALUE self)
996
+ static void rb_ext_Grid_Destroy(VALUE self)
996
997
  {
997
998
  newtGrid grid;
998
999
 
@@ -1007,8 +1008,8 @@ static VALUE rb_ext_Grid_new(VALUE self, VALUE cols, VALUE rows)
1007
1008
  newtGrid grid;
1008
1009
 
1009
1010
  grid = newtCreateGrid(NUM2INT(cols), NUM2INT(rows));
1010
- /*return Data_Wrap_Struct(self, 0, 0, grid);*/
1011
- return Data_Wrap_Struct(self, 0, rb_ext_Grid_free, grid);
1011
+ return Data_Wrap_Struct(self, 0, 0, grid);
1012
+ //return Data_Wrap_Struct(self, 0, rb_ext_Grid_Destroy, grid);
1012
1013
  }
1013
1014
 
1014
1015
  static VALUE rb_ext_Grid_SetField(VALUE self, VALUE col, VALUE row, VALUE type, VALUE val,
@@ -1178,7 +1179,7 @@ void Init_ruby_newt(){
1178
1179
 
1179
1180
  cGrid = rb_define_class_under(mNewt, "Grid", cWidget);
1180
1181
  rb_define_singleton_method(cGrid, "new", rb_ext_Grid_new, 2);
1181
- /*rb_define_method(cGrid, "destroy", rb_ext_Grid_free, 0);*/
1182
+ /*rb_define_method(cGrid, "destroy", rb_ext_Grid_Destroy, 0);*/
1182
1183
  rb_define_method(cGrid, "set_field", rb_ext_Grid_SetField, 10);
1183
1184
  rb_define_method(cGrid, "wrapped_window", rb_ext_Grid_WrappedWindow, -2);
1184
1185
  rb_define_method(cGrid, "get_size", rb_ext_Grid_GetSize, 0);
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Newt
2
- VERSION = '0.9.5'
2
+ VERSION = '0.9.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: newt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noritsugu Nakamura
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-08-04 00:00:00.000000000 Z
13
+ date: 2015-08-20 00:00:00.000000000 Z
14
14
  dependencies: []
15
15
  description: Ruby bindings for newt TUI library
16
16
  email: foreman-dev@googlegroups.com