diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2019-11-11 18:47:15 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2019-11-11 18:47:15 (GMT) |
commit | 04f9aebee5249624ccd4173989354cd93474376f (patch) | |
tree | 90c23774e2898be78a372650a6d6d219104196fb /src/gui | |
parent | 77c68b54d4b2970a749eb4a658c32d2a16deacf6 (diff) |
Extended the Python bindings.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/dialogs/export_graph.c | 2 | ||||
-rw-r--r-- | src/gui/editem-int.h | 2 | ||||
-rw-r--r-- | src/gui/menus/edition.c | 8 |
3 files changed, 7 insertions, 5 deletions
diff --git a/src/gui/dialogs/export_graph.c b/src/gui/dialogs/export_graph.c index 55556b6..0af0203 100644 --- a/src/gui/dialogs/export_graph.c +++ b/src/gui/dialogs/export_graph.c @@ -117,7 +117,7 @@ void run_graph_export_assistant(GLoadedBinary *binary, GtkGraphDisplay *display, if (cursor != NULL) { - g_binary_cursor_get_info(G_BINARY_CURSOR(cursor), &target); + g_binary_cursor_retrieve(G_BINARY_CURSOR(cursor), &target); g_object_unref(G_OBJECT(cursor)); diff --git a/src/gui/editem-int.h b/src/gui/editem-int.h index 744a55f..cf2d813 100644 --- a/src/gui/editem-int.h +++ b/src/gui/editem-int.h @@ -79,8 +79,10 @@ struct _GEditorItemClass change_item_content_fc change_content; /* Changement de contenu */ change_item_view_fc change_view; /* Rechargement dû à une vue */ update_item_view_fc update_view; /* Rechargement dû à évolutions*/ + track_cursor_in_view_fc track_cursor; /* Suivi des positions */ focus_cursor_fc focus_cursor; /* Prête attention à une addr. */ + update_project_fc update_project; /* Actualisation des binaires */ }; diff --git a/src/gui/menus/edition.c b/src/gui/menus/edition.c index 2cfcf85..cdf8aa3 100644 --- a/src/gui/menus/edition.c +++ b/src/gui/menus/edition.c @@ -487,7 +487,7 @@ static void mcb_edition_switch_numeric_operand(GtkMenuItem *menuitem, gpointer u assert(G_IS_IMM_OPERAND(creator)); cursor = g_loaded_panel_get_cursor(panel); - g_binary_cursor_get_info(G_BINARY_CURSOR(cursor), &addr); + g_binary_cursor_retrieve(G_BINARY_CURSOR(cursor), &addr); g_object_unref(G_OBJECT(cursor)); binary = G_LOADED_BINARY(get_current_content()); @@ -570,7 +570,7 @@ static void mcb_edition_follow_ref(GtkMenuItem *menuitem, gpointer unused) proc = g_loaded_binary_get_processor(binary); cursor = g_loaded_panel_get_cursor(panel); - g_binary_cursor_get_info(G_BINARY_CURSOR(cursor), &iaddr); + g_binary_cursor_retrieve(G_BINARY_CURSOR(cursor), &iaddr); g_object_unref(G_OBJECT(cursor)); defined = g_targetable_operand_get_addr(G_TARGETABLE_OPERAND(creator), &iaddr, format, proc, &addr); @@ -624,7 +624,7 @@ static void mcb_edition_list_xrefs(GtkMenuItem *menuitem, GMenuBar *bar) assert(GTK_IS_BLOCK_DISPLAY(panel) || GTK_IS_GRAPH_DISPLAY(panel)); cursor = g_loaded_panel_get_cursor(panel); - g_binary_cursor_get_info(G_BINARY_CURSOR(cursor), &addr); + g_binary_cursor_retrieve(G_BINARY_CURSOR(cursor), &addr); g_object_unref(G_OBJECT(cursor)); binary = G_LOADED_BINARY(get_current_content()); @@ -703,7 +703,7 @@ static void mcb_edition_bookmarks_toggle(GtkMenuItem *menuitem, GMenuBar *bar) assert(GTK_IS_BLOCK_DISPLAY(panel) || GTK_IS_GRAPH_DISPLAY(panel)); cursor = g_loaded_panel_get_cursor(panel); - g_binary_cursor_get_info(G_BINARY_CURSOR(cursor), &addr); + g_binary_cursor_retrieve(G_BINARY_CURSOR(cursor), &addr); g_object_unref(G_OBJECT(cursor)); /* Accès à la collection */ |