summaryrefslogtreecommitdiff
path: root/src/gui/menus
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-11-09 13:18:35 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-11-09 13:18:35 (GMT)
commitc301f7e77eaca632a491b5b4417c8e4b9dce2570 (patch)
tree501ccdd583e35ccad4f3a0592f2fb1b0870e0d5f /src/gui/menus
parent459b345d69532825f21bdcd3e4f92009b0a046dc (diff)
Introduced the first features of a hexadecimal viewer.
Diffstat (limited to 'src/gui/menus')
-rw-r--r--src/gui/menus/edition.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/menus/edition.c b/src/gui/menus/edition.c
index d3381bf..2cfcf85 100644
--- a/src/gui/menus/edition.c
+++ b/src/gui/menus/edition.c
@@ -44,6 +44,7 @@
#include "../../gtkext/gtkblockdisplay.h"
#include "../../gtkext/gtkdisplaypanel.h"
#include "../../gtkext/gtkgraphdisplay.h"
+#include "../../gtkext/hexdisplay.h"
@@ -353,7 +354,7 @@ void update_access_for_cursor_in_menu_edition(GLoadedPanel *panel, const GLineCu
if (G_IS_BINARY_CURSOR(cursor))
{
- assert(GTK_IS_BLOCK_DISPLAY(panel) || GTK_IS_GRAPH_DISPLAY(panel));
+ assert(GTK_IS_HEX_DISPLAY(panel) || GTK_IS_BLOCK_DISPLAY(panel) || GTK_IS_GRAPH_DISPLAY(panel));
if (g_line_cursor_is_valid(cursor))
creator = gtk_display_panel_get_active_object(GTK_DISPLAY_PANEL(panel));
@@ -433,7 +434,7 @@ static void mcb_edition_goto(GtkMenuItem *menuitem, GMenuBar *bar)
addr = get_address_from_goto_dialog(dialog);
panel = get_current_view();
- assert(GTK_IS_BLOCK_DISPLAY(panel) || GTK_IS_GRAPH_DISPLAY(panel));
+ assert(GTK_IS_HEX_DISPLAY(panel) || GTK_IS_BLOCK_DISPLAY(panel) || GTK_IS_GRAPH_DISPLAY(panel));
binary = G_LOADED_BINARY(g_loaded_panel_get_content(panel));
g_loaded_binary_remember_new_goto(binary, addr);