File: template-callback-duplicate-rest.rs

package info (click to toggle)
rust-gtk4-macros 0.10.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 268 kB
  • sloc: makefile: 2
file content (18 lines) | stat: -rw-r--r-- 426 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Take a look at the license at the top of the repository in the LICENSE file.

use gtk::glib;
use gtk::subclass::prelude::*;

struct Functions {}

#[gtk::template_callbacks]
impl Functions {
    #[template_callback(function)]
    fn after_rest(#[rest] #[rest] _values: &[glib::Value]) {}
}

fn main() {
    gtk::init().unwrap();
    let scope = gtk::BuilderRustScope::new();
    Functions::add_callbacks_to_scope(&scope);
}