Create a gist now

Instantly share code, notes, and snippets.

[GtkTemplate (ui = "/org/gnome/calculator/math-window.ui")]
public class MathWindow : Gtk.ApplicationWindow
{
[GtkChild]
private Gtk.MenuButton menu_button;
[GtkCallback]
private void scroll_changed_cb (Gtk.Adjustment adjustment)
{
return;
}
}
@benwaffle

you missed a [

@aruiz
Owner
aruiz commented Feb 9, 2016

Fixed! Thanks!

@genodeftest

Is this done with stock Gtk+ code or do you have to use special code for GtkTemplates?

I'm asking because exaile is using its own GtkTemplate implementation (example, code)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment