]> www.fi.muni.cz Git - evince.git/commitdiff
Reduce relocations. Bug #360616.
authorChristian Persch <chpe@cvs.gnome.org>
Sun, 8 Oct 2006 12:35:42 +0000 (12:35 +0000)
committerChristian Persch <chpe@src.gnome.org>
Sun, 8 Oct 2006 12:35:42 +0000 (12:35 +0000)
2006-10-08  Christian Persch  <chpe@cvs.gnome.org>

* backend/ev-async-renderer.c: (ev_async_renderer_get_type):
* backend/ev-document-find.c: (ev_document_find_get_type):
* backend/ev-document-fonts.c: (ev_document_fonts_get_type):
* backend/ev-document-links.c: (ev_document_links_get_type):
* backend/ev-document-security.c: (ev_document_security_get_type):
* backend/ev-document-thumbnails.c:
(ev_document_thumbnails_get_type):
* backend/ev-document.c: (ev_document_get_type):
* backend/ev-ps-exporter.c: (ev_ps_exporter_get_type):
* backend/ev-selection.c: (ev_selection_get_type):
* cut-n-paste/recent-files/egg-recent-model.c:
(egg_recent_model_get_type):
* cut-n-paste/recent-files/egg-recent-view-uimanager.c:
(egg_recent_view_uimanager_get_type):
* cut-n-paste/recent-files/egg-recent-view.c:
(egg_recent_view_get_type):
* cut-n-paste/toolbar-editor/egg-editable-toolbar.c:
(egg_editable_toolbar_get_type):
* cut-n-paste/toolbar-editor/egg-toolbar-editor.c:
(egg_toolbar_editor_get_type):
* cut-n-paste/toolbar-editor/egg-toolbars-model.c:
(egg_toolbars_model_get_type):
* cut-n-paste/toolbar-editor/eggtreemultidnd.c:
(egg_tree_multi_drag_source_get_type):
* cut-n-paste/zoom-control/ephy-zoom-action.c:
(ephy_zoom_action_get_type):
* cut-n-paste/zoom-control/ephy-zoom-control.c:
(ephy_zoom_control_get_type):
* impress/r_back.c: (_imp_fill_back):
* properties/ev-properties-main.c:
(ev_properties_plugin_register_type):
* shell/ev-sidebar-page.c: (ev_sidebar_page_get_type):
* shell/ev-view-accessible.c: (ev_view_accessible_get_type),
(ev_view_accessible_factory_get_type):

Reduce relocations. Bug #360616.

24 files changed:
ChangeLog
INSTALL [deleted file]
backend/ev-async-renderer.c
backend/ev-document-find.c
backend/ev-document-fonts.c
backend/ev-document-links.c
backend/ev-document-security.c
backend/ev-document-thumbnails.c
backend/ev-document.c
backend/ev-ps-exporter.c
backend/ev-selection.c
cut-n-paste/recent-files/egg-recent-model.c
cut-n-paste/recent-files/egg-recent-view-uimanager.c
cut-n-paste/recent-files/egg-recent-view.c
cut-n-paste/toolbar-editor/egg-editable-toolbar.c
cut-n-paste/toolbar-editor/egg-toolbar-editor.c
cut-n-paste/toolbar-editor/egg-toolbars-model.c
cut-n-paste/toolbar-editor/eggtreemultidnd.c
cut-n-paste/zoom-control/ephy-zoom-action.c
cut-n-paste/zoom-control/ephy-zoom-control.c
impress/r_back.c
properties/ev-properties-main.c
shell/ev-sidebar-page.c
shell/ev-view-accessible.c

