Diff for /np2/x11/gtk2/dialog_config.c between versions 1.1 and 1.5

version 1.1, 2004/07/14 16:01:40 version 1.5, 2007/01/23 14:17:39
Line 12 Line 12
  * 2. Redistributions in binary form must reproduce the above copyright   * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the   *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.   *    documentation and/or other materials provided with the distribution.
  * 3. The name of the author may not be used to endorse or promote products  
  *    derived from this software without specific prior written permission.  
  *   *
  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR   * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES   * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
Line 218  clock_changed(GtkEditable *e, gpointer d Line 216  clock_changed(GtkEditable *e, gpointer d
         } else {          } else {
                 clock = PCBASECLOCK25 * mult;                  clock = PCBASECLOCK25 * mult;
         }          }
         g_snprintf(buf, sizeof(buf), "%2d.%04dMHz",          g_snprintf(buf, sizeof(buf), "%2d.%03dMHz",
             clock / 1000000U, (clock / 1000) % 1000);              clock / 1000000U, (clock / 1000) % 1000);
         gtk_label_set_text(GTK_LABEL((GtkWidget*)d), buf);          gtk_label_set_text(GTK_LABEL((GtkWidget*)d), buf);
 }  }
Line 457  create_configure_dialog(void) Line 455  create_configure_dialog(void)
                 g_snprintf(buf, sizeof(buf), "%d", np2cfg.delayms);                  g_snprintf(buf, sizeof(buf), "%d", np2cfg.delayms);
                 gtk_entry_set_text(GTK_ENTRY(buffer_entry), buf);                  gtk_entry_set_text(GTK_ENTRY(buffer_entry), buf);
         } else {          } else {
                 gtk_entry_set_text(GTK_ENTRY(buffer_entry), "800");                  gtk_entry_set_text(GTK_ENTRY(buffer_entry), "500");
                 np2cfg.delayms = 800;                  np2cfg.delayms = 500;
                 sysmng_update(SYS_UPDATECFG|SYS_UPDATESBUF);                  sysmng_update(SYS_UPDATECFG|SYS_UPDATESBUF);
                 soundrenewal = 1;                  soundrenewal = 1;
         }          }
Line 474  create_configure_dialog(void) Line 472  create_configure_dialog(void)
         if (np2oscfg.resume) {          if (np2oscfg.resume) {
                 g_signal_emit_by_name(GTK_OBJECT(resume_checkbutton), "clicked");                  g_signal_emit_by_name(GTK_OBJECT(resume_checkbutton), "clicked");
         }          }
   #if defined(CPUCORE_IA32)
           gtk_widget_set_sensitive(resume_checkbutton, FALSE);
   #endif
   
 #if defined(GCC_CPU_ARCH_IA32)  #if defined(GCC_CPU_ARCH_IA32)
         /* Disable MMX */          /* Disable MMX */
Line 491  create_configure_dialog(void) Line 492  create_configure_dialog(void)
          * OK, Cancel button           * OK, Cancel button
          */           */
         ok_button = gtk_button_new_from_stock(GTK_STOCK_OK);          ok_button = gtk_button_new_from_stock(GTK_STOCK_OK);
         //gtk_widget_set_usize(ok_button, 80, 0);  
         gtk_widget_show(ok_button);          gtk_widget_show(ok_button);
         gtk_container_add(GTK_CONTAINER(confirm_widget), ok_button);          gtk_container_add(GTK_CONTAINER(confirm_widget), ok_button);
         GTK_WIDGET_SET_FLAGS(ok_button, GTK_CAN_DEFAULT);          GTK_WIDGET_SET_FLAGS(ok_button, GTK_CAN_DEFAULT);
Line 501  create_configure_dialog(void) Line 501  create_configure_dialog(void)
         gtk_widget_grab_default(ok_button);          gtk_widget_grab_default(ok_button);
   
         cancel_button = gtk_button_new_from_stock(GTK_STOCK_CANCEL);          cancel_button = gtk_button_new_from_stock(GTK_STOCK_CANCEL);
         //gtk_widget_set_usize(cancel_button, 80, 0);  
         gtk_widget_show(cancel_button);          gtk_widget_show(cancel_button);
         gtk_container_add(GTK_CONTAINER(confirm_widget), cancel_button);          gtk_container_add(GTK_CONTAINER(confirm_widget), cancel_button);
         GTK_WIDGET_SET_FLAGS(cancel_button, GTK_CAN_DEFAULT);          GTK_WIDGET_SET_FLAGS(cancel_button, GTK_CAN_DEFAULT);

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


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