diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-04-09 11:36:09 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-04-09 11:36:09 (GMT) |
commit | 9b7dfd449b08637c4b4fc6d95acf3a8fcb5fd58d (patch) | |
tree | 8d8a1fb3a3bdc9d93a2b9f061bfc8c2d6b4d2e6d /src/gui/menus | |
parent | fd8421351331f5d9b676e054af22f573402033a2 (diff) |
Built interfaces using Glade and GLib resources.
Diffstat (limited to 'src/gui/menus')
-rw-r--r-- | src/gui/menus/binary.c | 19 |
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)); + } |