index c89a93a931c3fb674a01defd18e7fd36e55ae09f..dd6421ac7f50209bd32d384c87949cd6ac665d18 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,42 @@
+2006-10-08  Christian Persch  <chpe@cvs.gnome.org>
+
+       * backend/ev-async-renderer.c: (ev_async_renderer_get_type):
+       * backend/ev-document-find.c: (ev_document_find_get_type):
+       * backend/ev-document-fonts.c: (ev_document_fonts_get_type):
+       * backend/ev-document-links.c: (ev_document_links_get_type):
+       * backend/ev-document-security.c: (ev_document_security_get_type):
+       * backend/ev-document-thumbnails.c:
+       (ev_document_thumbnails_get_type):
+       * backend/ev-document.c: (ev_document_get_type):
+       * backend/ev-ps-exporter.c: (ev_ps_exporter_get_type):
+       * backend/ev-selection.c: (ev_selection_get_type):
+       * cut-n-paste/recent-files/egg-recent-model.c:
+       (egg_recent_model_get_type):
+       * cut-n-paste/recent-files/egg-recent-view-uimanager.c:
+       (egg_recent_view_uimanager_get_type):
+       * cut-n-paste/recent-files/egg-recent-view.c:
+       (egg_recent_view_get_type):
+       * cut-n-paste/toolbar-editor/egg-editable-toolbar.c:
+       (egg_editable_toolbar_get_type):
+       * cut-n-paste/toolbar-editor/egg-toolbar-editor.c:
+       (egg_toolbar_editor_get_type):
+       * cut-n-paste/toolbar-editor/egg-toolbars-model.c:
+       (egg_toolbars_model_get_type):
+       * cut-n-paste/toolbar-editor/eggtreemultidnd.c:
+       (egg_tree_multi_drag_source_get_type):
+       * cut-n-paste/zoom-control/ephy-zoom-action.c:
+       (ephy_zoom_action_get_type):
+       * cut-n-paste/zoom-control/ephy-zoom-control.c:
+       (ephy_zoom_control_get_type):
+       * impress/r_back.c: (_imp_fill_back):
+       * properties/ev-properties-main.c:
+       (ev_properties_plugin_register_type):
+       * shell/ev-sidebar-page.c: (ev_sidebar_page_get_type):
+       * shell/ev-view-accessible.c: (ev_view_accessible_get_type),
+       (ev_view_accessible_factory_get_type):
+
+       Reduce relocations. Bug #360616.
+
 2006-10-08  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>
 
        * backend/ev-document-factory.c:
