Diff for /np2/x11/gtk2/dialog_newdisk.c between versions 1.1 and 1.2

version 1.1, 2004/07/14 16:01:40 version 1.2, 2004/08/14 03:18:20
Line 44 Line 44
  * create hard disk image   * create hard disk image
  */   */
   
 static int  static gint
 anex_newdisk_dialog(GtkWidget *dialog)  anex_newdisk_dialog(GtkWidget *dialog)
 {  {
           static const int cnv[] = { 0, 1, 2, 3, 5, 6 };
         static const int hddsize[] = { 5, 10, 15, 20, 30, 40 };          static const int hddsize[] = { 5, 10, 15, 20, 30, 40 };
         static int last = 0;          static int last = 0;
   
Line 81  anex_newdisk_dialog(GtkWidget *dialog) Line 82  anex_newdisk_dialog(GtkWidget *dialog)
         if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_OK) {          if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_OK) {
                 for (i = 0; i < NELEMENTS(hddsize); i++) {                  for (i = 0; i < NELEMENTS(hddsize); i++) {
                         if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(button[i]))) {                          if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(button[i]))) {
                                 return i;                                  last = i;
                                   return cnv[i];
                         }                          }
                 }                  }
         }          }
         return 0;          return -1;
 }  }
   
 static int  static gint
 t98_newdisk_dialog(GtkWidget *dialog, const int kind)  t98_newdisk_dialog(GtkWidget *dialog, const int kind)
 {  {
         static const char *hddsizestr[] = {          static const char *hddsizestr[] = {
Line 206  create_newdisk_hd_dialog(const char *fil Line 208  create_newdisk_hd_dialog(const char *fil
         switch (kind) {          switch (kind) {
         case 1: /* HDI */          case 1: /* HDI */
                 hdsize = anex_newdisk_dialog(dialog);                  hdsize = anex_newdisk_dialog(dialog);
                 if (hdsize > 0) {                  if (hdsize >= 0) {
                         newdisk_hdi(filename, hdsize);                          newdisk_hdi(filename, hdsize);
                 }                  }
                 break;                  break;
Line 226  create_newdisk_hd_dialog(const char *fil Line 228  create_newdisk_hd_dialog(const char *fil
                 break;                  break;
         }          }
         gtk_widget_destroy(dialog);          gtk_widget_destroy(dialog);
   
 }  }
   
   

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


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