[evolution] e-map: Don't block signal handlers
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] e-map: Don't block signal handlers
- Date: Fri, 29 Oct 2010 18:38:43 +0000 (UTC)
commit 26c62ff150bdc250e7f85c84b53eedb280b6d9da
Author: Benjamin Otte <otte redhat com>
Date: Mon Oct 18 21:47:11 2010 +0200
e-map: Don't block signal handlers
The signal handler will no-op the operations anyway, because nothing
changed.
widgets/misc/e-map.c | 23 -----------------------
1 files changed, 0 insertions(+), 23 deletions(-)
---
diff --git a/widgets/misc/e-map.c b/widgets/misc/e-map.c
index f6635f9..9c4f3cf 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]