Skip to content

Commit

Permalink
Fix wrong usage of {{ @type }} macro on Gtk::Widget#template_child
Browse files Browse the repository at this point in the history
…overload.
  • Loading branch information
hugopl committed May 13, 2022
1 parent 55f8175 commit 0333b84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bindings/gtk/widget.cr
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Gtk
class Widget < GObject::InitiallyUnowned
# Convenient function, same as `template_child(self.class.g_type, name)`.
def template_child(name : String) : GObject::Object
template_child({{ @type }}.g_type, name)
template_child(self.class.g_type, name)
end
end
end

0 comments on commit 0333b84

Please sign in to comment.