Skip to content

Commit

Permalink
Dialog: Add since annotation to new method (#721)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmhewitt committed May 7, 2024
1 parent f190e26 commit db97b4f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Widgets/Dialog.vala
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ public class Granite.Dialog : Gtk.Dialog {
* Behaves as described in {@link Gtk.Dialog.add_button}. The last button to be added
* will have keyboard focus by default.
*/
[Version (since = "7.5.0")]
public new unowned Gtk.Widget add_button (string button_text, int response_id) {
unowned var button = base.add_button (button_text, response_id);
button.grab_focus ();
Expand Down

0 comments on commit db97b4f

Please sign in to comment.