newt 0.9.5 → 0.9.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/ruby_newt/ruby_newt.c +7 -6
- data/lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af73f995787c5ed78b1cebe81c074efd838bc5c8
|
4
|
+
data.tar.gz: be34df3a2717cc2900c291e09600274f9a68a028
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2e514577b88355cd3b13c3a55375e2d782acce4526baac7e711e00a5fa9bf0d34da79d44b238d12f5616f2aa10b0c3a4c10ef5f8251e59bbd417bd51cf63ffa
|
7
|
+
data.tar.gz: 0caffbd2bf77eae8394d6e363de3392931fd1ec3a5e58acf3cde8db8d446ee0711d25b289264d65e9fab22be933abc8dbd3d758034e207b6451938cb95dbde50
|
data/ext/ruby_newt/ruby_newt.c
CHANGED
@@ -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(
|
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,
|
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
|
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
|
-
|
1011
|
-
return Data_Wrap_Struct(self, 0,
|
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",
|
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
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.
|
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-
|
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
|