Diff for /np2/x11/gtk2/dialog_config.c between versions 1.8 and 1.11

version 1.8, 2010/12/23 06:32:35 version 1.11, 2011/01/15 18:43:13
Line 1 Line 1
 /*      $Id$    */  
   
 /*  /*
  * Copyright (c) 2002-2003 NONAKA Kimihiro   * Copyright (c) 2002-2003 NONAKA Kimihiro
  * All rights reserved.   * All rights reserved.
Line 92  ok_button_clicked(GtkButton *b, gpointer Line 90  ok_button_clicked(GtkButton *b, gpointer
         UINT renewal = 0;          UINT renewal = 0;
         int i;          int i;
   
         UNUSED(b);  
   
         if (strcmp(base, "1.9968MHz") == 0) {          if (strcmp(base, "1.9968MHz") == 0) {
                 if (np2cfg.baseclock != PCBASECLOCK20) {                  if (np2cfg.baseclock != PCBASECLOCK20) {
                         np2cfg.baseclock = PCBASECLOCK20;                          np2cfg.baseclock = PCBASECLOCK20;
Line 182  static void Line 178  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 192  static void Line 186  static void
 arch_radiobutton_clicked(GtkButton *b, gpointer d)  arch_radiobutton_clicked(GtkButton *b, gpointer d)
 {  {
   
         UNUSED(b);  
   
         arch = (char *)d;          arch = (char *)d;
 }  }
   
Line 201  static void Line 193  static void
 rate_radiobutton_clicked(GtkButton *b, gpointer d)  rate_radiobutton_clicked(GtkButton *b, gpointer d)
 {  {
   
         UNUSED(b);  
   
         rate = GPOINTER_TO_INT(d);          rate = GPOINTER_TO_INT(d);
 }  }
   
Line 213  clock_changed(GtkEditable *e, gpointer d Line 203  clock_changed(GtkEditable *e, gpointer d
         const gchar *multp = gtk_entry_get_text(GTK_ENTRY(clockmult_entry));          const gchar *multp = gtk_entry_get_text(GTK_ENTRY(clockmult_entry));
         guint mult = milstr_solveINT(multp);          guint mult = milstr_solveINT(multp);
         gchar buf[80];          gchar buf[80];
         gint clock;          gint clk;
   
         UNUSED(e);  
   
         if (base[0] == '1') {          if (base[0] == '1') {
                 clock = PCBASECLOCK20 * mult;                  clk = PCBASECLOCK20 * mult;
         } else {          } else {
                 clock = PCBASECLOCK25 * mult;                  clk = PCBASECLOCK25 * mult;
         }          }
         g_snprintf(buf, sizeof(buf), "%2d.%03dMHz",          g_snprintf(buf, sizeof(buf), "%2d.%03dMHz",
             clock / 1000000U, (clock / 1000) % 1000);              clk / 1000000U, (clk / 1000) % 1000);
         gtk_label_set_text(GTK_LABEL((GtkWidget*)d), buf);          gtk_label_set_text(GTK_LABEL((GtkWidget*)d), buf);
 }  }
   

Removed from v.1.8  
changed lines
  Added in v.1.11


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