diff options
| author | Cyrille Bagard <nocbos@gmail.com> | 2017-08-26 22:15:05 (GMT) |
|---|---|---|
| committer | Cyrille Bagard <nocbos@gmail.com> | 2017-08-26 22:15:05 (GMT) |
| commit | 8ca477e012b11a19363542d171b8e973d637641c (patch) | |
| tree | 94a4fcde1779f031946eff7a36075f41a17cd73b /src/gui/status.c | |
| parent | 4fb2ac107092671fe27fc3ebf9fc86dff7c3ec19 (diff) | |
Removed most of the functions using the editor items as global access to active items.
Diffstat (limited to 'src/gui/status.c')
| -rw-r--r-- | src/gui/status.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gui/status.c b/src/gui/status.c index 5043a9b..bd52310 100644 --- a/src/gui/status.c +++ b/src/gui/status.c @@ -222,15 +222,14 @@ GEditorItem *g_status_info_new(GObject *ref) static void track_caret_address_for_status_info(GStatusInfo *info, GtkBufferDisplay *display, const vmpa2t *addr) { - GEditorItem *item; /* Autre version de l'élément */ GLoadedBinary *binary; /* Binaire courant */ - item = G_EDITOR_ITEM(info); - - binary = g_editor_item_get_current_binary(item); + binary = get_current_binary(); focus_address_in_status_info(info, binary, addr); + g_object_unref(G_OBJECT(binary)); + } |
