summaryrefslogtreecommitdiff
path: root/src/gui/menus
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/menus')
-rw-r--r--src/gui/menus/binary.c19
1 files changed, 5 insertions, 14 deletions
diff --git a/src/gui/menus/binary.c b/src/gui/menus/binary.c
index cf9a9b7..2c349e4 100644
--- a/src/gui/menus/binary.c
+++ b/src/gui/menus/binary.c
@@ -156,29 +156,20 @@ static void mcb_binary_storage(GtkMenuItem *menuitem, GMenuBar *bar)
{
GLoadedBinary *binary; /* Edition courante */
GObject *ref; /* Espace de référencements */
+ GtkBuilder *builder; /* Constructeur utilisé */
GtkWidget *dialog; /* Boîte de dialogue à montrer */
binary = g_editor_item_get_current_binary(G_EDITOR_ITEM(bar));
ref = g_editor_item_get_global_ref(G_EDITOR_ITEM(bar));
- dialog = create_storage_dialog(binary, GTK_WINDOW(ref));
-
- if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_OK)
- {
- /* TODO */
+ dialog = create_storage_dialog(binary, GTK_WINDOW(ref), &builder);
-
- /*
- addr = get_address_from_goto_dialog(dialog);
-
- vpanel = g_editor_item_get_current_view(G_EDITOR_ITEM(bar));
- gtk_view_panel_scroll_to_address(vpanel, addr);
- */
-
- }
+ gtk_dialog_run(GTK_DIALOG(dialog));
gtk_widget_destroy(dialog);
+ g_object_unref(G_OBJECT(builder));
+
}