Commit c165224d authored by Nalin Dahyabhai's avatar Nalin Dahyabhai

add. call _vte_terminal_accessible_ref to ensure that accessible signals

* src/vte.c,src/vte.h: (_vte_terminal_accessible_ref): add.
* src/vteaccess.c(vte_terminal_accessible_new): call
	_vte_terminal_accessible_ref to ensure that accessible signals are
	going to be emitted.
parent 6f90d7c1
2003-04-23 nalin
* src/vte.c,src/vte.h: (_vte_terminal_accessible_ref): add.
* src/vteaccess.c(vte_terminal_accessible_new): call
_vte_terminal_accessible_ref to ensure that accessible signals are
going to be emitted.
2003-04-23 nalin
* src/dumpkeys.c: formatting fixup.
* src/iso2022.c: formatting fixups. Try using U+FFFF as the "invalid"
......
......@@ -10615,7 +10615,6 @@ vte_terminal_init(VteTerminal *terminal, gpointer *klass)
#ifdef VTE_DEBUG
/* In debuggable mode, we always do this. */
pvt->accessible = gtk_widget_get_accessible(GTK_WIDGET(terminal));
pvt->accessible_emit = TRUE;
#endif
}
......@@ -12822,7 +12821,6 @@ vte_terminal_get_accessible(GtkWidget *widget)
terminal->pvt->accessible = access;
g_object_add_weak_pointer(G_OBJECT(access),
&terminal->pvt->accessible);
terminal->pvt->accessible_emit = TRUE;
}
}
return access;
......@@ -14504,6 +14502,15 @@ vte_terminal_get_icon_title(VteTerminal *terminal)
return terminal->icon_title;
}
/* We need this bit of glue to ensure that accessible objects will always
* get signals. */
void
_vte_terminal_accessible_ref(VteTerminal *terminal)
{
g_return_if_fail(VTE_IS_TERMINAL(terminal));
terminal->pvt->accessible_emit = TRUE;
}
#ifdef X_DISPLAY_MISSING
/* Watch for property change events. */
static GdkFilterReturn
......
......@@ -316,6 +316,9 @@ glong vte_terminal_get_column_count(VteTerminal *terminal);
const char *vte_terminal_get_window_title(VteTerminal *terminal);
const char *vte_terminal_get_icon_title(VteTerminal *terminal);
/* You never saw this. */
void _vte_terminal_accessible_ref(VteTerminal *terminal);
G_END_DECLS
#endif
......@@ -700,6 +700,7 @@ vte_terminal_accessible_new(VteTerminal *terminal)
atk_object_initialize(ATK_OBJECT(access), G_OBJECT(terminal));
access->widget = GTK_WIDGET(terminal);
_vte_terminal_accessible_ref(terminal);
g_object_add_weak_pointer(G_OBJECT(terminal),
(gpointer*)&access->widget);
......
......@@ -64,7 +64,6 @@ GtkType vte_terminal_accessible_get_type(void);
VTE_TYPE_TERMINAL_ACCESSIBLE)
#define VTE_TERMINAL_ACCESSIBLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VTE_TYPE_TERMINAL_ACCESSIBLE, VteTerminalAccessibleClass))
AtkObject *vte_terminal_accessible_new(VteTerminal *terminal);
/* The terminal accessibility object's factory. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment