Commit 70ae6a0e authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Apply a patch by Behdad Esfahbod to reduce relocations. (#359053)

2006-10-03  Matthias Clasen  <mclasen@redhat.com>

        * gtk/*.c, gdk/*.c: Apply a patch by Behdad Esfahbod to
        reduce relocations. (#359053)
parent 29d0ac8d
2006-10-03 Matthias Clasen <mclasen@redhat.com>
* gtk/*.c, gdk/*.c: Apply a patch by Behdad Esfahbod to
reduce relocations. (#359053)
2006-10-03 Matthias Clasen <mclasen@redhat.com>
* modules/printbackends/cups/gtkprintbackendcups.c: Complete
......
......@@ -218,7 +218,7 @@ _gdk_paintable_get_type (void)
if (!paintable_type)
{
static const GTypeInfo paintable_info =
const GTypeInfo paintable_info =
{
sizeof (GdkPaintableIface), /* class_size */
NULL, /* base_init */
......
......@@ -95,7 +95,7 @@ gtk_action_group_get_type (void)
if (!type)
{
static const GTypeInfo type_info =
const GTypeInfo type_info =
{
sizeof (GtkActionGroupClass),
NULL, /* base_init */
......
......@@ -33,7 +33,7 @@ gtk_cell_editable_get_type (void)
if (! cell_editable_type)
{
static const GTypeInfo cell_editable_info =
const GTypeInfo cell_editable_info =
{
sizeof (GtkCellEditableIface), /* class_size */
gtk_cell_editable_base_init, /* base_init */
......
......@@ -29,7 +29,7 @@ gtk_cell_layout_get_type (void)
if (! cell_layout_type)
{
static const GTypeInfo cell_layout_info =
const GTypeInfo cell_layout_info =
{
sizeof (GtkCellLayoutIface),
NULL,
......
......@@ -152,7 +152,7 @@ gtk_clipboard_get_type (void)
if (!clipboard_type)
{
static const GTypeInfo clipboard_info =
const GTypeInfo clipboard_info =
{
sizeof (GtkClipboardClass),
NULL, /* base_init */
......
......@@ -120,7 +120,7 @@ gtk_container_get_type (void)
if (!container_type)
{
static const GTypeInfo container_info =
const GTypeInfo container_info =
{
sizeof (GtkContainerClass),
(GBaseInitFunc) gtk_container_base_class_init,
......
......@@ -87,7 +87,7 @@ gtk_curve_get_type (void)
if (!curve_type)
{
static const GTypeInfo curve_info =
const GTypeInfo curve_info =
{
sizeof (GtkCurveClass),
NULL, /* base_init */
......
......@@ -43,7 +43,7 @@ gtk_editable_get_type (void)
if (!editable_type)
{
static const GTypeInfo editable_info =
const GTypeInfo editable_info =
{
sizeof (GtkEditableClass), /* class_size */
gtk_editable_base_init, /* base_init */
......
......@@ -141,7 +141,7 @@ _gtk_file_chooser_embed_get_type (void)
if (!file_chooser_embed_type)
{
static const GTypeInfo file_chooser_embed_info =
const GTypeInfo file_chooser_embed_info =
{
sizeof (GtkFileChooserEmbedIface), /* class_size */
NULL, /* base_init */
......
......@@ -402,7 +402,7 @@ gtk_file_system_get_type (void)
if (!file_system_type)
{
static const GTypeInfo file_system_info =
const GTypeInfo file_system_info =
{
sizeof (GtkFileSystemIface), /* class_size */
gtk_file_system_base_init, /* base_init */
......@@ -1031,7 +1031,7 @@ gtk_file_folder_get_type (void)
if (!file_folder_type)
{
static const GTypeInfo file_folder_info =
const GTypeInfo file_folder_info =
{
sizeof (GtkFileFolderIface), /* class_size */
gtk_file_folder_base_init, /* base_init */
......
......@@ -8092,7 +8092,7 @@ gtk_icon_view_item_accessible_get_type (void)
if (!type)
{
static const GTypeInfo tinfo =
const GTypeInfo tinfo =
{
sizeof (GtkIconViewItemAccessibleClass),
(GBaseInitFunc) NULL, /* base init */
......@@ -9100,7 +9100,7 @@ gtk_icon_view_accessible_factory_get_type (void)
if (!type)
{
static const GTypeInfo tinfo =
const GTypeInfo tinfo =
{
sizeof (AtkObjectFactoryClass),
NULL, /* base_init */
......
......@@ -82,7 +82,7 @@ gtk_object_get_type (void)
if (!object_type)
{
static const GTypeInfo object_info =
const GTypeInfo object_info =
{
sizeof (GtkObjectClass),
(GBaseInitFunc) gtk_object_base_class_init,
......
......@@ -126,7 +126,7 @@ static void printer_status_cb (GtkPrintBackend *backen
static const gchar * const common_paper_sizes[] = {
static const gchar const common_paper_sizes[][16] = {
"na_letter",
"na_legal",
"iso_a4",
......
......@@ -35,7 +35,7 @@ gtk_print_operation_preview_get_type (void)
if (!print_operation_preview_type)
{
static const GTypeInfo print_operation_preview_info =
const GTypeInfo print_operation_preview_info =
{
sizeof (GtkPrintOperationPreviewIface), /* class_size */
gtk_print_operation_preview_base_init, /* base_init */
......
......@@ -163,9 +163,6 @@ static const GtkTargetEntry recent_list_source_targets[] = {
{ "text/uri-list", 0, TEXT_URI_LIST }
};
static const int num_recent_list_source_targets = (sizeof (recent_list_source_targets)
/ sizeof (recent_list_source_targets[0]));
/* Icon size for if we can't get it from the theme */
#define FALLBACK_ICON_SIZE 48
#define FALLBACK_ITEM_LIMIT 20
......@@ -445,7 +442,7 @@ gtk_recent_chooser_default_constructor (GType type,
gtk_drag_source_set (impl->recent_view,
GDK_BUTTON1_MASK,
recent_list_source_targets,
num_recent_list_source_targets,
G_N_ELEMENTS (recent_list_source_targets),
GDK_ACTION_COPY);
impl->filter_combo_hbox = gtk_hbox_new (FALSE, 12);
......
......@@ -137,7 +137,7 @@ gtk_theme_engine_get_type (void)
if (!theme_engine_type)
{
static const GTypeInfo theme_engine_info = {
const GTypeInfo theme_engine_info = {
sizeof (GtkThemeEngineClass),
NULL, /* base_init */
NULL, /* base_finalize */
......
......@@ -30,7 +30,7 @@ gtk_tree_drag_source_get_type (void)
if (!our_type)
{
static const GTypeInfo our_info =
const GTypeInfo our_info =
{
sizeof (GtkTreeDragSourceIface), /* class_size */
NULL, /* base_init */
......@@ -59,7 +59,7 @@ gtk_tree_drag_dest_get_type (void)
if (!our_type)
{
static const GTypeInfo our_info =
const GTypeInfo our_info =
{
sizeof (GtkTreeDragDestIface), /* class_size */
NULL, /* base_init */
......
......@@ -102,7 +102,7 @@ gtk_tree_model_get_type (void)
if (! tree_model_type)
{
static const GTypeInfo tree_model_info =
const GTypeInfo tree_model_info =
{
sizeof (GtkTreeModelIface), /* class_size */
gtk_tree_model_base_init, /* base_init */
......
......@@ -33,7 +33,7 @@ gtk_tree_sortable_get_type (void)
if (! tree_sortable_type)
{
static const GTypeInfo tree_sortable_info =
const GTypeInfo tree_sortable_info =
{
sizeof (GtkTreeSortableIface), /* class_size */
gtk_tree_sortable_base_init, /* base_init */
......
......@@ -7022,7 +7022,7 @@ gtk_window_group_get_type (void)
if (!window_group_type)
{
static const GTypeInfo window_group_info =
const GTypeInfo window_group_info =
{
sizeof (GtkWindowGroupClass),
NULL, /* base_init */
......
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