Răsfoiți Sursa

Mention how to handle cancel in ConfirmationDialog

Tomasz Chabora 5 ani în urmă
părinte
comite
2b1fb0375d
1 a modificat fișierele cu 4 adăugiri și 0 ștergeri
  1. 4 0
      doc/classes/ConfirmationDialog.xml

+ 4 - 0
doc/classes/ConfirmationDialog.xml

@@ -5,6 +5,10 @@
 	</brief_description>
 	<description>
 		Dialog for confirmation of actions. This dialog inherits from [AcceptDialog], but has by default an OK and Cancel button (in host OS order).
+		To get cancel action, you can use:
+		[codeblock]
+		get_cancel().connect("pressed", self, "cancelled")
+		[/codeblock].
 	</description>
 	<tutorials>
 	</tutorials>