diff options
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"));  | 
