Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x11-toolkits/rubygem-gtk2: Fix build with Ruby 3.2+
PR: 277916
- Loading branch information
Showing
2 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- ext/gtk2/rbgtkcontainer.c.orig 2024-04-05 14:08:42 UTC | ||
+++ ext/gtk2/rbgtkcontainer.c | ||
@@ -172,7 +172,7 @@ rbgtkcontainer_register_child_property_setter(GType gt | ||
pspec = gtk_container_class_find_child_property(oclass, name); | ||
|
||
rb_hash_aset(table, rb_intern(g_param_spec_get_name(pspec)), | ||
- Data_Wrap_Struct(rb_cData, NULL, NULL, func)); | ||
+ Data_Wrap_Struct(rb_cObject, NULL, NULL, func)); | ||
|
||
g_type_class_unref(oclass); | ||
} | ||
@@ -193,7 +193,7 @@ rbgtkcontainer_register_child_property_getter(GType gt | ||
pspec = gtk_container_class_find_child_property(oclass, name); | ||
|
||
rb_hash_aset(table, rb_intern(g_param_spec_get_name(pspec)), | ||
- Data_Wrap_Struct(rb_cData, NULL, NULL, func)); | ||
+ Data_Wrap_Struct(rb_cObject, NULL, NULL, func)); | ||
} | ||
|
||
static VALUE | ||
--- ext/gtk2/rbgtktreeiter.c.orig 2024-04-05 14:08:42 UTC | ||
+++ ext/gtk2/rbgtktreeiter.c | ||
@@ -29,7 +29,7 @@ rbgtk_register_treeiter_set_value_func(GType gtype, rb | ||
rbgtk_register_treeiter_set_value_func(GType gtype, rbgtkiter_set_value_func func) | ||
{ | ||
rb_hash_aset(treeiter_set_value_table, INT2NUM(gtype), | ||
- Data_Wrap_Struct(rb_cData, NULL, NULL, func)); | ||
+ Data_Wrap_Struct(rb_cObject, NULL, NULL, func)); | ||
} | ||
|
||
static VALUE | ||
--- ext/gtk2/rbgtkwindow.c.orig 2024-04-05 14:08:42 UTC | ||
+++ ext/gtk2/rbgtkwindow.c | ||
@@ -582,7 +582,7 @@ Init_gtk_window(VALUE mGtk) | ||
{ | ||
static VALUE toplevels_marker; | ||
toplevels_marker = | ||
- rb_data_object_alloc(rb_cData, NULL, mark_toplevels, NULL); | ||
+ rb_data_object_alloc(rb_cObject, NULL, mark_toplevels, NULL); | ||
rb_global_variable(&toplevels_marker); | ||
} | ||
} |