1 2 3 4 5 6 7 8 9 10 11 12 13 14
| static GtkItemFactoryEntry MenuObjet[] = {
{ "/_Fichier", NULL, NULL, 0, "<Branch>" },
{ "/Fichier/_Ouvrir", NULL, NULL, 0, "<Branch>"},
{ "/Fichier/Ouvrir/_Aide.txt", "<ctrl>A", OuvrirAide, 0, "<StockItem>", GTK_STOCK_OPEN},
{ "/Fichier/Ouvrir/_Gauss.exe", "<ctrl>G", OuvrirGauss, 0, "<StockItem>", GTK_STOCK_OPEN},
{ "/Fichier/_Fermer", "<ctrl>F", Fermer, 0, "<StockItem>", GTK_STOCK_CLOSE },
{ "/Fichier/Sep1", NULL, NULL, 0, "<Separator>" },
{ "/Fichier/_Quitter", NULL, Quitter, 1, "<StockItem>", GTK_STOCK_QUIT},
{ "/_?", NULL, NULL, 0, "<Branch>" },
{ "/?/_A propos de...", "<CTRL>A", APropos, 1, "<StockItem>", GTK_STOCK_HELP}
};
/* Nombre d'elements du menu */
static gint NbMenuItem = sizeof(MenuObjet) / sizeof(MenuObjet[0]); |
Partager