summaryrefslogtreecommitdiff
path: root/docs/tutorial/gtk-tut.sgml
diff options
context:
space:
mode:
authorNicola Fontana <ntd@entidi.it>2009-11-06 01:21:09 +0100
committerJavier Jardón <jjardon@gnome.org>2009-11-06 01:21:09 +0100
commit1e1131c959c5e74ce1272b698f597e97e0f5ddd7 (patch)
tree8c414b20aa333a218b41138a17a9361efdcb654e /docs/tutorial/gtk-tut.sgml
parente41f4e85cf56f3419fc284f9ef6cfd61b9008b4e (diff)
downloadgtk+-1e1131c959c5e74ce1272b698f597e97e0f5ddd7.tar.gz
Do not use static GTypeInfo and GInterfaceInfo
Either g_type_register_static_simple (used by G_DEFINE_TYPE_EXTENDED) and G_IMPLEMENT_INTERFACE use automatic variables for GTypeInfo and GInterfaceInfo structs, while tutorials and source code often use static variables. This commit consistently adopts the former method. https://bugzilla.gnome.org/show_bug.cgi?id=600158
Diffstat (limited to 'docs/tutorial/gtk-tut.sgml')
-rwxr-xr-xdocs/tutorial/gtk-tut.sgml6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/tutorial/gtk-tut.sgml b/docs/tutorial/gtk-tut.sgml
index f45f6972f0..9a7c9f1c11 100755
--- a/docs/tutorial/gtk-tut.sgml
+++ b/docs/tutorial/gtk-tut.sgml
@@ -11154,7 +11154,7 @@ tictactoe_get_type (void)
if (!ttt_type)
{
- static const GTypeInfo ttt_info =
+ const GTypeInfo ttt_info =
{
sizeof (TictactoeClass),
NULL, /* base_init */
@@ -14606,7 +14606,7 @@ tictactoe_get_type (void)
if (!ttt_type)
{
- static const GTypeInfo ttt_info =
+ const GTypeInfo ttt_info =
{
sizeof (TictactoeClass),
NULL, /* base_init */
@@ -14963,7 +14963,7 @@ gtk_dial_get_type ()
if (!dial_type)
{
- static const GTypeInfo dial_info =
+ const GTypeInfo dial_info =
{
sizeof (GtkDialClass),
NULL,