X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=src%2Fviewmenu.c;h=6d2eca4ac9bc658788c3b4aac32fd74864ad017f;hb=da17471fcb26f0dbed0aa88f863aec043b9f8851;hp=31a164e5f2c71c2a6d5f3814ccf0fdfda90a6181;hpb=b1fbb635cdd64e96bf36a62dc6b59d6724f5ad57;p=emu8051.git diff --git a/src/viewmenu.c b/src/viewmenu.c index 31a164e..6d2eca4 100644 --- a/src/viewmenu.c +++ b/src/viewmenu.c @@ -1,5 +1,23 @@ -/* viewmenu.c */ - +/* + * viewmenu.c + * + * Copyright (C) 1999 Jonathan St-André + * Copyright (C) 1999 Hugo Villeneuve + * + * This program 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 2 of the License, or + * (at your option) any later version. + * + * This program 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + */ #if HAVE_CONFIG_H # include "config.h" @@ -12,51 +30,48 @@ #include "messagebox.h" #include "viewmenu.h" - static void -ViewMenuExternalDump( gchar *string ) +ViewMenuExternalDump(gchar *string) { - ShowMessage( "External Memory Dump", "Not implemented yet!", GTK_JUSTIFY_CENTER, - MESSAGE_DIALOG_NORMAL_FONT ); + ShowMessage("External Memory Dump", "Not implemented yet!", + GTK_JUSTIFY_CENTER, MESSAGE_DIALOG_NORMAL_FONT); } - static void -ViewMenuInternalDump( gchar *string ) +ViewMenuInternalDump(gchar *string) { - ShowMessage( "Internal Memory Dump", "Not implemented yet!", GTK_JUSTIFY_CENTER, - MESSAGE_DIALOG_NORMAL_FONT ); + ShowMessage("Internal Memory Dump", "Not implemented yet!", + GTK_JUSTIFY_CENTER, MESSAGE_DIALOG_NORMAL_FONT); } - void -ViewAddMenu( GtkWidget *menu_bar ) +ViewAddMenu(GtkWidget *menu_bar) { - GtkWidget *item; - GtkWidget *menu; - - menu = gtk_menu_new(); - - /* Create the 'Viewmenu External Memory Dump' item. */ - item = gtk_menu_item_new_with_label("External Memory Dump"); - gtk_menu_append( GTK_MENU(menu), item ); - /* Attach the callback functions to the activate signal. */ - gtk_signal_connect_object( GTK_OBJECT(item), "activate", - GTK_SIGNAL_FUNC(ViewMenuExternalDump), - NULL ); - - AddMenuSeparator(menu); - - /* Create the 'Viewmenu Internal Memory Dump' item. */ - item = gtk_menu_item_new_with_label( "Internal Memory Dump" ); - gtk_menu_append( GTK_MENU(menu), item ); - /* Attach the callback functions to the activate signal. */ - gtk_signal_connect_object( GTK_OBJECT(item), "activate", - GTK_SIGNAL_FUNC(ViewMenuInternalDump), - NULL ); - - /* Adding submenu title. */ - item = gtk_menu_item_new_with_label( "View" ); - gtk_menu_item_set_submenu( GTK_MENU_ITEM(item), menu ); - gtk_menu_bar_append( GTK_MENU_BAR( menu_bar ), item ); + GtkWidget *item; + GtkWidget *menu; + + menu = gtk_menu_new(); + + /* Create the 'Viewmenu External Memory Dump' item. */ + item = gtk_menu_item_new_with_label("External Memory Dump"); + gtk_menu_append(GTK_MENU(menu), item); + /* Attach the callback functions to the activate signal. */ + gtk_signal_connect_object(GTK_OBJECT(item), "activate", + GTK_SIGNAL_FUNC(ViewMenuExternalDump), + NULL); + + AddMenuSeparator(menu); + + /* Create the 'Viewmenu Internal Memory Dump' item. */ + item = gtk_menu_item_new_with_label("Internal Memory Dump"); + gtk_menu_append(GTK_MENU(menu), item); + /* Attach the callback functions to the activate signal. */ + gtk_signal_connect_object(GTK_OBJECT(item), "activate", + GTK_SIGNAL_FUNC(ViewMenuInternalDump), + NULL); + + /* Adding submenu title. */ + item = gtk_menu_item_new_with_label("View"); + gtk_menu_item_set_submenu(GTK_MENU_ITEM(item), menu); + gtk_menu_bar_append(GTK_MENU_BAR(menu_bar), item); }