/[xlog]/xlog/src/callbacks_otherdialogs.c
ViewVC logotype

Diff of /xlog/src/callbacks_otherdialogs.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.13 by fillods, Tue Jun 24 07:25:11 2003 UTC revision 1.14 by fillods, Sun Aug 10 16:52:43 2003 UTC
# Line 780  on_saveasok_button_clicked (GtkButton * Line 780  on_saveasok_button_clicked (GtkButton *
780    item = gtk_menu_get_active (GTK_MENU (menu));    item = gtk_menu_get_active (GTK_MENU (menu));
781    index = g_list_index (GTK_MENU_SHELL (menu)->children, item);    index = g_list_index (GTK_MENU_SHELL (menu)->children, item);
782    
783    if (index == 0)    switch (index) {
784      globtype = 1;          case 0:
785    else if (index == 1)                  globtype = TYPE_FLOG;
786      globtype = 3;                  break;
787    else          case 1:
788      globtype = 4;                  globtype = TYPE_ADIF;
789                    break;
790            case 2:
791                    globtype = TYPE_CABRILLO;
792                    break;
793            case 3:
794                    globtype = TYPE_TRLOG;
795                    break;
796            case 4:
797                    globtype = TYPE_EDI;
798                    break;
799            default:
800                    globtype = 0;
801      }
802    
803    globtemp =    globtemp =
804      g_strdup (gtk_file_selection_get_filename      g_strdup (gtk_file_selection_get_filename
# Line 797  on_saveasok_button_clicked (GtkButton * Line 810  on_saveasok_button_clicked (GtkButton *
810        temp = g_strdup_printf (_("No filename entered, log not saved"));        temp = g_strdup_printf (_("No filename entered, log not saved"));
811        update_statusbar (temp);        update_statusbar (temp);
812      }      }
813      else if (globtype == 0)
814        {
815          temp = g_strdup_printf (_("Unsupported log type, log not saved"));
816          update_statusbar (temp);
817        }
818    else    else
819      {      {
820        if (!fileexist (globtemp))        if (!fileexist (globtemp))

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26