diff options
Diffstat (limited to 'src/gui/menus/plugins.c')
-rw-r--r-- | src/gui/menus/plugins.c | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/src/gui/menus/plugins.c b/src/gui/menus/plugins.c new file mode 100644 index 0000000..6967665 --- /dev/null +++ b/src/gui/menus/plugins.c @@ -0,0 +1,65 @@ + +/* Chrysalide - Outil d'analyse de fichiers binaires + * plugins.c - gestion du menu 'Greffons' + * + * Copyright (C) 2015 Cyrille Bagard + * + * This file is part of Chrysalide. + * + * OpenIDA is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * OpenIDA is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + +#include "plugins.h" + + +#include <string.h> + + +#include <i18n.h> + + +#include "../../gtkext/easygtk.h" + + + +/****************************************************************************** +* * +* Paramètres : ref = espace de référencement global. * +* accgroup = groupe d'accélérateurs pour les menus. * +* * +* Description : Construit le menu "Aide". * +* * +* Retour : Panneau de menus mis en place. * +* * +* Remarques : - * +* * +******************************************************************************/ + +GtkWidget *build_menu_plugins(GObject *ref, GtkAccelGroup *accgroup) +{ + GtkWidget *result; /* Support à retourner */ + GtkWidget *menubar; /* Support pour éléments */ + + result = gtk_menu_item_new_with_mnemonic(_("_Plugins")); + gtk_widget_show(result); + + menubar = gtk_menu_new(); + g_object_set_data(ref, "menubar_plugins", G_OBJECT(menubar)); + gtk_menu_item_set_submenu(GTK_MENU_ITEM(result), menubar); + + return result; + +} |