Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: utils.c
- ===================================================================
- --- utils.c (revision 4684)
- +++ utils.c (working copy)
- @@ -337,10 +337,12 @@
- case UTILS_AUXILIARY_LIB: strncpy( ctx->path, "PROGDIR:lib/", PATH_MAX); return 1;
- case UTILS_AUXILIARY_ROM: strncpy( ctx->path, "PROGDIR:roms/", PATH_MAX); return 1;
- case UTILS_AUXILIARY_WIDGET: strncpy( ctx->path, "PROGDIR:ui/widget/", PATH_MAX); return 1;
- + case UTILS_AUXILIARY_GTK: strncpy( ctx->path, "PROGDIR:ui/gtk/", PATH_MAX); return 1;
- #else
- case UTILS_AUXILIARY_LIB: path_segment = "lib"; break;
- case UTILS_AUXILIARY_ROM: path_segment = "roms"; break;
- case UTILS_AUXILIARY_WIDGET: path_segment = "ui/widget"; break;
- + case UTILS_AUXILIARY_GTK: path_segment = "ui/gtk"; break;
- #endif
- default:
- ui_error( UI_ERROR_ERROR, "unknown auxiliary file type %d", ctx->type );
- Index: utils.h
- ===================================================================
- --- utils.h (revision 4684)
- +++ utils.h (working copy)
- @@ -43,6 +43,7 @@
- UTILS_AUXILIARY_LIB, /* Something from the lib/ directory */
- UTILS_AUXILIARY_ROM, /* Something from the roms/ directory */
- UTILS_AUXILIARY_WIDGET, /* Something from the widget/ directory */
- + UTILS_AUXILIARY_GTK, /* Something from the gtk/ directory */
- } utils_aux_type;
- Index: menu.h
- ===================================================================
- --- menu.h (revision 4684)
- +++ menu.h (working copy)
- @@ -34,11 +34,13 @@
- #ifdef UI_GTK
- +#include "compat.h"
- #include <gtk/gtk.h>
- -#define MENU_CALLBACK( name ) void name( GtkWidget *widget, gpointer data )
- +#define MENU_CALLBACK( name ) \
- + void name( GtkAction *gtk_action GCC_UNUSED, gpointer data GCC_UNUSED )
- #define MENU_CALLBACK_WITH_ACTION( name ) \
- - void name( gpointer data, guint action, GtkWidget *widget )
- + void name( GtkAction *gtk_action GCC_UNUSED, guint action )
- #else /* #ifdef UI_GTK */
- @@ -153,7 +155,7 @@
- MENU_DETAIL( menu_joystick_2_detail );
- MENU_CALLBACK( menu_machine_pause );
- -MENU_CALLBACK( menu_machine_reset );
- +MENU_CALLBACK_WITH_ACTION( menu_machine_reset );
- MENU_CALLBACK( menu_machine_select );
- MENU_DETAIL( menu_machine_detail );
- MENU_CALLBACK( menu_machine_debugger );
- Index: menu_data.pl
- ===================================================================
- --- menu_data.pl (revision 4684)
- +++ menu_data.pl (working copy)
- @@ -31,8 +31,8 @@
- sub cname ($);
- sub dump_widget ($);
- sub _dump_widget ($$);
- -sub dump_gtk ($);
- -sub _dump_gtk ($$$);
- +sub dump_gtk ($$);
- +sub _dump_gtk ($$$$$);
- sub dump_win32 ($$);
- sub _dump_win32 ($$$$);
- @@ -40,9 +40,9 @@
- my $ui = shift;
- my $filename;
- +my $mode = 'none';
- # for Win32:
- -my $mode;
- my $idmnum = 100;
- if( $ui eq 'win32' ) {
- @@ -50,12 +50,17 @@
- $mode = shift;
- $filename = 'menu_data.' . $mode;
- +} elsif( $ui eq 'gtk' ) {
- + die "$0: dump_gtk: which mode -- c, or ui?" unless @ARGV >= 1;
- +
- + $mode = shift;
- + $filename = 'menu_data.' . $mode;
- } else {
- $filename = 'menu_data.c';
- }
- print Fuse::GPL( $filename . ': menu structure for Fuse',
- - '2004-2007 Philip Kendall, Stuart Brady, Marek Januszewski' ) . << "CODE";
- + '2004-2007 Philip Kendall, Stuart Brady, Marek Januszewski' ) . << "CODE" if $mode ne 'ui';
- /* This file is autogenerated from menu_data.dat by $0.
- Any changes made here will not be preserved. */
- @@ -106,7 +111,7 @@
- }
- if( $ui eq 'gtk' ) {
- - dump_gtk( \%menus );
- + dump_gtk( $mode, \%menus );
- } elsif( $ui eq 'widget' ) {
- dump_widget( \%menus );
- } elsif( $ui eq 'win32' ) {
- @@ -211,62 +216,124 @@
- print $s;
- }
- -sub dump_gtk ($) {
- +sub dump_gtk ($$) {
- - my( $menu ) = @_;
- + my( $mode, $menu ) = @_;
- + if( $mode eq 'c' ) {
- +
- print << "HEADERS";
- #include <gtk/gtk.h>
- HEADERS
- - print "GtkItemFactoryEntry gtkui_menu_data[] = {\n\n";
- + print "/* Bindings to callbacks with action */\n";
- - _dump_gtk( $menu, '', 'menu' );
- + _dump_gtk( 'callbacks', $menu, '', 'menu', ' ' );
- + print "GtkActionEntry gtkui_menu_data[] = {\n\n";
- +
- + _dump_gtk( 'actions', $menu, '', 'menu', ' ' );
- +
- print << "CODE";
- };
- guint gtkui_menu_data_size =
- - sizeof( gtkui_menu_data ) / sizeof( GtkItemFactoryEntry );
- + sizeof( gtkui_menu_data ) / sizeof( GtkActionEntry );
- CODE
- -
- +
- + } elsif( $mode eq 'ui' ) {
- +
- + print << "XML";
- +<?xml version="1.0" encoding="utf-8"?>
- +<ui>
- + <menubar name='MainMenu'>
- +XML
- +
- + _dump_gtk( 'ui', $menu, '', 'menu', ' ' );
- +
- + print << "XML";
- + </menubar>
- +</ui>
- +XML
- +
- + }
- }
- -sub _dump_gtk ($$$) {
- +sub _dump_gtk ($$$$$) {
- - my( $menu, $gtk_path, $cpath ) = @_;
- + my( $mode, $menu, $gtk_path, $cpath, $spaces ) = @_;
- - foreach my $item ( @{ $menu->{submenu} } ) {
- + foreach my $item ( @{ $menu->{submenu} } ) {
- - my $name = $item->{name};
- - $name =~ s/_// if !$gtk_path;
- + next if $item->{type} eq 'Separator' && $mode ne 'ui';
- - print " { \"$gtk_path/$name\", ";
- + #Remove toplevel accelerators
- + my $name = $item->{name};
- + $name =~ s/_// if !$gtk_path;
- + my $label = $name;
- - if( $item->{hotkey} ) {
- - print "\"$item->{hotkey}\"";
- - } else {
- - print 'NULL';
- - }
- + my $action_name = $name;
- + $action_name =~ s/_//;
- + $action_name = $gtk_path . "/" . $action_name;
- + $action_name =~ s|/|_|g;
- + $action_name =~ s/_//;
- + $action_name = uc( cname( $action_name ) );
- - print ", ";
- + $name =~ s/_// if $gtk_path;
- + my $new_cpath = "${cpath}_" . cname( $name );
- + my $function;
- + my $binded_function = $item->{function} || $new_cpath;
- - $name =~ s/_// if $gtk_path;
- - my $new_cpath = "${cpath}_" . cname( $name );
- + if( $item->{type} eq 'Item' && $item->{action} ) {
- + $function = $new_cpath;
- + } else {
- + $function = $binded_function;
- + }
- - if( $item->{type} eq 'Item' ) {
- - my $function = $item->{function} || $new_cpath;
- - print $function;
- - } else {
- - print 'NULL';
- - }
- + if( $mode eq 'callbacks' ) {
- + if( $item->{type} eq 'Item' && $item->{action} ) {
- + print "MENU_CALLBACK( ", $function, " )\n{\n";
- + print " $binded_function( gtk_action, $item->{action} );\n}\n\n";
- + }
- + } elsif( $mode eq 'ui' ) {
- + if( $item->{type} eq 'Item' ) {
- + print "$spaces<menuitem name='$name' action='$action_name'/>\n";
- + } elsif( $item->{type} eq 'Separator' ) {
- + print "$spaces<separator/>\n";
- + } else {
- + print "$spaces<menu name='", $name, "' action='", $action_name, "'>\n";
- + }
- + } else {
- + #action_name, stock_id, label
- + print " { \"$action_name\", NULL, \"$label\", ";
- - print ", ", $item->{action} || 0, ", \"<$item->{type}>\", NULL },\n";
- + #hotkey
- + if( $item->{hotkey} ) {
- + print "\"$item->{hotkey}\"";
- + } else {
- + print 'NULL';
- + }
- - _dump_gtk( $item, "$gtk_path/$name", $new_cpath ) if $item->{submenu};
- + #tooltip
- + print ", NULL, ";
- +
- + #callback
- + if( $item->{type} eq 'Item' ) {
- + print "G_CALLBACK( ", $function, " )";
- + } else {
- + print "NULL";
- + }
- +
- + print " },\n";
- }
- +
- + _dump_gtk( $mode, $item, "$gtk_path/$name", $new_cpath, $spaces . " " )
- + if $item->{submenu};
- +
- + print "$spaces</menu>\n" if $mode eq 'ui' && $item->{type} eq 'Branch';
- + }
- }
- sub dump_win32 ($$) {
- Property changes on: ui/gtk
- ___________________________________________________________________
- Modified: svn:ignore
- - *.la
- *.lo
- .deps
- .libs
- Makefile
- Makefile.in
- keysyms.c
- menu_data.c
- options.c
- options.h
- options_internals.h
- + *.la
- *.lo
- .deps
- .libs
- Makefile
- Makefile.in
- keysyms.c
- menu_data.c
- options.c
- options.h
- options_internals.h
- menu_data.ui
- Index: ui/gtk/browse.c
- ===================================================================
- --- ui/gtk/browse.c (revision 4684)
- +++ ui/gtk/browse.c (working copy)
- @@ -59,8 +59,8 @@
- static int dialog_created; /* Have we created the dialog box yet? */
- void
- -menu_media_tape_browse( GtkWidget *widget GCC_UNUSED,
- - gpointer data GCC_UNUSED )
- +menu_media_tape_browse( GtkAction *gtk_action GCC_UNUSED,
- + gpointer data GCC_UNUSED )
- {
- /* Firstly, stop emulation */
- fuse_emulation_pause();
- Index: ui/gtk/gtkjoystick.c
- ===================================================================
- --- ui/gtk/gtkjoystick.c (revision 4684)
- +++ ui/gtk/gtkjoystick.c (working copy)
- @@ -130,9 +130,8 @@
- static const guint key_menu_count = sizeof( key_menu ) / sizeof( key_menu[0] );
- void
- -menu_options_joysticks_select( gpointer callback_data GCC_UNUSED,
- - guint callback_action,
- - GtkWidget *widget GCC_UNUSED )
- +menu_options_joysticks_select( GtkAction *gtk_action GCC_UNUSED,
- + guint callback_action )
- {
- GtkWidget *dialog, *hbox, *vbox;
- struct joystick_info info;
- Index: ui/gtk/memory.c
- ===================================================================
- --- ui/gtk/memory.c (revision 4684)
- +++ ui/gtk/memory.c (working copy)
- @@ -86,8 +86,8 @@
- }
- void
- -menu_machine_memorybrowser( GtkWidget *widget GCC_UNUSED,
- - gpointer data GCC_UNUSED )
- +menu_machine_memorybrowser( GtkAction *gtk_action GCC_UNUSED,
- + gpointer data GCC_UNUSED )
- {
- GtkWidget *dialog, *box, *clist, *scrollbar;
- GtkAdjustment *adjustment;
- Index: ui/gtk/gtkinternals.h
- ===================================================================
- --- ui/gtk/gtkinternals.h (revision 4684)
- +++ ui/gtk/gtkinternals.h (working copy)
- @@ -128,7 +128,7 @@
- * The menu data (menu_data.c)
- */
- -extern GtkItemFactoryEntry gtkui_menu_data[];
- +extern GtkActionEntry gtkui_menu_data[];
- extern guint gtkui_menu_data_size;
- /*
- Index: ui/gtk/gtkui.c
- ===================================================================
- --- ui/gtk/gtkui.c (revision 4684)
- +++ ui/gtk/gtkui.c (working copy)
- @@ -61,15 +61,9 @@
- /* The area into which the screen will be drawn */
- GtkWidget *gtkui_drawing_area;
- -/* Popup menu widget(s), as invoked by F1 */
- -GtkWidget *gtkui_menu_popup;
- +/* The UIManager used to create the menu bar */
- +GtkUIManager *ui_manager_menu = NULL;
- -/* The item factory used to create the menu bar */
- -GtkItemFactory *menu_factory;
- -
- -/* And that used to create the popup menus */
- -GtkItemFactory *popup_factory;
- -
- /* True if we were paused via the Machine/Pause menu item */
- static int paused = 0;
- @@ -91,7 +85,7 @@
- static gboolean gtkui_make_menu(GtkAccelGroup **accel_group,
- GtkWidget **menu_bar,
- - GtkItemFactoryEntry *menu_data,
- + GtkActionEntry *menu_data,
- guint menu_data_size);
- static gboolean gtkui_lose_focus( GtkWidget*, GdkEvent*, gpointer );
- @@ -188,8 +182,12 @@
- box = gtk_vbox_new( FALSE, 0 );
- gtk_container_add(GTK_CONTAINER(gtkui_window), box);
- - gtkui_make_menu( &accel_group, &menu_bar, gtkui_menu_data,
- - gtkui_menu_data_size );
- + if( gtkui_make_menu( &accel_group, &menu_bar, gtkui_menu_data,
- + gtkui_menu_data_size ) ) {
- + fprintf(stderr,"%s: couldn't make menus %s:%d\n",
- + fuse_progname,__FILE__,__LINE__);
- + return 1;
- + }
- gtk_window_add_accel_group( GTK_WINDOW(gtkui_window), accel_group );
- gtk_box_pack_start( GTK_BOX(box), menu_bar, FALSE, FALSE, 0 );
- @@ -233,24 +231,44 @@
- static gboolean
- gtkui_make_menu(GtkAccelGroup **accel_group,
- GtkWidget **menu_bar,
- - GtkItemFactoryEntry *menu_data,
- + GtkActionEntry *menu_data,
- guint menu_data_size)
- {
- - *accel_group = gtk_accel_group_new();
- - menu_factory = gtk_item_factory_new( GTK_TYPE_MENU_BAR, "<main>",
- - *accel_group );
- - gtk_item_factory_create_items( menu_factory, menu_data_size, menu_data,
- - NULL);
- - *menu_bar = gtk_item_factory_get_widget( menu_factory, "<main>" );
- + *accel_group = NULL;
- + *menu_bar = NULL;
- + GError *error = NULL;
- + char ui_file[ PATH_MAX ];
- +
- + ui_manager_menu = gtk_ui_manager_new();
- +
- + /* Load actions */
- + GtkActionGroup *menu_action_group = gtk_action_group_new( "MenuActionGroup" );
- + gtk_action_group_add_actions( menu_action_group, menu_data, menu_data_size,
- + NULL );
- + gtk_ui_manager_insert_action_group( ui_manager_menu, menu_action_group, 0 );
- + g_object_unref( menu_action_group );
- +
- + /* Load the UI */
- + if( utils_find_file_path( "menu_data.ui", ui_file, UTILS_AUXILIARY_GTK ) ) {
- + fprintf( stderr, "%s: Error getting path for menu_data.ui\n",
- + fuse_progname );
- + return TRUE;
- + }
- +
- + guint ui_menu_id = gtk_ui_manager_add_ui_from_file( ui_manager_menu, ui_file,
- + &error );
- + if( error ) {
- + g_error_free( error );
- + return TRUE;
- + }
- + else if( !ui_menu_id ) return TRUE;
- +
- + *accel_group = gtk_ui_manager_get_accel_group( ui_manager_menu );
- +
- + *menu_bar = gtk_ui_manager_get_widget( ui_manager_menu, "/MainMenu" );
- g_signal_connect( G_OBJECT( *menu_bar ), "deactivate",
- G_CALLBACK( gtkui_menu_deactivate ), NULL );
- - /* We have to recreate the menus for the popup, unfortunately... */
- - popup_factory = gtk_item_factory_new( GTK_TYPE_MENU, "<main>", NULL );
- - gtk_item_factory_create_items( popup_factory, menu_data_size, menu_data,
- - NULL);
- - gtkui_menu_popup = gtk_item_factory_get_widget( popup_factory, "<main>" );
- -
- /* Start various menus in the 'off' state */
- ui_menu_activate( UI_MENU_ITEM_AY_LOGGING, 0 );
- ui_menu_activate( UI_MENU_ITEM_FILE_MOVIE_RECORDING, 0 );
- @@ -262,22 +280,6 @@
- return FALSE;
- }
- -static void
- -gtkui_popup_menu_pos( GtkMenu *menu GCC_UNUSED, gint *xp, gint *yp,
- - GtkWidget *data GCC_UNUSED )
- -{
- - gdk_window_get_position( gtkui_window->window, xp, yp );
- -}
- -
- -/* Popup main menu, as invoked by F1. */
- -void
- -gtkui_popup_menu(void)
- -{
- - gtk_menu_popup( GTK_MENU(gtkui_menu_popup), NULL, NULL,
- - (GtkMenuPositionFunc)gtkui_popup_menu_pos, NULL,
- - 0, 0 );
- -}
- -
- int
- ui_event(void)
- {
- @@ -292,6 +294,8 @@
- /* Don't display the window whilst doing all this! */
- gtk_widget_hide( gtkui_window );
- + g_object_unref( ui_manager_menu );
- +
- return 0;
- }
- @@ -360,15 +364,16 @@
- /* Called by the main window on a "delete-event" */
- static gboolean
- -gtkui_delete( GtkWidget *widget, GdkEvent *event GCC_UNUSED, gpointer data )
- +gtkui_delete( GtkWidget *widget GCC_UNUSED, GdkEvent *event GCC_UNUSED,
- + gpointer data GCC_UNUSED )
- {
- - menu_file_exit( widget, data );
- + menu_file_exit( NULL, NULL );
- return TRUE;
- }
- /* Called by the menu when File/Exit selected */
- void
- -menu_file_exit( GtkWidget *widget GCC_UNUSED, gpointer data GCC_UNUSED )
- +menu_file_exit( GtkAction *gtk_action GCC_UNUSED, gpointer data GCC_UNUSED )
- {
- if( gtkui_confirm( "Exit Fuse?" ) ) {
- @@ -472,7 +477,7 @@
- /* Machine/Pause */
- void
- -menu_machine_pause( GtkWidget *widget GCC_UNUSED, gpointer data GCC_UNUSED )
- +menu_machine_pause( GtkAction *gtk_action GCC_UNUSED, gpointer data GCC_UNUSED )
- {
- int error;
- @@ -499,9 +504,9 @@
- /* Called by the menu when Machine/Reset selected */
- void
- -menu_machine_reset( GtkWidget *widget GCC_UNUSED, gpointer data )
- +menu_machine_reset( GtkAction *gtk_action GCC_UNUSED, guint action )
- {
- - int hard_reset = GPOINTER_TO_INT( data );
- + int hard_reset = action;
- if( gtkui_confirm( "Reset?" ) && machine_reset( hard_reset ) ) {
- ui_error( UI_ERROR_ERROR, "couldn't reset machine: giving up!" );
- @@ -513,7 +518,8 @@
- /* Called by the menu when Machine/Select selected */
- void
- -menu_machine_select( GtkWidget *widget GCC_UNUSED, gpointer data GCC_UNUSED )
- +menu_machine_select( GtkAction *gtk_action GCC_UNUSED,
- + gpointer data GCC_UNUSED )
- {
- gtkui_select_info dialog;
- @@ -587,7 +593,8 @@
- }
- void
- -menu_machine_debugger( GtkWidget *widget GCC_UNUSED, gpointer data GCC_UNUSED )
- +menu_machine_debugger( GtkAction *gtk_action GCC_UNUSED,
- + gpointer data GCC_UNUSED )
- {
- debugger_mode = DEBUGGER_MODE_HALTED;
- if( paused ) ui_debugger_activate();
- @@ -602,13 +609,13 @@
- }
- void
- -menu_help_keyboard( GtkWidget *widget GCC_UNUSED, gpointer data GCC_UNUSED )
- +menu_help_keyboard( GtkAction *gtk_action GCC_UNUSED, gpointer data GCC_UNUSED )
- {
- gtkui_picture( "keyboard.scr", 0 );
- }
- void
- -menu_help_about( GtkWidget *widget GCC_UNUSED, gpointer data GCC_UNUSED )
- +menu_help_about( GtkAction *gtk_action GCC_UNUSED, gpointer data GCC_UNUSED )
- {
- gtk_show_about_dialog( GTK_WINDOW( gtkui_window ),
- "name", "Fuse",
- @@ -634,7 +641,12 @@
- {
- GtkWidget *menu_item;
- - menu_item = gtk_item_factory_get_widget( menu_factory, path );
- + /* Translate UI-indepentment path to GTK UI path */
- + gchar *full_path = g_strdup_printf ("/MainMenu%s", path );
- +
- + menu_item = gtk_ui_manager_get_widget( ui_manager_menu, full_path );
- + g_free( full_path );
- +
- if( !menu_item ) {
- ui_error( UI_ERROR_ERROR, "couldn't get menu item '%s' from menu_factory",
- path );
- @@ -642,14 +654,6 @@
- }
- gtk_widget_set_sensitive( menu_item, active );
- - menu_item = gtk_item_factory_get_widget( popup_factory, path );
- - if( !menu_item ) {
- - ui_error( UI_ERROR_ERROR, "couldn't get menu item '%s' from popup_factory",
- - path );
- - return 1;
- - }
- - gtk_widget_set_sensitive( menu_item, active );
- -
- return 0;
- }
- Index: ui/gtk/binary.c
- ===================================================================
- --- ui/gtk/binary.c (revision 4684)
- +++ ui/gtk/binary.c (working copy)
- @@ -54,8 +54,8 @@
- static void save_data( GtkButton *button, gpointer user_data );
- void
- -menu_file_loadbinarydata( GtkWidget *widget GCC_UNUSED, gpointer data
- - GCC_UNUSED )
- +menu_file_loadbinarydata( GtkAction *gtk_action GCC_UNUSED,
- + gpointer data GCC_UNUSED )
- {
- struct binary_info info;
- @@ -203,8 +203,8 @@
- }
- void
- -menu_file_savebinarydata( GtkWidget *widget GCC_UNUSED, gpointer data
- - GCC_UNUSED )
- +menu_file_savebinarydata( GtkAction *gtk_action GCC_UNUSED,
- + gpointer data GCC_UNUSED )
- {
- struct binary_info info;
- Index: ui/gtk/pokefinder.c
- ===================================================================
- --- ui/gtk/pokefinder.c (revision 4684)
- +++ ui/gtk/pokefinder.c (working copy)
- @@ -67,8 +67,8 @@
- libspectrum_word possible_offset[ MAX_POSSIBLE ];
- void
- -menu_machine_pokefinder( GtkWidget *widget GCC_UNUSED,
- - gpointer data GCC_UNUSED )
- +menu_machine_pokefinder( GtkAction *gtk_action GCC_UNUSED,
- + gpointer data GCC_UNUSED )
- {
- int error;
- Index: ui/gtk/Makefile.am
- ===================================================================
- --- ui/gtk/Makefile.am (revision 4684)
- +++ ui/gtk/Makefile.am (working copy)
- @@ -42,6 +42,7 @@
- keysyms.c \
- memory.c \
- menu_data.c \
- + menu_data.ui \
- options.c \
- picture.c \
- pixmaps.c \
- @@ -56,6 +57,7 @@
- BUILT_SOURCES = keysyms.c \
- menu_data.c \
- + menu_data.ui \
- options.c \
- options_internals.h
- @@ -63,8 +65,11 @@
- @PERL@ -I$(srcdir)/../../perl $(srcdir)/../../keysyms.pl gtk $(srcdir)/../../keysyms.dat > $@.tmp && mv $@.tmp $@
- menu_data.c: $(srcdir)/../../perl/cpp-perl.pl $(srcdir)/../../menu_data.pl $(srcdir)/../../menu_data.dat ../../config.h
- - @PERL@ $(srcdir)/../../perl/cpp-perl.pl ../../config.h $(srcdir)/../../menu_data.dat | @PERL@ -I$(srcdir)/../../perl $(srcdir)/../../menu_data.pl gtk > $@.tmp && mv $@.tmp $@
- + @PERL@ $(srcdir)/../../perl/cpp-perl.pl ../../config.h $(srcdir)/../../menu_data.dat | @PERL@ -I$(srcdir)/../../perl $(srcdir)/../../menu_data.pl gtk c > $@.tmp && mv $@.tmp $@
- +menu_data.ui: $(srcdir)/../../perl/cpp-perl.pl $(srcdir)/../../menu_data.pl $(srcdir)/../../menu_data.dat ../../config.h
- + @PERL@ $(srcdir)/../../perl/cpp-perl.pl ../../config.h $(srcdir)/../../menu_data.dat | @PERL@ -I$(srcdir)/../../perl $(srcdir)/../../menu_data.pl gtk ui > $@.tmp && mv $@.tmp $@
- +
- options.c: $(srcdir)/../../perl/cpp-perl.pl ../../config.h $(srcdir)/options.pl $(srcdir)/../../ui/options.dat $(srcdir)/../../perl/Fuse.pm $(srcdir)/../../perl/Fuse/Dialog.pm
- @PERL@ $(srcdir)/../../perl/cpp-perl.pl ../../config.h $(srcdir)/../../ui/options.dat | @PERL@ -I$(srcdir)/../../perl $(srcdir)/options.pl - > $@.tmp && mv $@.tmp $@
- @@ -78,5 +83,6 @@
- CLEANFILES = keysyms.c \
- menu_data.c \
- + menu_data.ui \
- options.c \
- options_internals.h
- Index: ui/gtk/pokemem.c
- ===================================================================
- --- ui/gtk/pokemem.c (revision 4684)
- +++ ui/gtk/pokemem.c (working copy)
- @@ -78,7 +78,7 @@
- gchar *new_text, gpointer user_data );
- void
- -menu_machine_pokememory( GtkWidget *widget GCC_UNUSED,
- +menu_machine_pokememory( GtkAction *gtk_action GCC_UNUSED,
- gpointer data GCC_UNUSED )
- {
- fuse_emulation_pause();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement