summaryrefslogtreecommitdiff
path: root/src/gui/panels
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-03-16 23:32:29 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-03-16 23:32:29 (GMT)
commit4021e5f02ce71b35423852cd89fb6f0f2776f7b8 (patch)
tree8f0bbd1632d05d586f7d4af71a80a02906efd5c3 /src/gui/panels
parentb94be85e00d7770af4de93bbba91b421cfb6faea (diff)
Created a new feature and stored all main moves in the database.
Diffstat (limited to 'src/gui/panels')
-rw-r--r--src/gui/panels/bookmarks.c4
-rw-r--r--src/gui/panels/strings.c6
-rw-r--r--src/gui/panels/symbols.c2
3 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/panels/bookmarks.c b/src/gui/panels/bookmarks.c
index 222176a..4dc1871 100644
--- a/src/gui/panels/bookmarks.c
+++ b/src/gui/panels/bookmarks.c
@@ -680,7 +680,7 @@ static void on_bookmarks_selection_change(GtkTreeSelection *selection, GBookmark
addr = g_db_bookmark_get_address(bookmark);
vpanel = g_editor_item_get_current_view(G_EDITOR_ITEM(panel));
- gtk_view_panel_scroll_to_address(vpanel, addr, SPT_CENTER);
+ gtk_view_panel_request_move(vpanel, addr);
g_object_unref(G_OBJECT(bookmark));
@@ -1071,7 +1071,7 @@ static gboolean on_button_press_over_bookmarks(GtkWidget *widget, GdkEventButton
addr = g_db_bookmark_get_address(bookmark);
vpanel = g_editor_item_get_current_view(G_EDITOR_ITEM(panel));
- gtk_view_panel_scroll_to_address(vpanel, addr, SPT_CENTER);
+ gtk_view_panel_request_move(vpanel, addr);
g_object_unref(G_OBJECT(bookmark));
diff --git a/src/gui/panels/strings.c b/src/gui/panels/strings.c
index ae436cf..80706c2 100644
--- a/src/gui/panels/strings.c
+++ b/src/gui/panels/strings.c
@@ -594,7 +594,7 @@ static void on_strings_selection_change(GtkTreeSelection *selection, GStringsPan
addr = get_mrange_addr(g_binary_symbol_get_range(symbol));
vpanel = g_editor_item_get_current_view(G_EDITOR_ITEM(panel));
- gtk_view_panel_scroll_to_address(vpanel, addr, SPT_CENTER);
+ gtk_view_panel_request_move(vpanel, addr);
g_object_unref(G_OBJECT(symbol));
@@ -833,7 +833,7 @@ static gboolean on_button_event_over_strings(GtkWidget *widget, GdkEventButton *
addr = get_mrange_addr(g_binary_symbol_get_range(symbol));
vpanel = g_editor_item_get_current_view(G_EDITOR_ITEM(panel));
- gtk_view_panel_scroll_to_address(vpanel, addr, SPT_CENTER);
+ gtk_view_panel_request_move(vpanel, addr);
g_object_unref(G_OBJECT(symbol));
@@ -1059,7 +1059,7 @@ static void mcb_strings_panel_find_refs(GtkMenuItem *menuitem, GStringsPanel *pa
addr = get_address_from_gotox_dialog(dialog);
vpanel = g_editor_item_get_current_view(G_EDITOR_ITEM(panel));
- gtk_view_panel_scroll_to_address(vpanel, addr, SPT_CENTER);
+ gtk_view_panel_request_move(vpanel, addr);
delete_vmpa(addr);
diff --git a/src/gui/panels/symbols.c b/src/gui/panels/symbols.c
index 422c9b4..d1bca91 100644
--- a/src/gui/panels/symbols.c
+++ b/src/gui/panels/symbols.c
@@ -553,7 +553,7 @@ static void on_symbols_selection_change(GtkTreeSelection *selection, GSymbolsPan
range = g_binary_symbol_get_range(symbol);
vpanel = g_editor_item_get_current_view(G_EDITOR_ITEM(panel));
- gtk_view_panel_scroll_to_address(vpanel, get_mrange_addr(range), SPT_CENTER);
+ gtk_view_panel_request_move(vpanel, get_mrange_addr(range));
g_object_unref(G_OBJECT(symbol));