[gnome-system-tools/rendering-cleanup: 4/21] e-map: Don't block signal handlers
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-tools/rendering-cleanup: 4/21] e-map: Don't block signal handlers
- Date: Tue, 5 Oct 2010 16:39:32 +0000 (UTC)
commit a35824ae2d5508988a1cee5bf91c8e8368611408
Author: Benjamin Otte <otte redhat com>
Date: Mon Oct 4 17:46:21 2010 +0200
e-map: Don't block signal handlers
The signal handler will no-op the operations anyway, because nothing
changed.
src/time/e-map/e-map.c | 23 -----------------------
1 files changed, 0 insertions(+), 23 deletions(-)
---
diff --git a/src/time/e-map/e-map.c b/src/time/e-map/e-map.c
index ea9b584..02f0a95 100644
--- a/src/time/e-map/e-map.c
+++ b/src/time/e-map/e-map.c
@@ -615,17 +615,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;
@@ -1519,8 +1510,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)
{
@@ -1533,9 +1522,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);
}
@@ -1608,15 +1594,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]