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 |
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)) |