summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2007-05-22 08:08:35 +0000
committerChris Wilson <cpwilson@src.gnome.org>2007-05-22 08:08:35 +0000
commitd042d4067453af8f84b31dc87d1d121fdc2aae12 (patch)
tree76bdd941e4ad164c20969b253dfe037fe0b59689
parentd57f09aba74aec47f3d538acb9e829201bdfe173 (diff)
Bug 440377 – gnome-terminal cannot refresh terminal when accessibility
2007-05-22 Chris Wilson <chris@chris-wilson.co.uk> Bug 440377 – gnome-terminal cannot refresh terminal when accessibility enabled Original patch by Li Yuan. * src/vteaccess.c (vte_terminal_accessible_focus_in), (vte_terminal_accessible_focus_out), (vte_terminal_accessible_visibility_notify): Return FALSE rather than void... svn path=/trunk/; revision=1892
-rw-r--r--ChangeLog10
-rw-r--r--src/vteaccess.c12
2 files changed, 19 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index f32200f..2e39149 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2007-05-22 Chris Wilson <chris@chris-wilson.co.uk>
+
+ Bug 440377 – gnome-terminal cannot refresh terminal when accessibility enabled
+ Original patch by Li Yuan.
+
+ * src/vteaccess.c (vte_terminal_accessible_focus_in),
+ (vte_terminal_accessible_focus_out),
+ (vte_terminal_accessible_visibility_notify):
+ Return FALSE rather than void...
+
2007-05-17 Chris Wilson <chris@chris-wilson.co.uk>
* perf/scroll.vim:
diff --git a/src/vteaccess.c b/src/vteaccess.c
index 5e028e2..38a1843 100644
--- a/src/vteaccess.c
+++ b/src/vteaccess.c
@@ -694,7 +694,7 @@ vte_terminal_accessible_title_changed(VteTerminal *terminal, gpointer data)
}
/* Reflect focus-in events. */
-static void
+static gboolean
vte_terminal_accessible_focus_in(VteTerminal *terminal, GdkEventFocus *event,
gpointer data)
{
@@ -703,10 +703,12 @@ vte_terminal_accessible_focus_in(VteTerminal *terminal, GdkEventFocus *event,
g_signal_emit_by_name(data, "focus-event", TRUE);
atk_object_notify_state_change(ATK_OBJECT(data),
ATK_STATE_FOCUSED, TRUE);
+
+ return FALSE;
}
/* Reflect focus-out events. */
-static void
+static gboolean
vte_terminal_accessible_focus_out(VteTerminal *terminal, GdkEventFocus *event,
gpointer data)
{
@@ -715,10 +717,12 @@ vte_terminal_accessible_focus_out(VteTerminal *terminal, GdkEventFocus *event,
g_signal_emit_by_name(data, "focus-event", FALSE);
atk_object_notify_state_change(ATK_OBJECT(data),
ATK_STATE_FOCUSED, FALSE);
+
+ return FALSE;
}
/* Reflect visibility-notify events. */
-static void
+static gboolean
vte_terminal_accessible_visibility_notify(VteTerminal *terminal,
GdkEventVisibility *event,
gpointer data)
@@ -748,6 +752,8 @@ vte_terminal_accessible_visibility_notify(VteTerminal *terminal,
atk_object_notify_state_change(ATK_OBJECT(data),
ATK_STATE_SHOWING,
visible);
+
+ return FALSE;
}
static void