diff options
author | Ernestas Kulik <ernestask@src.gnome.org> | 2016-04-23 15:07:31 +0300 |
---|---|---|
committer | Ernestas Kulik <ernestask@src.gnome.org> | 2016-05-03 13:16:56 +0300 |
commit | f3aabd3d17779258d20ab2acd82ea7cd5f47e886 (patch) | |
tree | c506f75158bcec083f2c8ef9a3cd1c7cc0135a05 /eel | |
parent | bd73a8ee91610310c3b0dfdaa69465fc48ecac8f (diff) | |
download | nautilus-f3aabd3d17779258d20ab2acd82ea7cd5f47e886.tar.gz |
eel-canvas: don't override deprecated functions
AtkComponentIface's {add,remove}_focus_handler should not be overridden,
since ATK 2.9.4, as atk_component_{add,remove}_focus_handler() are
deprecated.
This commit removes deprecated virtual function overrides.
https://bugzilla.gnome.org/show_bug.cgi?id=762236
Diffstat (limited to 'eel')
-rw-r--r-- | eel/eel-canvas.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/eel/eel-canvas.c b/eel/eel-canvas.c index 0cd3b1ab2..a0f7bf4dc 100644 --- a/eel/eel-canvas.c +++ b/eel/eel-canvas.c @@ -3444,28 +3444,6 @@ boolean_handled_accumulator (GSignalInvocationHint *ihint, return continue_emission; } -static guint -eel_canvas_item_accessible_add_focus_handler (AtkComponent *component, - AtkFocusHandler handler) -{ - GSignalMatchType match_type; - guint signal_id; - - match_type = G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC; - signal_id = g_signal_lookup ("focus-event", ATK_TYPE_OBJECT); - - if (!g_signal_handler_find (component, match_type, signal_id, 0, NULL, - (gpointer) handler, NULL)) { - return g_signal_connect_closure_by_id (component, - signal_id, 0, - g_cclosure_new ( - G_CALLBACK (handler), NULL, - (GClosureNotify) NULL), - FALSE); - } - return 0; -} - static void eel_canvas_item_accessible_get_item_extents (EelCanvasItem *item, GdkRectangle *rect) @@ -3622,22 +3600,13 @@ eel_canvas_item_accessible_grab_focus (AtkComponent *component) } static void -eel_canvas_item_accessible_remove_focus_handler (AtkComponent *component, - guint handler_id) -{ - g_signal_handler_disconnect (component, handler_id); -} - -static void eel_canvas_item_accessible_component_interface_init (AtkComponentIface *iface) { g_return_if_fail (iface != NULL); - iface->add_focus_handler = eel_canvas_item_accessible_add_focus_handler; iface->get_extents = eel_canvas_item_accessible_get_extents; iface->get_mdi_zorder = eel_canvas_item_accessible_get_mdi_zorder; iface->grab_focus = eel_canvas_item_accessible_grab_focus; - iface->remove_focus_handler = eel_canvas_item_accessible_remove_focus_handler; } static gboolean |