aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-10-19 03:47:11 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-10-30 01:50:02 +0800
commit26c62ff150bdc250e7f85c84b53eedb280b6d9da (patch)
treee480658dc5c7a357ea8b331f368bb3bd9c69767c
parent43f1c47f88719f8802cd37622d2b53ed90be834f (diff)
downloadgsoc2013-evolution-26c62ff150bdc250e7f85c84b53eedb280b6d9da.tar
gsoc2013-evolution-26c62ff150bdc250e7f85c84b53eedb280b6d9da.tar.gz
gsoc2013-evolution-26c62ff150bdc250e7f85c84b53eedb280b6d9da.tar.bz2
gsoc2013-evolution-26c62ff150bdc250e7f85c84b53eedb280b6d9da.tar.lz
gsoc2013-evolution-26c62ff150bdc250e7f85c84b53eedb280b6d9da.tar.xz
gsoc2013-evolution-26c62ff150bdc250e7f85c84b53eedb280b6d9da.tar.zst
gsoc2013-evolution-26c62ff150bdc250e7f85c84b53eedb280b6d9da.zip
e-map: Don't block signal handlers
The signal handler will no-op the operations anyway, because nothing changed.
-rw-r--r--widgets/misc/e-map.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/widgets/misc/e-map.c b/widgets/misc/e-map.c
index f6635f9a13..9c4f3cf6e8 100644
--- a/widgets/misc/e-map.c
+++ b/widgets/misc/e-map.c
@@ -533,17 +533,8 @@ e_map_key_press (GtkWidget *widget, GdkEventKey *event)
scroll_to (view, x, y);
- g_signal_handlers_block_matched (priv->hadj, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, view);
- g_signal_handlers_block_matched (priv->vadj, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, view);
-
gtk_adjustment_set_value (priv->hadj, x);
gtk_adjustment_set_value (priv->vadj, y);
-
- g_signal_emit_by_name (priv->hadj, "value_changed");
- g_signal_emit_by_name (priv->vadj, "value_changed");
-
- g_signal_handlers_unblock_matched (priv->hadj, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, view);
- g_signal_handlers_unblock_matched (priv->vadj, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, view);
}
return TRUE;
@@ -1437,8 +1428,6 @@ zoom_do (EMap *map)
EMapPrivate *priv;
priv = map->priv;
- g_signal_handlers_block_matched (priv->hadj, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, map);
- g_signal_handlers_block_matched (priv->vadj, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, map);
if (priv->zoom_state == E_MAP_ZOOMING_IN)
{
@@ -1451,9 +1440,6 @@ zoom_do (EMap *map)
zoom_out (map);
}
- g_signal_handlers_unblock_matched (priv->hadj, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, map);
- g_signal_handlers_unblock_matched (priv->vadj, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, map);
-
set_scroll_area (map);
}
@@ -1526,15 +1512,6 @@ set_scroll_area (EMap *view)
page_size = gtk_adjustment_get_page_size (priv->vadj);
priv->yofs = CLAMP (priv->yofs, 0, upper - page_size);
- g_signal_handlers_block_matched (
- priv->hadj, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, view);
gtk_adjustment_set_value (priv->hadj, priv->xofs);
- g_signal_handlers_unblock_matched (
- priv->hadj, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, view);
-
- g_signal_handlers_block_matched (
- priv->vadj, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, view);
gtk_adjustment_set_value (priv->vadj, priv->yofs);
- g_signal_handlers_unblock_matched (
- priv->vadj, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, view);
}