From 1e1131c959c5e74ce1272b698f597e97e0f5ddd7 Mon Sep 17 00:00:00 2001 From: Nicola Fontana Date: Fri, 6 Nov 2009 01:21:09 +0100 Subject: 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 --- gtk/gtktoolbutton.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gtk/gtktoolbutton.c') diff --git a/gtk/gtktoolbutton.c b/gtk/gtktoolbutton.c index 5975a51689..8875b6d6e6 100644 --- a/gtk/gtktoolbutton.c +++ b/gtk/gtktoolbutton.c @@ -114,7 +114,7 @@ gtk_tool_button_get_type (void) if (!type) { - static const GInterfaceInfo activatable_info = + const GInterfaceInfo activatable_info = { (GInterfaceInitFunc) gtk_tool_button_activatable_interface_init, (GInterfaceFinalizeFunc) NULL, -- cgit v1.2.1