Commit ebecaaca authored by Canek Peláez's avatar Canek Peláez
Browse files

Don't generate wrapper methods if is not necessary: thanks to

Florian Brosch.
parent 69e60778
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -451,11 +451,11 @@ namespace Example {
            base.startup ();

            var action = new GLib.SimpleAction ("preferences", null);
            action.activate.connect (() => preferences ());
            action.activate.connect (preferences);
            add_action (action);

            action = new GLib.SimpleAction ("quit", null);
            action.activate.connect (() => quit ());
            action.activate.connect (quit);
            add_action (action);
            add_accelerator ("<Ctrl>Q", "app.quit", null);

+2 −2
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ namespace Example {
            settings.bind ("show-words", sidebar, "reveal-child",
                           GLib.SettingsBindFlags.DEFAULT);

            sidebar.notify["reveal-child"].connect (() => update_words ());
            sidebar.notify["reveal-child"].connect (update_words);

            var builder = new Gtk.Builder.from_resource ("/org/gtk/exampleapp/gears-menu.ui");
            var menu = builder.get_object ("menu") as GLib.MenuModel;
@@ -53,7 +53,7 @@ namespace Example {
            lines.bind_property ("visible", lines_label, "visible",
                                 GLib.BindingFlags.DEFAULT);

            settings.changed["font"].connect (() => update_font ());
            settings.changed["font"].connect (update_font);
        }

        public void open (GLib.File file) {
+2 −2
Original line number Diff line number Diff line
@@ -34,11 +34,11 @@ namespace Example {
            base.startup ();

            var action = new GLib.SimpleAction ("preferences", null);
            action.activate.connect (() => preferences ());
            action.activate.connect (preferences);
            add_action (action);

            action = new GLib.SimpleAction ("quit", null);
            action.activate.connect (() => quit ());
            action.activate.connect (quit);
            add_action (action);
            add_accelerator ("<Ctrl>Q", "app.quit", null);