X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=shell%2Fev-view-accessible.c;h=27f887a1a2e63392ced256e5e025d97dd6fc8c15;hb=0818fd8b1ce7e011d5abe487b2a3cbca774861e8;hp=e53ba35f80d694bf3cf7edd7d1d1320faf24337d;hpb=a0af7b2e9d42e05aa0108ae6dc9c34deb9723404;p=evince.git diff --git a/shell/ev-view-accessible.c b/shell/ev-view-accessible.c index e53ba35f..27f887a1 100644 --- a/shell/ev-view-accessible.c +++ b/shell/ev-view-accessible.c @@ -371,7 +371,8 @@ ev_view_accessible_idle_do_action (gpointer data) EvViewAccessiblePriv* priv = ev_view_accessible_get_priv (ATK_OBJECT (data)); ev_view_scroll (EV_VIEW (GTK_ACCESSIBLE (data)->widget), - priv->idle_scroll); + priv->idle_scroll, + FALSE); priv->action_idle_handler = 0; return FALSE; } @@ -466,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 */ @@ -480,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, @@ -565,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 */