[gtkmm-documentation/wip/dboles/no-new: 1/2] docb: Don't use `new` to make button for no reason
- From: Daniel Boles <dboles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm-documentation/wip/dboles/no-new: 1/2] docb: Don't use `new` to make button for no reason
- Date: Sun, 24 Nov 2019 19:39:17 +0000 (UTC)
commit 909ba4477e9a236a8fdf76f3cf45b95295da18f3
Author: Daniel Boles <dboles src gmail com>
Date: Sun Nov 24 19:30:43 2019 +0000
docb: Don't use `new` to make button for no reason
docs/tutorial/C/index-in.docbook | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/docs/tutorial/C/index-in.docbook b/docs/tutorial/C/index-in.docbook
index e06bae1..1fc1093 100644
--- a/docs/tutorial/C/index-in.docbook
+++ b/docs/tutorial/C/index-in.docbook
@@ -887,7 +887,7 @@ or set it later with <methodname>set_label()</methodname>.
<para>To define an accelerator key for keyboard navigation, place an underscore before one of the label's
characters and specify <literal>true</literal> for the optional <literal>mnemonic</literal> parameter. For
instance:
</para>
-<programlisting>Gtk::Button* pButton = new Gtk::Button("_Something", true);</programlisting>
+<programlisting>auto pButton = Gtk::make_managed<Gtk::Button>("_Something", true);</programlisting>
<para>
<classname>Gtk::Button</classname> is also
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]