diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2020-01-10 23:04:51 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2020-01-10 23:04:51 (GMT) |
commit | 6b785b0e6c6048a4a8f1f81f9eaa407e05622368 (patch) | |
tree | dc6dc802b65ec37b3cbc3c65e9d6637654f0981c /src/gui/menus/binary.c | |
parent | c0528230469b10d606b9d1fa66a18696b2584fed (diff) |
Cleaned editor items by removing a direct link to the main window.
Diffstat (limited to 'src/gui/menus/binary.c')
-rw-r--r-- | src/gui/menus/binary.c | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/src/gui/menus/binary.c b/src/gui/menus/binary.c index aeaf6f6..65b371b 100644 --- a/src/gui/menus/binary.c +++ b/src/gui/menus/binary.c @@ -142,7 +142,8 @@ GtkWidget *build_menu_binary(GObject *ref, GMenuBar *bar) /****************************************************************************** * * -* Paramètres : new = nouveau contenu chargé à analyser. * +* Paramètres : ref = espace de référencement global. * +* new = nouveau contenu chargé à analyser. * * * * Description : Réagit à un changement d'affichage principal de contenu. * * * @@ -152,20 +153,13 @@ GtkWidget *build_menu_binary(GObject *ref, GMenuBar *bar) * * ******************************************************************************/ -void update_access_for_content_in_menu_binary(GLoadedContent *new) +void update_access_for_content_in_menu_binary(GObject *ref, GLoadedContent *new) { - GObject *ref; /* Espace de référencements */ gboolean access; /* Accès à déterminer */ GtkWidget *item; /* Elément de menu à traiter */ - /* Préliminaire */ - - ref = get_global_ref(); - access = G_IS_LOADED_BINARY(new); - /* Menus */ - item = GTK_WIDGET(g_object_get_data(ref, "mnu_binary_epoints")); gtk_widget_set_sensitive(item, access); @@ -180,7 +174,8 @@ void update_access_for_content_in_menu_binary(GLoadedContent *new) /****************************************************************************** * * -* Paramètres : new = nouvelle vue du contenu chargé analysé. * +* Paramètres : ref = espace de référencement global. * +* new = nouvelle vue du contenu chargé analysé. * * * * Description : Lance une actualisation du fait d'un changement de support. * * * @@ -190,16 +185,11 @@ void update_access_for_content_in_menu_binary(GLoadedContent *new) * * ******************************************************************************/ -void update_access_for_view_in_menu_binary(GLoadedPanel *new) +void update_access_for_view_in_menu_binary(GObject *ref, GLoadedPanel *new) { - GObject *ref; /* Espace de référencements */ gboolean access; /* Accès à déterminer */ GtkWidget *item; /* Elément de menu à traiter */ - ref = get_global_ref(); - - /* Exportation de graphiques */ - access = GTK_IS_GRAPH_DISPLAY(new); item = GTK_WIDGET(g_object_get_data(ref, "mnu_binary_export_graph")); |