Skip to content

Instantly share code, notes, and snippets.

@aruiz
Last active February 9, 2016 23:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aruiz/49496b9d9eaa5e237f4d to your computer and use it in GitHub Desktop.
Save aruiz/49496b9d9eaa5e237f4d to your computer and use it in GitHub Desktop.
[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
Copy link

you missed a [

@aruiz
Copy link
Author

aruiz commented Feb 9, 2016

Fixed! Thanks!

@genodeftest
Copy link

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