Diff for /np2/x11/gtk2/dialog_midi.c between versions 1.5 and 1.7

version 1.5, 2010/12/23 06:32:35 version 1.7, 2011/01/15 18:43:13
Line 1 Line 1
 /*      $Id$    */  
   
 /*  /*
  * Copyright (c) 2003 NONAKA Kimihiro   * Copyright (c) 2003 NONAKA Kimihiro
  * All rights reserved.   * All rights reserved.
Line 87  ok_button_clicked(GtkButton *b, gpointer Line 85  ok_button_clicked(GtkButton *b, gpointer
         UINT update;          UINT update;
         int i;          int i;
   
         UNUSED(b);  
   
         update = 0;          update = 0;
         if (np2cfg.mpuopt != mpuopt) {          if (np2cfg.mpuopt != mpuopt) {
                 update |= SYS_UPDATECFG | SYS_UPDATEMIDI;                  update |= SYS_UPDATECFG | SYS_UPDATEMIDI;
Line 177  static void Line 173  static void
 dialog_destroy(GtkWidget *w, GtkWidget **wp)  dialog_destroy(GtkWidget *w, GtkWidget **wp)
 {  {
   
         UNUSED(wp);  
   
         install_idle_process();          install_idle_process();
         gtk_widget_destroy(w);          gtk_widget_destroy(w);
 }  }
Line 190  mpu98_ioport_entry_changed(GtkEditable * Line 184  mpu98_ioport_entry_changed(GtkEditable *
         gchar *p;          gchar *p;
         BYTE val;          BYTE val;
   
         UNUSED(d);  
   
         utf8 = gtk_entry_get_text(GTK_ENTRY(e));          utf8 = gtk_entry_get_text(GTK_ENTRY(e));
         if (utf8 != NULL) {          if (utf8 != NULL) {
                 p = g_filename_from_utf8(utf8, -1, NULL, NULL, NULL);                  p = g_filename_from_utf8(utf8, -1, NULL, NULL, NULL);
Line 213  mpu98_intr_entry_changed(GtkEditable *e, Line 205  mpu98_intr_entry_changed(GtkEditable *e,
         gchar *p;          gchar *p;
         BYTE val;          BYTE val;
   
         UNUSED(d);  
   
         utf8 = gtk_entry_get_text(GTK_ENTRY(e));          utf8 = gtk_entry_get_text(GTK_ENTRY(e));
         if (utf8 != NULL) {          if (utf8 != NULL) {
                 p = g_filename_from_utf8(utf8, -1, NULL, NULL, NULL);                  p = g_filename_from_utf8(utf8, -1, NULL, NULL, NULL);
Line 235  static void Line 225  static void
 mpu98_default_button_clicked(GtkButton *b, gpointer d)  mpu98_default_button_clicked(GtkButton *b, gpointer d)
 {  {
   
         UNUSED(b);  
         UNUSED(d);  
   
         gtk_entry_set_text(GTK_ENTRY(mpu98_ioport_entry), "E0D0");          gtk_entry_set_text(GTK_ENTRY(mpu98_ioport_entry), "E0D0");
         gtk_entry_set_text(GTK_ENTRY(mpu98_intr_entry), "INT2");          gtk_entry_set_text(GTK_ENTRY(mpu98_intr_entry), "INT2");
 }  }
Line 250  mpu98_mimpi_def_button_clicked(GtkButton Line 237  mpu98_mimpi_def_button_clicked(GtkButton
         gchar *utf8, *path;          gchar *utf8, *path;
         struct stat sb;          struct stat sb;
   
         UNUSED(b);  
         UNUSED(d);  
   
         dialog = gtk_file_chooser_dialog_new("Open MIMPI define file",          dialog = gtk_file_chooser_dialog_new("Open MIMPI define file",
             GTK_WINDOW(main_window), GTK_FILE_CHOOSER_ACTION_OPEN,               GTK_WINDOW(main_window), GTK_FILE_CHOOSER_ACTION_OPEN, 
             GTK_STOCK_OPEN, GTK_RESPONSE_OK,              GTK_STOCK_OPEN, GTK_RESPONSE_OK,

Removed from v.1.5  
changed lines
  Added in v.1.7


RetroPC.NET-CVS <cvs@retropc.net>