diff --git a/INSTALL b/INSTALL
deleted file mode 100644 (file)
index 54caf7c..0000000
--- a/INSTALL
+++ /dev/null
@@ -1,229 +0,0 @@
-Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002 Free Software
-Foundation, Inc.
-
-   This file is free documentation; the Free Software Foundation gives
-unlimited permission to copy, distribute and modify it.
-
-Basic Installation
-==================
-
-   These are generic installation instructions.
-
-   The `configure' shell script attempts to guess correct values for
-various system-dependent variables used during compilation.  It uses
-those values to create a `Makefile' in each directory of the package.
-It may also create one or more `.h' files containing system-dependent
-definitions.  Finally, it creates a shell script `config.status' that
-you can run in the future to recreate the current configuration, and a
-file `config.log' containing compiler output (useful mainly for
-debugging `configure').
-
-   It can also use an optional file (typically called `config.cache'
-and enabled with `--cache-file=config.cache' or simply `-C') that saves
-the results of its tests to speed up reconfiguring.  (Caching is
-disabled by default to prevent problems with accidental use of stale
-cache files.)
-
-   If you need to do unusual things to compile the package, please try
-to figure out how `configure' could check whether to do them, and mail
-diffs or instructions to the address given in the `README' so they can
-be considered for the next release.  If you are using the cache, and at
-some point `config.cache' contains results you don't want to keep, you
-may remove or edit it.
-
-   The file `configure.ac' (or `configure.in') is used to create
-`configure' by a program called `autoconf'.  You only need
-`configure.ac' if you want to change it or regenerate `configure' using
-a newer version of `autoconf'.
-
-The simplest way to compile this package is:
-
-  1. `cd' to the directory containing the package's source code and type
-     `./configure' to configure the package for your system.  If you're
-     using `csh' on an old version of System V, you might need to type
-     `sh ./configure' instead to prevent `csh' from trying to execute
-     `configure' itself.
-
-     Running `configure' takes awhile.  While running, it prints some
-     messages telling which features it is checking for.
-
-  2. Type `make' to compile the package.
-
-  3. Optionally, type `make check' to run any self-tests that come with
-     the package.
-
-  4. Type `make install' to install the programs and any data files and
-     documentation.
-
-  5. You can remove the program binaries and object files from the
-     source code directory by typing `make clean'.  To also remove the
-     files that `configure' created (so you can compile the package for
-     a different kind of computer), type `make distclean'.  There is
-     also a `make maintainer-clean' target, but that is intended mainly
-     for the package's developers.  If you use it, you may have to get
-     all sorts of other programs in order to regenerate files that came
-     with the distribution.
-
-Compilers and Options
-=====================
-
-   Some systems require unusual options for compilation or linking that
-the `configure' script does not know about.  Run `./configure --help'
-for details on some of the pertinent environment variables.
-
-   You can give `configure' initial values for configuration parameters
-by setting variables in the command line or in the environment.  Here
-is an example:
-
-     ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
-
-   *Note Defining Variables::, for more details.
-
-Compiling For Multiple Architectures
-====================================
-
-   You can compile the package for more than one kind of computer at the
-same time, by placing the object files for each architecture in their
-own directory.  To do this, you must use a version of `make' that
-supports the `VPATH' variable, such as GNU `make'.  `cd' to the
-directory where you want the object files and executables to go and run
-the `configure' script.  `configure' automatically checks for the
-source code in the directory that `configure' is in and in `..'.
-
-   If you have to use a `make' that does not support the `VPATH'
-variable, you have to compile the package for one architecture at a
-time in the source code directory.  After you have installed the
-package for one architecture, use `make distclean' before reconfiguring
-for another architecture.
-
-Installation Names
-==================
-
-   By default, `make install' will install the package's files in
-`/usr/local/bin', `/usr/local/man', etc.  You can specify an
-installation prefix other than `/usr/local' by giving `configure' the
-option `--prefix=PATH'.
-
-   You can specify separate installation prefixes for
-architecture-specific files and architecture-independent files.  If you
-give `configure' the option `--exec-prefix=PATH', the package will use
-PATH as the prefix for installing programs and libraries.
-Documentation and other data files will still use the regular prefix.
-
-   In addition, if you use an unusual directory layout you can give
-options like `--bindir=PATH' to specify different values for particular
-kinds of files.  Run `configure --help' for a list of the directories
-you can set and what kinds of files go in them.
-
-   If the package supports it, you can cause programs to be installed
-with an extra prefix or suffix on their names by giving `configure' the
-option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
-
-Optional Features
-=================
-
-   Some packages pay attention to `--enable-FEATURE' options to
-`configure', where FEATURE indicates an optional part of the package.
-They may also pay attention to `--with-PACKAGE' options, where PACKAGE
-is something like `gnu-as' or `x' (for the X Window System).  The
-`README' should mention any `--enable-' and `--with-' options that the
-package recognizes.
-
-   For packages that use the X Window System, `configure' can usually
-find the X include and library files automatically, but if it doesn't,
-you can use the `configure' options `--x-includes=DIR' and
-`--x-libraries=DIR' to specify their locations.
-
-Specifying the System Type
-==========================
-
-   There may be some features `configure' cannot figure out
-automatically, but needs to determine by the type of machine the package
-will run on.  Usually, assuming the package is built to be run on the
-_same_ architectures, `configure' can figure that out, but if it prints
-a message saying it cannot guess the machine type, give it the
-`--build=TYPE' option.  TYPE can either be a short name for the system
-type, such as `sun4', or a canonical name which has the form:
-
-     CPU-COMPANY-SYSTEM
-
-where SYSTEM can have one of these forms:
-
-     OS KERNEL-OS
-
-   See the file `config.sub' for the possible values of each field.  If
-`config.sub' isn't included in this package, then this package doesn't
-need to know the machine type.
-
-   If you are _building_ compiler tools for cross-compiling, you should
-use the `--target=TYPE' option to select the type of system they will
-produce code for.
-
-   If you want to _use_ a cross compiler, that generates code for a
-platform different from the build platform, you should specify the
-"host" platform (i.e., that on which the generated programs will
-eventually be run) with `--host=TYPE'.
-
-Sharing Defaults
-================
-
-   If you want to set default values for `configure' scripts to share,
-you can create a site shell script called `config.site' that gives
-default values for variables like `CC', `cache_file', and `prefix'.
-`configure' looks for `PREFIX/share/config.site' if it exists, then
-`PREFIX/etc/config.site' if it exists.  Or, you can set the
-`CONFIG_SITE' environment variable to the location of the site script.
-A warning: not all `configure' scripts look for a site script.
-
-Defining Variables
-==================
-
-   Variables not defined in a site shell script can be set in the
-environment passed to `configure'.  However, some packages may run
-configure again during the build, and the customized values of these
-variables may be lost.  In order to avoid this problem, you should set
-them in the `configure' command line, using `VAR=value'.  For example:
-
-     ./configure CC=/usr/local2/bin/gcc
-
-will cause the specified gcc to be used as the C compiler (unless it is
-overridden in the site shell script).
-
-`configure' Invocation
-======================
-
-   `configure' recognizes the following options to control how it
-operates.
-
-`--help'
-`-h'
-     Print a summary of the options to `configure', and exit.
-
-`--version'
-`-V'
-     Print the version of Autoconf used to generate the `configure'
-     script, and exit.
-
-`--cache-file=FILE'
-     Enable the cache: use and save the results of the tests in FILE,
-     traditionally `config.cache'.  FILE defaults to `/dev/null' to
-     disable caching.
-
-`--config-cache'
-`-C'
-     Alias for `--cache-file=config.cache'.
-
-`--quiet'
-`--silent'
-`-q'
-     Do not print messages saying which checks are being made.  To
-     suppress all normal output, redirect it to `/dev/null' (any error
-     messages will still be shown).
-
-`--srcdir=DIR'
-     Look for the package's source code in directory DIR.  Usually
-     `configure' can determine that directory automatically.
-
-`configure' also accepts some other, not widely useful, options.  Run
-`configure --help' for more details.
-
index 022c0b6fe162ef341c6fac9ea9fbe84d48b21bbc..f0ffce486f1f91b57649b4cf51d61159df835b76 100644 (file)
@@ -39,7 +39,7 @@ ev_async_renderer_get_type (void)
 
        if (G_UNLIKELY (type == 0))
        {
-               static const GTypeInfo our_info =
+               const GTypeInfo our_info =
                {
                        sizeof (EvAsyncRendererIface),
                        NULL,
index 1be43b98d22caf9ceb3dbb6777f391976c58f181..02fbae2e122ff3b3eae4a85a2a6fe219374c29c4 100644 (file)
@@ -32,7 +32,7 @@ ev_document_find_get_type (void)
 
        if (G_UNLIKELY (type == 0))
        {
-               static const GTypeInfo our_info =
+               const GTypeInfo our_info =
                {
                        sizeof (EvDocumentFindIface),
                        ev_document_find_base_init,
index 854383dd9ef31600f90ae1a3f9289523f946cfa7..929c21df3ef0d6c4f126dafa34998d91efb1fdd8 100644 (file)
@@ -32,7 +32,7 @@ ev_document_fonts_get_type (void)
 
        if (G_UNLIKELY (type == 0))
        {
-               static const GTypeInfo our_info =
+               const GTypeInfo our_info =
                {
                        sizeof (EvDocumentFontsIface),
                        NULL,
index daec3eaa528303eca396fcf826d1ef44b6adc689..d077003604b339368d82e0f407cac07675f2c61e 100644 (file)
@@ -31,7 +31,7 @@ ev_document_links_get_type (void)
        static GType type = 0;
 
        if (G_UNLIKELY (type == 0)) {
-               static const GTypeInfo our_info = {
+               const GTypeInfo our_info = {
                        sizeof (EvDocumentLinksIface),
                        NULL,
                        NULL,
index 5458ccc44e4ae40c0fc5cdb17e0a2a3f7eb9e12c..49ded87365ea75046bba774fcac312ccb35aa436 100644 (file)
@@ -32,7 +32,7 @@ ev_document_security_get_type (void)
        
        if (G_UNLIKELY (type == 0))
        {
-               static const GTypeInfo our_info =
+               const GTypeInfo our_info =
                {
                        sizeof (EvDocumentSecurityIface),
                        NULL,
index f537afdb6bccc86a389fddb5123c2cce5e64328f..c560cec10efa34e65ecd09fb4dde9f1c11ff1b24 100644 (file)
@@ -29,7 +29,7 @@ ev_document_thumbnails_get_type (void)
 
        if (G_UNLIKELY (type == 0))
        {
-               static const GTypeInfo our_info =
+               const GTypeInfo our_info =
                {
                        sizeof (EvDocumentThumbnailsIface),
                        NULL,
index 8598c117703785e78ee08789eef080b4f1538fb5..94647c6b571f82f5d1982f317e44051f91f8933a 100644 (file)
@@ -37,7 +37,7 @@ ev_document_get_type (void)
 
        if (G_UNLIKELY (type == 0))
        {
-               static const GTypeInfo our_info =
+               const GTypeInfo our_info =
                {
                        sizeof (EvDocumentIface),
                        NULL,
index 56944a648261bc46bd33bf0295994b196bd00d70..18c353689345b5651754cf964a3aeeaa9a05ee07 100644 (file)
@@ -31,7 +31,7 @@ ev_ps_exporter_get_type (void)
 
        if (G_UNLIKELY (type == 0))
        {
-               static const GTypeInfo our_info =
+               const GTypeInfo our_info =
                {
                        sizeof (EvPSExporterIface),
                        NULL,
index 36c32e3a53c696436eaa18ab63a27aa9d68e8156..2aa45a7cafbd86710695389202ad107a6fead542 100644 (file)
@@ -31,7 +31,7 @@ ev_selection_get_type (void)
 
        if (G_UNLIKELY (type == 0))
        {
-               static const GTypeInfo our_info =
+               const GTypeInfo our_info =
                {
                        sizeof (EvSelectionIface),
                        ev_selection_base_init,
index fc83fef6ba503dc6339ddbc69bb7ef1fd4e5d44d..c9c255b24ce045fcd34e1478e737c0623fd068a7 100644 (file)
@@ -1941,7 +1941,7 @@ egg_recent_model_get_type (void)
        static GType egg_recent_model_type = 0;
 
        if(!egg_recent_model_type) {
-               static const GTypeInfo egg_recent_model_info = {
+               const GTypeInfo egg_recent_model_info = {
                        sizeof (EggRecentModelClass),
                        NULL, /* base init */
                        NULL, /* base finalize */
index 2010815b4ff4cc0430f4c660e540ded2e828f53a..70d663916e5af80d7fe9fc530fd8548593ea33cc 100644 (file)
@@ -838,7 +838,7 @@ egg_recent_view_uimanager_get_type (void)
        static GType egg_recent_view_uimanager_type = 0;
 
        if(!egg_recent_view_uimanager_type) {
-               static const GTypeInfo egg_recent_view_uimanager_info = {
+               const GTypeInfo egg_recent_view_uimanager_info = {
                        sizeof (EggRecentViewUIManagerClass),
                        NULL, /* base init */
                        NULL, /* base finalize */
@@ -850,7 +850,7 @@ egg_recent_view_uimanager_get_type (void)
                        (GInstanceInitFunc) egg_recent_view_uimanager_init
                };
 
-               static const GInterfaceInfo view_info =
+               const GInterfaceInfo view_info =
                {
                        (GInterfaceInitFunc) egg_recent_view_init,
                        NULL,
index 7794561d17e2ef6f0f96468fcd4fab1f7d1ccd72..2918de53416cf55ba51af5a02c80067702e5c5d2 100644 (file)
@@ -35,7 +35,7 @@ egg_recent_view_get_type (void)
 
        if (!view_type)
        {
-               static const GTypeInfo view_info =
+               const GTypeInfo view_info =
                {
                        sizeof (EggRecentViewClass),  /* class_size */
                        NULL,                       /* base_init */
index b7fa0951db89c1824a0f5c80f1c20648a7a59984..8698ba6ad942772f6b27f747087647d0fbc34492 100644 (file)
@@ -109,7 +109,7 @@ egg_editable_toolbar_get_type (void)
 
   if (G_UNLIKELY (type == 0))
     {
-      static const GTypeInfo our_info = {
+      const GTypeInfo our_info = {
        sizeof (EggEditableToolbarClass),
        NULL,                   /* base_init */
        NULL,                   /* base_finalize */
index 0564c6fe704a7e6f7c5f9edffb6124c86ef10b04..3882626c6cf7403283b8416bac005eb9f84a6243 100644 (file)
@@ -78,7 +78,7 @@ egg_toolbar_editor_get_type (void)
 
   if (G_UNLIKELY (type == 0))
     {
-      static const GTypeInfo our_info = {
+      const GTypeInfo our_info = {
        sizeof (EggToolbarEditorClass),
        NULL,                   /* base_init */
        NULL,                   /* base_finalize */
index f0a5b0fa0fb5ebe9ddf1ca00ef272d175ce0c345..2cd58ac6985d0e18c15c02d9dda15a8069579936 100644 (file)
@@ -75,7 +75,7 @@ egg_toolbars_model_get_type (void)
 
   if (G_UNLIKELY (type == 0))
     {
-      static const GTypeInfo our_info = {
+      const GTypeInfo our_info = {
        sizeof (EggToolbarsModelClass),
        NULL,                   /* base_init */
        NULL,                   /* base_finalize */
index 3a7da919c082fb034a3eb3ba2b5e71d4cc708c1c..4850c68603be55b1e2b1ba00cf275ca9d6d368bb 100644 (file)
@@ -59,7 +59,7 @@ egg_tree_multi_drag_source_get_type (void)
 
   if (!our_type)
     {
-      static const GTypeInfo our_info =
+      const GTypeInfo our_info =
       {
         sizeof (EggTreeMultiDragSourceIface), /* class_size */
        NULL,           /* base_init */
index 3baa94c8fe004e336961e2bbd5222a18e6f25b96..3aadf84eb36bd484b152fa4eff69aa7818543d04 100644 (file)
@@ -69,7 +69,7 @@ ephy_zoom_action_get_type (void)
 
         if (G_UNLIKELY (type == 0))
         {
-                static const GTypeInfo our_info =
+                const GTypeInfo our_info =
                        {
                                sizeof (EphyZoomActionClass),
                                NULL, /* base_init */
index dcbe8a668c36025d33d3da773658ba1dfd123603..79076abe84229d3d2ae50988048fb0fecbb98f2a 100644 (file)
@@ -73,7 +73,7 @@ ephy_zoom_control_get_type (void)
 
        if (G_UNLIKELY (type == 0))
        {
-               static const GTypeInfo our_info =
+               const GTypeInfo our_info =
                        {
                                sizeof (EphyZoomControlClass),
                                NULL, /* base_init */
index 84681da6b6d547fa417baf607a01ce2fecb945d1..94b2949e2ab96997e264e312b9d52691d9a40ce1 100644 (file)
@@ -16,7 +16,7 @@ _imp_fill_back(ImpRenderCtx *ctx, void *drw_data, iks *node)
        iks *x;
 
        type = r_get_style(ctx, node, "draw:fill");
-       if (!type) return 0;
+       if (G_UNLIKELY (type == 0)) return 0;
 
        if (strcmp(type, "solid") == 0) {
                if (r_get_color(ctx, node, "draw:fill-color", &col)) {
index 3b1e8e06eb3b490a03d55d26c6fa40fa21873cef..32677fc1839c0c5e1b3e3acd89d6a44ffa1c9cc8 100644 (file)
@@ -46,7 +46,7 @@ static GList *ev_properties_get_pages
 static void
 ev_properties_plugin_register_type (GTypeModule *module)
 {
-       static const GTypeInfo info = {
+       const GTypeInfo info = {
                sizeof (GObjectClass),
                (GBaseInitFunc) NULL,
                (GBaseFinalizeFunc) NULL,
@@ -57,7 +57,7 @@ ev_properties_plugin_register_type (GTypeModule *module)
                0,
                (GInstanceInitFunc) NULL
        };
-       static const GInterfaceInfo property_page_provider_iface_info = {
+       const GInterfaceInfo property_page_provider_iface_info = {
                (GInterfaceInitFunc)property_page_provider_iface_init,
                NULL,
                NULL
index af45413183864ee5d50b619dcdd4a86c68d0d463..8e6a33d2e07fc422dfd7cc59582df27386530523 100644 (file)
@@ -34,7 +34,7 @@ ev_sidebar_page_get_type (void)
 
        if (G_UNLIKELY (type == 0))
        {
-               static const GTypeInfo sidebar_page_info =
+               const GTypeInfo sidebar_page_info =
                {
                        sizeof (EvSidebarPageIface),
                        NULL,
index 3d64bfceb03f400416c41305153a20ae6be9820d..27f887a1a2e63392ced256e5e025d97dd6fc8c15 100644 (file)
@@ -467,8 +467,8 @@ GType ev_view_accessible_get_type (void)
 {
        static GType type = 0;
 
-       if (!type) {
-               static GTypeInfo tinfo = {
+       if (G_UNLIKELY (type == 0)) {
+               GTypeInfo tinfo = {
                        0,      /* class size */
                        (GBaseInitFunc) NULL,   /* base init */
                        (GBaseFinalizeFunc) NULL,       /* base finalize */
@@ -481,14 +481,14 @@ GType ev_view_accessible_get_type (void)
                        NULL    /* value table */
                };
 
-               static const GInterfaceInfo atk_text_info = {
+               const GInterfaceInfo atk_text_info = {
                        (GInterfaceInitFunc)
                            ev_view_accessible_text_iface_init,
                        (GInterfaceFinalizeFunc) NULL,
                        NULL
                };
 
-               static const GInterfaceInfo atk_action_info = {
+               const GInterfaceInfo atk_action_info = {
                        (GInterfaceInitFunc)
                            ev_view_accessible_action_iface_init,
                        (GInterfaceFinalizeFunc) NULL,
@@ -566,8 +566,8 @@ GType ev_view_accessible_factory_get_type (void)
 {
        static GType type = 0;
 
-       if (!type) {
-               static const GTypeInfo tinfo = {
+       if (G_UNLIKELY (type == 0)) {
+               const GTypeInfo tinfo = {
                        sizeof(AtkObjectFactoryClass),
                        NULL,   /* base_init */
                        NULL,   /* base_finalize */