diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2012-08-12 23:32:21 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2012-08-12 23:32:21 (GMT) |
commit | 9cfe738c2e9bb49eb2872e92bc4422c548edb517 (patch) | |
tree | ee8dbe5965b9d46394395b8beee87676e098a9f1 /src/gui/tb | |
parent | fc49e98dc2b3e0ae08a5874ecacaef046a0f3ec1 (diff) |
Cleaned the code and handled file binaries properly.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@259 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gui/tb')
-rw-r--r-- | src/gui/tb/source.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/tb/source.c b/src/gui/tb/source.c index 2a1a532..109cbfa 100644 --- a/src/gui/tb/source.c +++ b/src/gui/tb/source.c @@ -41,7 +41,7 @@ static GtkWidget *build_source_tb_widget(GObject *); /* Réagit à un changement du binaire courant. */ -static void update_source_item_binary(GEditorItem *, GOpenidaBinary *); +static void update_source_item_binary(GEditorItem *, GLoadedBinary *); /* Réagit à un changement de panneau d'affichage courant. */ static void update_source_item_view(GEditorItem *, GtkViewPanel *); @@ -136,7 +136,7 @@ GEditorItem *create_source_tb_item(GObject *ref) * * ******************************************************************************/ -static void update_source_item_binary(GEditorItem *item, GOpenidaBinary *binary) +static void update_source_item_binary(GEditorItem *item, GLoadedBinary *binary) { GtkComboBox *combo; /* Liste de sélection */ GtkTreeModel *model; /* Gestionnaire d'éléments */ @@ -160,7 +160,7 @@ static void update_source_item_binary(GEditorItem *item, GOpenidaBinary *binary) /* Inscriptions */ - format = g_openida_binary_get_format(binary); + format = g_loaded_binary_get_format(binary); files = g_binary_format_get_source_files(G_BIN_FORMAT(format), &count, &defsrc); for (i = 0; i < count; i++) @@ -211,18 +211,18 @@ static void update_source_item_view(GEditorItem *item, GtkViewPanel *view) static void change_selected_source(GtkComboBox *widget, GObject *ref) { gint index; /* Nouvelle source ciblée */ - GOpenidaBinary *binary; /* Binaire chargé courant */ + GLoadedBinary *binary; /* Binaire chargé courant */ GCodeBuffer *buffer; /* Nouveau tampon à présenter */ GtkBufferView *view; /* Afficheur de tampons */ index = gtk_combo_box_get_active(widget); - binary = G_OPENIDA_BINARY(g_object_get_data(ref, "current_binary")); - buffer = g_openida_binary_get_decompiled_buffer(binary, index); + binary = G_LOADED_BINARY(g_object_get_data(ref, "current_binary")); + buffer = g_loaded_binary_get_decompiled_buffer(binary, index); view = GTK_BUFFER_VIEW(g_object_get_data(ref, "current_view")); if (GTK_IS_BUFFER_VIEW(view)) gtk_buffer_view_attach_buffer(view, buffer, - g_openida_binary_display_decomp_lines(binary), NULL); + g_loaded_binary_display_decomp_lines(binary), NULL); } |