Commit 64e893e6 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

there's no need to make GTypeInfo and GInterfaceInfo structs static.

2006-10-18  Sven Neumann  <sven@gimp.org>

        * [lots of files]: there's no need to make GTypeInfo and
        GInterfaceInfo structs static.
parent 9699f30d
2006-10-18 Sven Neumann <sven@gimp.org>
* [lots of files]: there's no need to make GTypeInfo and
GInterfaceInfo structs static.
2006-10-18 Sven Neumann <sven@gimp.org>
* plug-ins/script-fu/scripts/unsharp-mask.scm: this script should
......
......@@ -97,7 +97,7 @@ gimp_data_get_type (void)
if (! data_type)
{
static const GTypeInfo data_info =
const GTypeInfo data_info =
{
sizeof (GimpDataClass),
(GBaseInitFunc) NULL,
......
......@@ -45,7 +45,7 @@ gimp_int32_get_type (void)
if (! type)
{
static const GTypeInfo info = { 0, };
const GTypeInfo info = { 0, };
type = g_type_register_static (G_TYPE_INT, "GimpInt32", &info, 0);
}
......@@ -68,7 +68,7 @@ gimp_param_int32_get_type (void)
if (! type)
{
static const GTypeInfo info =
const GTypeInfo info =
{
sizeof (GParamSpecClass),
NULL, NULL,
......@@ -135,7 +135,7 @@ gimp_int16_get_type (void)
if (! type)
{
static const GTypeInfo info = { 0, };
const GTypeInfo info = { 0, };
type = g_type_register_static (G_TYPE_INT, "GimpInt16", &info, 0);
}
......@@ -158,7 +158,7 @@ gimp_param_int16_get_type (void)
if (! type)
{
static const GTypeInfo info =
const GTypeInfo info =
{
sizeof (GParamSpecClass),
NULL, NULL,
......@@ -225,7 +225,7 @@ gimp_int8_get_type (void)
if (! type)
{
static const GTypeInfo info = { 0, };
const GTypeInfo info = { 0, };
type = g_type_register_static (G_TYPE_UINT, "GimpInt8", &info, 0);
}
......@@ -248,7 +248,7 @@ gimp_param_int8_get_type (void)
if (! type)
{
static const GTypeInfo info =
const GTypeInfo info =
{
sizeof (GParamSpecClass),
NULL, NULL,
......@@ -319,7 +319,7 @@ gimp_param_string_get_type (void)
if (! type)
{
static const GTypeInfo info =
const GTypeInfo info =
{
sizeof (GParamSpecClass),
NULL, NULL,
......@@ -427,7 +427,7 @@ gimp_param_enum_get_type (void)
if (! type)
{
static const GTypeInfo info =
const GTypeInfo info =
{
sizeof (GParamSpecClass),
NULL, NULL,
......@@ -551,7 +551,7 @@ gimp_image_id_get_type (void)
if (! type)
{
static const GTypeInfo info = { 0, };
const GTypeInfo info = { 0, };
type = g_type_register_static (G_TYPE_INT, "GimpImageID", &info, 0);
}
......@@ -581,7 +581,7 @@ gimp_param_image_id_get_type (void)
if (! type)
{
static const GTypeInfo info =
const GTypeInfo info =
{
sizeof (GParamSpecClass),
NULL, NULL,
......@@ -717,7 +717,7 @@ gimp_item_id_get_type (void)
if (! type)
{
static const GTypeInfo info = { 0, };
const GTypeInfo info = { 0, };
type = g_type_register_static (G_TYPE_INT, "GimpItemID", &info, 0);
}
......@@ -747,7 +747,7 @@ gimp_param_item_id_get_type (void)
if (! type)
{
static const GTypeInfo info =
const GTypeInfo info =
{
sizeof (GParamSpecClass),
NULL, NULL,
......@@ -901,7 +901,7 @@ gimp_drawable_id_get_type (void)
if (! type)
{
static const GTypeInfo info = { 0, };
const GTypeInfo info = { 0, };
type = g_type_register_static (G_TYPE_INT, "GimpDrawableID", &info, 0);
}
......@@ -924,7 +924,7 @@ gimp_param_drawable_id_get_type (void)
if (! type)
{
static const GTypeInfo info =
const GTypeInfo info =
{
sizeof (GParamSpecClass),
NULL, NULL,
......@@ -1016,7 +1016,7 @@ gimp_layer_id_get_type (void)
if (! type)
{
static const GTypeInfo info = { 0, };
const GTypeInfo info = { 0, };
type = g_type_register_static (G_TYPE_INT, "GimpLayerID", &info, 0);
}
......@@ -1039,7 +1039,7 @@ gimp_param_layer_id_get_type (void)
if (! type)
{
static const GTypeInfo info =
const GTypeInfo info =
{
sizeof (GParamSpecClass),
NULL, NULL,
......@@ -1131,7 +1131,7 @@ gimp_channel_id_get_type (void)
if (! type)
{
static const GTypeInfo info = { 0, };
const GTypeInfo info = { 0, };
type = g_type_register_static (G_TYPE_INT, "GimpChannelID", &info, 0);
}
......@@ -1154,7 +1154,7 @@ gimp_param_channel_id_get_type (void)
if (! type)
{
static const GTypeInfo info =
const GTypeInfo info =
{
sizeof (GParamSpecClass),
NULL, NULL,
......@@ -1246,7 +1246,7 @@ gimp_layer_mask_id_get_type (void)
if (! type)
{
static const GTypeInfo info = { 0, };
const GTypeInfo info = { 0, };
type = g_type_register_static (G_TYPE_INT, "GimpLayerMaskID", &info, 0);
}
......@@ -1269,7 +1269,7 @@ gimp_param_layer_mask_id_get_type (void)
if (! type)
{
static const GTypeInfo info =
const GTypeInfo info =
{
sizeof (GParamSpecClass),
NULL, NULL,
......@@ -1361,7 +1361,7 @@ gimp_selection_id_get_type (void)
if (! type)
{
static const GTypeInfo info = { 0, };
const GTypeInfo info = { 0, };
type = g_type_register_static (G_TYPE_INT, "GimpSelectionID", &info, 0);
}
......@@ -1384,7 +1384,7 @@ gimp_param_selection_id_get_type (void)
if (! type)
{
static const GTypeInfo info =
const GTypeInfo info =
{
sizeof (GParamSpecClass),
NULL, NULL,
......@@ -1476,7 +1476,7 @@ gimp_vectors_id_get_type (void)
if (! type)
{
static const GTypeInfo info = { 0, };
const GTypeInfo info = { 0, };
type = g_type_register_static (G_TYPE_INT, "GimpVectorsID", &info, 0);
}
......@@ -1499,7 +1499,7 @@ gimp_param_vectors_id_get_type (void)
if (! type)
{
static const GTypeInfo info =
const GTypeInfo info =
{
sizeof (GParamSpecClass),
NULL, NULL,
......@@ -1591,7 +1591,7 @@ gimp_display_id_get_type (void)
if (! type)
{
static const GTypeInfo info = { 0, };
const GTypeInfo info = { 0, };
type = g_type_register_static (G_TYPE_INT, "GimpDisplayID", &info, 0);
}
......@@ -1621,7 +1621,7 @@ gimp_param_display_id_get_type (void)
if (! type)
{
static const GTypeInfo info =
const GTypeInfo info =
{
sizeof (GParamSpecClass),
NULL, NULL,
......@@ -1828,7 +1828,7 @@ gimp_param_array_get_type (void)
if (! type)
{
static const GTypeInfo info =
const GTypeInfo info =
{
sizeof (GParamSpecClass),
NULL, NULL,
......@@ -2001,7 +2001,7 @@ gimp_param_int8_array_get_type (void)
if (! type)
{
static const GTypeInfo info =
const GTypeInfo info =
{
sizeof (GParamSpecClass),
NULL, NULL,
......@@ -2123,7 +2123,7 @@ gimp_param_int16_array_get_type (void)
if (! type)
{
static const GTypeInfo info =
const GTypeInfo info =
{
sizeof (GParamSpecClass),
NULL, NULL,
......@@ -2248,7 +2248,7 @@ gimp_param_int32_array_get_type (void)
if (! type)
{
static const GTypeInfo info =
const GTypeInfo info =
{
sizeof (GParamSpecClass),
NULL, NULL,
......@@ -2373,7 +2373,7 @@ gimp_param_float_array_get_type (void)
if (! type)
{
static const GTypeInfo info =
const GTypeInfo info =
{
sizeof (GParamSpecClass),
NULL, NULL,
......@@ -2566,7 +2566,7 @@ gimp_param_string_array_get_type (void)
if (! type)
{
static const GTypeInfo info =
const GTypeInfo info =
{
sizeof (GParamSpecClass),
NULL, NULL,
......
......@@ -87,7 +87,7 @@ gimp_pdb_progress_get_type (void)
if (! type)
{
static const GTypeInfo info =
const GTypeInfo info =
{
sizeof (GimpPdbProgressClass),
(GBaseInitFunc) NULL,
......@@ -100,7 +100,7 @@ gimp_pdb_progress_get_type (void)
(GInstanceInitFunc) gimp_pdb_progress_init,
};
static const GInterfaceInfo progress_iface_info =
const GInterfaceInfo progress_iface_info =
{
(GInterfaceInitFunc) gimp_pdb_progress_progress_iface_init,
NULL, /* iface_finalize */
......
......@@ -38,7 +38,7 @@ gimp_pickable_interface_get_type (void)
if (! pickable_iface_type)
{
static const GTypeInfo pickable_iface_info =
const GTypeInfo pickable_iface_info =
{
sizeof (GimpPickableInterface),
(GBaseInitFunc) NULL,
......
......@@ -56,7 +56,7 @@ gimp_progress_interface_get_type (void)
if (! progress_iface_type)
{
static const GTypeInfo progress_iface_info =
const GTypeInfo progress_iface_info =
{
sizeof (GimpProgressInterface),
(GBaseInitFunc) gimp_progress_iface_base_init,
......
......@@ -80,9 +80,9 @@ gimp_rectangle_options_interface_get_type (void)
{
static GType iface_type = 0;
if (!iface_type)
if (! iface_type)
{
static const GTypeInfo iface_info =
const GTypeInfo iface_info =
{
sizeof (GimpRectangleOptionsInterface),
(GBaseInitFunc) gimp_rectangle_options_iface_base_init,
......
......@@ -160,9 +160,9 @@ gimp_rectangle_tool_interface_get_type (void)
{
static GType iface_type = 0;
if (!iface_type)
if (! iface_type)
{
static const GTypeInfo iface_info =
const GTypeInfo iface_info =
{
sizeof (GimpRectangleToolInterface),
(GBaseInitFunc) gimp_rectangle_tool_iface_base_init,
......
......@@ -333,7 +333,7 @@ pointless_eventbox_subclass_get_type (void)
if (! type)
{
static const GTypeInfo info =
const GTypeInfo info =
{
sizeof (GtkEventBoxClass),
NULL, /* base_init */
......@@ -346,7 +346,7 @@ pointless_eventbox_subclass_get_type (void)
NULL /* instance init */
};
static const GInterfaceInfo editable_info =
const GInterfaceInfo editable_info =
{
(GInterfaceInitFunc) pointless_eventbox_cell_editable_init,
NULL, NULL
......
......@@ -129,7 +129,7 @@ gimp_container_view_interface_get_type (void)
if (! iface_type)
{
static const GTypeInfo iface_info =
const GTypeInfo iface_info =
{
sizeof (GimpContainerViewInterface),
(GBaseInitFunc) gimp_container_view_iface_base_init,
......
......@@ -59,7 +59,7 @@ gimp_docked_interface_get_type (void)
if (!docked_iface_type)
{
static const GTypeInfo docked_iface_info =
const GTypeInfo docked_iface_info =
{
sizeof (GimpDockedInterface),
(GBaseInitFunc) gimp_docked_iface_base_init,
......
......@@ -89,7 +89,7 @@ gimp_pdb_dialog_get_type (void)
if (! dialog_type)
{
static const GTypeInfo dialog_info =
const GTypeInfo dialog_info =
{
sizeof (GimpPdbDialogClass),
(GBaseInitFunc) NULL,
......
......@@ -51,9 +51,9 @@ gtk_hwrap_box_get_type (void)
{
static GType hwrap_box_type = 0;
if (!hwrap_box_type)
if (! hwrap_box_type)
{
static const GTypeInfo hwrap_box_info =
const GTypeInfo hwrap_box_info =
{
sizeof (GtkHWrapBoxClass),
NULL, /* base_init */
......
......@@ -51,9 +51,9 @@ gtk_vwrap_box_get_type (void)
{
static GType vwrap_box_type = 0;
if (!vwrap_box_type)
if (! vwrap_box_type)
{
static const GTypeInfo vwrap_box_info =
const GTypeInfo vwrap_box_info =
{
sizeof (GtkVWrapBoxClass),
NULL, /* base_init */
......
......@@ -95,9 +95,9 @@ gtk_wrap_box_get_type (void)
{
static GType wrap_box_type = 0;
if (!wrap_box_type)
if (! wrap_box_type)
{
static const GTypeInfo wrap_box_info =
const GTypeInfo wrap_box_info =
{
sizeof (GtkWrapBoxClass),
NULL, /* base_init */
......
......@@ -39,9 +39,9 @@ gimp_memsize_get_type (void)
{
static GType memsize_type = 0;
if (!memsize_type)
if (! memsize_type)
{
static const GTypeInfo type_info = { 0, };
const GTypeInfo type_info = { 0, };
memsize_type = g_type_register_static (G_TYPE_UINT64, "GimpMemsize",
&type_info, 0);
......@@ -271,9 +271,9 @@ gimp_param_memsize_get_type (void)
{
static GType spec_type = 0;
if (!spec_type)
if (! spec_type)
{
static const GTypeInfo type_info =
const GTypeInfo type_info =
{
sizeof (GParamSpecClass),
NULL, NULL,
......
......@@ -85,7 +85,7 @@ gimp_param_parasite_get_type (void)
if (! type)
{
static const GTypeInfo type_info =
const GTypeInfo type_info =
{
sizeof (GParamSpecClass),
NULL, NULL,
......
......@@ -42,9 +42,9 @@ gimp_unit_get_type (void)
{
static GType unit_type = 0;
if (!unit_type)
if (! unit_type)
{
static const GTypeInfo type_info = { 0, };
const GTypeInfo type_info = { 0, };
unit_type = g_type_register_static (G_TYPE_INT, "GimpUnit",
&type_info, 0);
......@@ -368,9 +368,9 @@ gimp_param_unit_get_type (void)
{
static GType spec_type = 0;
if (!spec_type)
if (! spec_type)
{
static const GTypeInfo type_info =
const GTypeInfo type_info =
{
sizeof (GParamSpecClass),
NULL, NULL,
......
......@@ -533,9 +533,9 @@ gimp_param_rgb_get_type (void)
{
static GType spec_type = 0;
if (!spec_type)
if (! spec_type)
{
static const GTypeInfo type_info =
const GTypeInfo type_info =
{
sizeof (GParamSpecClass),
NULL, NULL,
......
......@@ -64,9 +64,9 @@ gimp_config_interface_get_type (void)
{
static GType config_iface_type = 0;
if (!config_iface_type)
if (! config_iface_type)
{
static const GTypeInfo config_iface_info =
const GTypeInfo config_iface_info =
{
sizeof (GimpConfigInterface),
(GBaseInitFunc) gimp_config_iface_base_init,
......
......@@ -47,9 +47,9 @@ gimp_config_path_get_type (void)
{
static GType path_type = 0;
if (!path_type)
if (! path_type)
{
static const GTypeInfo type_info = { 0, };
const GTypeInfo type_info = { 0, };
path_type = g_type_register_static (G_TYPE_STRING, "GimpConfigPath",
&type_info, 0);
......@@ -90,9 +90,9 @@ gimp_param_config_path_get_type (void)
{
static GType spec_type = 0;
if (!spec_type)
if (! spec_type)
{
static const GTypeInfo type_info =
const GTypeInfo type_info =
{
sizeof (GParamSpecClass),
NULL, NULL,
......
......@@ -142,9 +142,9 @@ gimp_color_button_get_type (void)
{
static GType button_type = 0;
if (!button_type)
if (! button_type)
{
static const GTypeInfo button_info =
const GTypeInfo button_info =
{
sizeof (GimpColorButtonClass),
(GBaseInitFunc) NULL,
......
......@@ -105,7 +105,7 @@ gimp_preview_get_type (void)
if (! preview_type)
{
static const GTypeInfo preview_info =
const GTypeInfo preview_info =
{
sizeof (GimpPreviewClass),
(GBaseInitFunc) NULL,
......
......@@ -99,7 +99,7 @@ gimp_resolution_entry_get_type (void)
if (! gre_type)
{
static const GTypeInfo gre_info =
const GTypeInfo gre_info =
{
sizeof (GimpResolutionEntryClass),
(GBaseInitFunc) NULL,
......
......@@ -99,7 +99,7 @@ gimp_scrolled_preview_get_type (void)
if (! preview_type)
{
static const GTypeInfo preview_info =
const GTypeInfo preview_info =
{
sizeof (GimpScrolledPreviewClass),
(GBaseInitFunc) NULL,
......
......@@ -230,7 +230,7 @@ cdisplay_colorblind_get_type (GTypeModule *module)
{
if (! cdisplay_colorblind_type)
{
static const GTypeInfo display_info =
const GTypeInfo display_info =
{
sizeof (CdisplayColorblindClass),
(GBaseInitFunc) NULL,
......
......@@ -118,7 +118,7 @@ cdisplay_gamma_get_type (GTypeModule *module)
{
if (! cdisplay_gamma_type)
{
static const GTypeInfo display_info =
const GTypeInfo display_info =
{
sizeof (CdisplayGammaClass),
(GBaseInitFunc) NULL,
......
......@@ -118,7 +118,7 @@ cdisplay_contrast_get_type (GTypeModule *module)
{
if (! cdisplay_contrast_type)
{
static const GTypeInfo display_info =
const GTypeInfo display_info =
{
sizeof (CdisplayContrastClass),
(GBaseInitFunc) NULL,
......
......@@ -134,7 +134,7 @@ cdisplay_lcms_get_type (GTypeModule *module)
{
if (! cdisplay_lcms_type)
{
static const GTypeInfo display_info =
const GTypeInfo display_info =
{
sizeof (CdisplayLcmsClass),
(GBaseInitFunc) NULL,
......
......@@ -129,7 +129,7 @@ cdisplay_proof_get_type (GTypeModule *module)
{
if (! cdisplay_proof_type)
{
static const GTypeInfo display_info =
const GTypeInfo display_info =
{
sizeof (CdisplayProofClass),
(GBaseInitFunc) NULL,
......
......@@ -99,7 +99,7 @@ colorsel_cmyk_get_type (GTypeModule *module)
{
if (! colorsel_cmyk_type)
{
static const GTypeInfo select_info =
const GTypeInfo select_info =
{
sizeof (ColorselCmykClass),
(GBaseInitFunc) NULL,
......
......@@ -116,7 +116,7 @@ colorsel_cmyk_get_type (GTypeModule *module)
{
if (! colorsel_cmyk_type)
{
static const GTypeInfo select_info =
const GTypeInfo select_info =
{
sizeof (ColorselCmykClass),
(GBaseInitFunc) NULL,
......
......@@ -137,7 +137,7 @@ colorsel_triangle_get_type (GTypeModule *module)
{
if (! colorsel_triangle_type)
{
static const GTypeInfo select_info =
const GTypeInfo select_info =
{
sizeof (ColorselTriangleClass),
(GBaseInitFunc) NULL,
......
......@@ -117,7 +117,7 @@ colorsel_water_get_type (GTypeModule *module)
{
if (! colorsel_water_type)
{
static const GTypeInfo select_info =
const GTypeInfo select_info =
{
sizeof (ColorselWaterClass),
(GBaseInitFunc) NULL,
......
......@@ -183,7 +183,7 @@ linux_input_get_type (GTypeModule *module)
{
if (! controller_type)
{
static const GTypeInfo controller_info =
const GTypeInfo controller_info =
{
sizeof (ControllerLinuxInputClass),
(GBaseInitFunc) NULL,
......
......@@ -199,7 +199,7 @@ midi_get_type (GTypeModule *module)
{
if (! controller_type)
{
static const GTypeInfo controller_info =
const GTypeInfo controller_info =
{
sizeof (ControllerMidiClass),
(GBaseInitFunc) NULL,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment