diff options
author | Nicola Fontana <ntd@entidi.it> | 2009-11-06 01:21:09 +0100 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2009-11-06 01:21:09 +0100 |
commit | 1e1131c959c5e74ce1272b698f597e97e0f5ddd7 (patch) | |
tree | 8c414b20aa333a218b41138a17a9361efdcb654e /modules/printbackends/cups/gtkprintbackendcups.c | |
parent | e41f4e85cf56f3419fc284f9ef6cfd61b9008b4e (diff) | |
download | gtk+-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 'modules/printbackends/cups/gtkprintbackendcups.c')
-rw-r--r-- | modules/printbackends/cups/gtkprintbackendcups.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c index 10947b41bc..0bae98fac2 100644 --- a/modules/printbackends/cups/gtkprintbackendcups.c +++ b/modules/printbackends/cups/gtkprintbackendcups.c @@ -193,7 +193,7 @@ static gboolean request_auth_info (gpointer static void gtk_print_backend_cups_register_type (GTypeModule *module) { - static const GTypeInfo print_backend_cups_info = + const GTypeInfo print_backend_cups_info = { sizeof (GtkPrintBackendCupsClass), NULL, /* base_init */ |